On Thu, Nov 29, 2012 at 7:20 PM, Bruce Hill
<da...@happypenguincomputers.com> wrote:
> On Thu, Nov 29, 2012 at 05:57:46PM +0000, Jorge Almeida wrote:
>> 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
>
> Why not look in dmesg output:

It is a matter of programming, not looking. I need a program that creates the
symlink when the device is plugged in. Think mdev (more precisely, a
complement to mdev that would take care of a few particular devices, to allow
using fstab to mount them in chosen mountpoints, and then leave the
rest to mdev).

Thanks

J.A.

Reply via email to