[Leaplist] RE: how do I find my thumb

Craig Conner fuznacious at gmail.com
Sat Mar 29 04:09:38 EDT 2008


>> Is there a way to find the path to a
>> specific usb drive using info from proc or sys?

By "drive"  ...do you mean the device (block special) file?
Often looks like one of these:  /dev/sde , /dev/sdf , /dev/sdg

If so, then...

After you plug in the USB drive, you can see a bit of what's
happened by using "dmesg"  --open a terminal, run dmesg,
and you'll hopefully see something similar to the following:


usb 1-1.2: new high speed USB device using ehci_hcd and address 9
ehci_hcd 0000:00:02.1: qh c0a00300 (#00) state 4
usb 1-1.2: configuration #1 chosen from 1 choice
scsi8 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 8:0:0:0: Direct-Access     LEXAR    JD FIREFLY       3000 PQ: 0 ANSI: 0 CCS
sd 8:0:0:0: [sdh] 3963904 512-byte hardware sectors (2030 MB)
sd 8:0:0:0: [sdh] Write Protect is off
sd 8:0:0:0: [sdh] Mode Sense: 43 00 00 00
sd 8:0:0:0: [sdh] Assuming drive cache: write through
sd 8:0:0:0: [sdh] 3963904 512-byte hardware sectors (2030 MB)
sd 8:0:0:0: [sdh] Write Protect is off
sd 8:0:0:0: [sdh] Mode Sense: 43 00 00 00
sd 8:0:0:0: [sdh] Assuming drive cache: write through
 sdh: sdh1
sd 8:0:0:0: [sdh] Attached SCSI removable disk
sd 8:0:0:0: Attached scsi generic sg9 type 0


...so this particular USB storage device happened to be
called /dev/sdh just now (but may very well be called by
another name when I plug it into a different PC).

Partitions on the device would be /dev/sdh1 , /dev/sdh2 ,
and so on.


You might find /sbin/lsusb to be useful also:
[fuzzy at silver ~]$ /sbin/lsusb
Bus 001 Device 009: ID 05dc:a560 Lexar Media, Inc.


HTH,
--Fuzzy


More information about the Leaplist mailing list