Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

storage usb thing

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
margaretH
Posts: 14
Joined: 2017-01-23 20:22

storage usb thing

#1 Post by margaretH »

i need to access if this storage device is actually supported and stable.
Or use it as a learning device in writing modules to communicate with it.

This is what i am working with, same as dmesg:
/var/log/kernel .......
Mar 19 16:26:23 bonami kernel: [ 1257.109717] usb 1-3: New USB device found, idVendor=0781, idProduct=5581
Mar 19 16:26:23 bonami kernel: [ 1257.109724] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 19 16:26:23 bonami kernel: [ 1257.109728] usb 1-3: Product: Ultra
Mar 19 16:26:23 bonami kernel: [ 1257.109731] usb 1-3: Manufacturer: SanDisk
Mar 19 16:26:23 bonami kernel: [ 1257.109734] usb 1-3: SerialNumber: 4C531001371114111015
Mar 19 16:26:23 bonami kernel: [ 1257.110686] scsi7 : usb-storage 1-3:1.0
Mar 19 16:26:24 bonami kernel: [ 1258.108943] scsi 7:0:0:0: Direct-Access SanDisk Ultra 1.00 PQ: 0 ANSI: 6
Mar 19 16:26:24 bonami kernel: [ 1258.110932] sd 7:0:0:0: Attached scsi generic sg2 type 0
Mar 19 16:26:24 bonami kernel: [ 1258.111078] sd 7:0:0:0: [sdb] 485228544 512-byte logical blocks: (248 GB/231 GiB)
Mar 19 16:26:24 bonami kernel: [ 1258.113513] sd 7:0:0:0: [sdb] Write Protect is off
Mar 19 16:26:24 bonami kernel: [ 1258.113520] sd 7:0:0:0: [sdb] Mode Sense: 43 00 00 00
Mar 19 16:26:24 bonami kernel: [ 1258.114728] sd 7:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or
FUA

Last night when i loaded the storage device i used dmesg and was sure that the message was 'using module' in reference to the line below this.

Mar 19 16:26:23 bonami kernel: [ 1257.110686] scsi7 : usb-storage 1-3:1.0

I did look into Debian web site packages and information and there is no module listed as such as i could see.
And the internet is as wonderfull as ever while trying to find information on usb storage related facts.

Also the last line from /var/log/kernel as shown above:

[sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA # weird ! look below at the file 'moon'

it looks like DPO is related to sg_read 8

meow@bonami:/media$ ls -l
total 12
drwxr-xr-x 3 root root 4096 Mar 18 20:13 1c07489f-7177-442b-992b-55a0592b0504 #the storage device
lrwxrwxrwx 1 root root 6 Aug 22 2013 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 Aug 22 2013 cdrom0
drwxr-xr-x 2 root root 4096 Jan 21 08:27 usb-device #created for fstab file

meow@bonami:/media$ stat 1c07489f-7177-442b-992b-55a0592b0504
File: `1c07489f-7177-442b-992b-55a0592b0504'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 811h/2065d Inode: 2 Links: 3
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-03-18 20:27:12.801682440 -0700
Modify: 2017-03-18 20:13:51.689684747 -0700
Change: 2017-03-18 20:13:51.689684747 -0700
Birth: -

meow@bonami:/media$ cd 1c07489f-7177-442b-992b-55a0592b0504
meow@bonami:/media/1c07489f-7177-442b-992b-55a0592b0504$ ls -l
total 20
drwx------ 2 root root 16384 Feb 19 16:23 lost+found
-rw-r--r-- 1 root root 49 Mar 18 20:13 moon

meow@bonami:/media/1c07489f-7177-442b-992b-55a0592b0504$ cat moon
the moon is my guide as night becomes the sky

So does it look like i wasted money ? or would you roll the dice and trust this device for 100 miles.
Please let me know.
Thank you

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: storage usb thing

#2 Post by Head_on_a_Stick »

deadbang

User avatar
Thorny
Posts: 542
Joined: 2011-02-27 13:40

Re: storage usb thing

#3 Post by Thorny »

margaretH wrote: So does it look like i wasted money ? or would you roll the dice and trust this device for 100 miles.
Any currently working hardware might fail the next time you try to use it. Put your trust in having properly backed up any files that are mission critical for your use case. Without a backup, metaphorically, you are "rolling the dice".

margaretH
Posts: 14
Joined: 2017-01-23 20:22

Re: storage usb thing

#4 Post by margaretH »

Okay , i guess i will purchase three external storage devices with the same amount of capacity and write a script to cp each file that is deemed to be saved on a external storage to each while i have access to four external usb ports.

Thank you for the reply`s.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: storage usb thing

#5 Post by stevepusser »

The "usb-storage" module is built into the kernel, so won't appear as any Debian package.
MX Linux packager and developer

Post Reply