[sclug] How to find which /dev/xxx a usb device is on?

Ed Davies sclug at edavies.nildram.co.uk
Sat Jun 21 18:39:53 UTC 2008


John Stumbles wrote:
> OK, I've heard of UUIDs, and cryptsetup seems to have too. How do I find 
> out the device UUID?

This works on Ubuntu:

> edavies at bill:~$ ls -l /dev/disk/by-uuid
> total 0
> lrwxrwxrwx 1 root root 10 2008-06-09 11:55 32ce701d-913f-4e77-b82d-6754eaeeb6a0 -> ../../sda6
> lrwxrwxrwx 1 root root 10 2008-06-09 11:55 5C0E015D0E013196 -> ../../sda3
> lrwxrwxrwx 1 root root 10 2008-06-09 11:55 5c3d57d5-3710-4c24-b0dc-5c9e07d94690 -> ../../sda1
> lrwxrwxrwx 1 root root 10 2008-06-09 11:55 637033f2-a891-4fa6-8a82-8c6c11c7c983 -> ../../sda5
> lrwxrwxrwx 1 root root 10 2008-06-21 18:34 86D4-ABB0 -> ../../sdb1
> lrwxrwxrwx 1 root root 10 2008-06-09 11:55 C81E45701E455898 -> ../../sda2
> lrwxrwxrwx 1 root root 17 2008-06-18 23:12 eb00ff63-0f4c-43ee-9863-429fd75d8355 -> ../../mapper/sda7
> lrwxrwxrwx 1 root root 10 2008-06-09 11:55 fb3f9ab4-3254-4086-ad6e-073f2f48df1a -> ../../sda7
> edavies at bill:~$ 

John Stumbles further wrote:
> Do memory cards (or memory card readers) have UUIDs too?

Strictly speaking, I think not as it's filesystems, not devices,
which have UUIDs.  sdb1 in the above list is a FAT filesystem on
a Kingston memory stick.  It looks like the DOS disk-id or whatever
it's called is being used as the UUID.

Ed.





More information about the Sclug mailing list