Usb storage

From Linuxintro
Revision as of 12:55, 8 January 2012 by imported>ThorstenStaerk
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.