Steve Bangert wrote:
>  Check out the udev page at:
>
> http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
>
> Steve
>   

Steve:

Thanks for the reply.

I must be unusually dense tonight as I don't see anything that provides 
a working answer to my question.  I see tons of stuff about hotplug and 
node naming, but nothing about tying the device info to the device node.

It probably doesn't help here that /sys/class/usb is not populating with 
any information at all from the device.  The device is a simple Memorex 
Flash Drive (key drive) - well supported by the kernel (2.6.17.13).

Let me restate the question please:  If I have 2 SCSI drives in a system 
(USB or SCSI based), I need to know which drive has which serial number, 
model, manufacturer, etc...  I can find all kinds of information about 
the devices that are on the bus, but I can't find anything that tells me 
which node that device is.  Yes, that information shows up in dmesg, but 
that information is too fleeting.  I need something with persistence.

Right now, the only way I can see to do this is to do a kernel patch 
(causing the major/minor numbers to be reported in procfs and/or 
sysfs).  I really don't want to go down that road if at all possible.

Thanks!

Ron Gage

>
>
> On Mon, 2007-01-01 at 17:30 -0500, Ron Gage wrote:
>   
>> Hi:
>>
>> I am trying to find a way (without resorting to patching the kernel) of 
>> associating a USB device to it's node name  (i.e.  usb1-1 -> /dev/sda).
>>
>> After spending most the day searching through /proc and /sys, there 
>> appears to be absolutely no correlation between the device listing and 
>> the associated system node name.  I, of course, could be wrong.
>>
>> Does anyone have any way to tie the data for a device to it's node 
>> name.  My end goal is to be able to list out the device manufacturer, 
>> model and serial number for each device in /dev/sd[a-z].
>>
>> Thanks!
>>
>> Ron Gage
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Linux-usb-users@lists.sourceforge.net
>> To unsubscribe, use the last form field at:
>> https://lists.sourceforge.net/lists/listinfo/linux-usb-users
>>     
>
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to