[sclug] How to find which /dev/xxx a usb device is on? (No UUID required)
John Stumbles
sclug at yaph.org.uk
Tue Jun 24 19:44:35 UTC 2008
Robin Lewis wrote:
> How about /dev/disk/by-id/usb*?
Ah yes - that would have done it. I've done it with udev now (thanks
Adam) on the desktop machine, might see about that for the lappy
lsl /dev/disk/by-id/usb*
lrwxrwxrwx 1 root root 20 2008-06-22 22:01
/dev/disk/by-id/usb-Generic_USB_CF_Reader_058F312D81B
-> ../../memory_card_CF
lrwxrwxrwx 1 root root 20 2008-06-22 22:01
/dev/disk/by-id/usb-Generic_USB_MS_Reader_058F312D81B ->
../../memory_card_MS
lrwxrwxrwx 1 root root 20 2008-06-21 21:06
/dev/disk/by-id/usb-Generic_USB_SD_Reader_058F312D81B ->
../../memory_card_SD
lrwxrwxrwx 1 root root 20 2008-06-22 22:01
/dev/disk/by-id/usb-Generic_USB_SM_Reader_058F312D81B ->
../../memory_card_SM
lrwxrwxrwx 1 root root 17 2008-06-21 21:54
/dev/disk/by-id/usb-Maxtor_3200_2CAHYM76 -> ../../
backupdrive
lrwxrwxrwx 1 root root 17 2008-06-21 21:54
/dev/disk/by-id/usb-Maxtor_3200_2CAHYM76-part1 ->
../../backupdrive
--
John Stumbles http://yaph.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:
More information about the Sclug
mailing list