2012/11/29 Jorge Almeida <jjalme...@gmail.com>

> Anyone knows how to dig into /sys to find the serial number of a device
> (say,
> a USB pen)? I few days ago I found by trial and error something like
> $ cat
> /sys/devices/pci0000:00/0000:00:06.1/usb2/2-4/2-4:1.0/host13/target13:0:0/13:0:0:0/block/sdc/../../../../../serial
> which gave me E68911000519
> Now I can't find nothing of the sort. (Yes, I know the path changes
> each time the
> device is plugged in, but even so)
> Any information that would put some order into this mess would be great.
>
> TIA
>
> Joreg Almeida
>
>
If by "serial" you mean UUID I personally use "ls -l /dev/disk/by-uuid/"

Marco Bonfiglio

Reply via email to