1 |
On Thu, Nov 29, 2012 at 7:20 PM, Bruce Hill |
2 |
<daddy@×××××××××××××××××××××.com> wrote: |
3 |
> On Thu, Nov 29, 2012 at 05:57:46PM +0000, Jorge Almeida wrote: |
4 |
>> Anyone knows how to dig into /sys to find the serial number of a device (say, |
5 |
>> a USB pen)? I few days ago I found by trial and error something like |
6 |
>> $ 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 |
7 |
>> which gave me E68911000519 |
8 |
>> Now I can't find nothing of the sort. (Yes, I know the path changes |
9 |
>> each time the |
10 |
>> device is plugged in, but even so) |
11 |
>> Any information that would put some order into this mess would be great. |
12 |
>> |
13 |
>> TIA |
14 |
>> |
15 |
>> Joreg Almeida |
16 |
> |
17 |
> Why not look in dmesg output: |
18 |
|
19 |
It is a matter of programming, not looking. I need a program that creates the |
20 |
symlink when the device is plugged in. Think mdev (more precisely, a |
21 |
complement to mdev that would take care of a few particular devices, to allow |
22 |
using fstab to mount them in chosen mountpoints, and then leave the |
23 |
rest to mdev). |
24 |
|
25 |
Thanks |
26 |
|
27 |
J.A. |