Difference between revisions of "Usb storage"

From Linuxintro
imported>ThorstenStaerk
(Created page with "USB storage are USB harddisks and USB sticks. = Find them = The first challenge is to find your USB storage in order e.g. to mount it. To do this, * open a console * conne...")
 
imported>ThorstenStaerk
 
Line 1: Line 1:
USB storage are USB harddisks and USB sticks.  
+
USB storage are USB harddisks and USB memory sticks.  
  
= Find them =
+
= Find them in the system =
The first challenge is to find your USB storage in order e.g. to mount it. To do this,  
+
To find out if a USB stick works, [[open a console]] and enter
* [[open a console]]
+
  [[dmesg]] | [[tail]] -f
* connect your USB storage device
+
and insert the stick. You will find some lines like
* type
+
  [44950.907137] usb 2-1.5: new high speed USB device using ehci_hcd and address 4
  dmesg
+
  [44950.995677] usb 2-1.5: New USB device found, idVendor=13fe, idProduct=3123
* you will find some output like
+
  [44950.995682] usb 2-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  [...]
+
  [44950.995686] usb 2-1.5: Product: STORE N GO
[23329.272525] usb 2-1.6: new high speed USB device number 5 using ehci_hcd
+
  [44950.995689] usb 2-1.5: Manufacturer: Verbatim
  [23329.358270] usb 2-1.6: New USB device found, idVendor=0781, idProduct=5567
+
  [44950.995691] usb 2-1.5: SerialNumber: 078B06E70173
  [23329.358276] usb 2-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
+
  [44950.996463] scsi7 : usb-storage 2-1.5:1.0
  [23329.358280] usb 2-1.6: Product: Cruzer Blade
+
  [44952.030933] scsi 7:0:0:0: Direct-Access    Verbatim STORE N GO      5.00 PQ: 0 ANSI: 0 CCS
  [23329.358283] usb 2-1.6: Manufacturer: SanDisk
+
  [44952.031382] sd 7:0:0:0: Attached scsi generic sg8 type 0
  [23329.358286] usb 2-1.6: SerialNumber: 20052444311405B07CB9
+
  [44952.465358] sd 7:0:0:0: [sdh] 31735808 512-byte logical blocks: (16.2 GB/15.1 GiB)
  [23329.358847] scsi8 : usb-storage 2-1.6:1.0
+
  [44952.466109] sd 7:0:0:0: [sdh] Write Protect is off
  [23330.357920] scsi 8:0:0:0: Direct-Access    SanDisk  Cruzer Blade    1.20 PQ: 0 ANSI: 5
+
  [44952.466114] sd 7:0:0:0: [sdh] Mode Sense: 23 00 00 00
  [23330.358176] sd 8:0:0:0: Attached scsi generic sg7 type 0
+
  [44952.466118] sd 7:0:0:0: [sdh] Assuming drive cache: write through
  [23330.359419] sd 8:0:0:0: [sdh] 62530624 512-byte logical blocks: (32.0 GB/29.8 GiB)
+
[44952.470271] sd 7:0:0:0: [sdh] Assuming drive cache: write through
  [23330.361137] sd 8:0:0:0: [sdh] Write Protect is off
+
  '''''[44952.470276]  sdh: sdh1'''''
  [23330.361144] sd 8:0:0:0: [sdh] Mode Sense: 43 00 00 00
+
  [44952.502054] sd 7:0:0:0: [sdh] Assuming drive cache: write through
  [23330.362036] sd 8:0:0:0: [sdh] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
+
[44952.502060] sd 7:0:0:0: [sdh] Attached SCSI removable disk
  '''[23330.370242''sdh: sdh1'''''
+
The bold line tells you the stick has been attached as [[device]] /dev/sdh and has one partition, /dev/sdh1.
  [23330.372906] sd 8:0:0:0: [sdh] Attached SCSI removable disk
+
 
This means your USB storage device has been detected and is accessible as ''/dev/sdh''. It has one partition, /dev/sdh1.
+
To get an overview of all inserted USB devices, use
 +
[[hwinfo]] --usb
 +
 
 +
To get an overview of all storage devices, use
 +
[[hwinfo]] --block
  
 
= Make them bootable =
 
= Make them bootable =
 
See [[make a USB disk bootable]].
 
See [[make a USB disk bootable]].

Latest revision as of 12:55, 8 January 2012

USB storage are USB harddisks and USB memory sticks.

Find them in the system

To find out if a USB stick works, open a console and enter

dmesg | tail -f

and insert the stick. You will find some lines like

[44950.907137] usb 2-1.5: new high speed USB device using ehci_hcd and address 4
[44950.995677] usb 2-1.5: New USB device found, idVendor=13fe, idProduct=3123
[44950.995682] usb 2-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[44950.995686] usb 2-1.5: Product: STORE N GO
[44950.995689] usb 2-1.5: Manufacturer: Verbatim
[44950.995691] usb 2-1.5: SerialNumber: 078B06E70173
[44950.996463] scsi7 : usb-storage 2-1.5:1.0
[44952.030933] scsi 7:0:0:0: Direct-Access     Verbatim STORE N GO       5.00 PQ: 0 ANSI: 0 CCS
[44952.031382] sd 7:0:0:0: Attached scsi generic sg8 type 0
[44952.465358] sd 7:0:0:0: [sdh] 31735808 512-byte logical blocks: (16.2 GB/15.1 GiB)
[44952.466109] sd 7:0:0:0: [sdh] Write Protect is off
[44952.466114] sd 7:0:0:0: [sdh] Mode Sense: 23 00 00 00
[44952.466118] sd 7:0:0:0: [sdh] Assuming drive cache: write through
[44952.470271] sd 7:0:0:0: [sdh] Assuming drive cache: write through
[44952.470276]  sdh: sdh1
[44952.502054] sd 7:0:0:0: [sdh] Assuming drive cache: write through
[44952.502060] sd 7:0:0:0: [sdh] Attached SCSI removable disk

The bold line tells you the stick has been attached as device /dev/sdh and has one partition, /dev/sdh1.

To get an overview of all inserted USB devices, use

hwinfo --usb

To get an overview of all storage devices, use

hwinfo --block

Make them bootable

See make a USB disk bootable.