Skip to contentSkip to conversation

Program map for USB devices

DISCUSSION Dirk Heinrichs 3 participants 3 messages Dec 17, 2003 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hi,

I've got several USB devices which are all accessed as SCSI disc through the usb-storage driver. Since the device node they are attached to depends on plugin order, I need to know how to find out which hardware is attached to which /dev/sd*, so that I can write a program map.

Any hints?

Thanx...

Dirk

Signature · 6 lines
Dirk Heinrichs          | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst & Young| Mail: [email protected]
Hambornerstraße 55      | Web:  http://www.cgey.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#1 lore raw
Quoted 4 lines · Dirk Heinrichs

I've got several USB devices which are all accessed as SCSI disc through the usb-storage driver. Since the device node they are attached to depends on plugin order, I need to know how to find out which hardware is attached to which /dev/sd*, so that I can write a program map.

Your program map could look at /proc/scsi/* to determine what's what.

Derrell

#2 lore raw
Quoted 9 lines · [email protected] wrote:
Quoted 1 line · Dirk Heinrichs

I've got several USB devices which are all accessed as SCSI disc through the usb-storage driver. Since the device node they are attached to depends on plugin order, I need to know how to find out which hardware is attached to which /dev/sd*, so that I can write a program map.

Your program map could look at /proc/scsi/* to determine what's what.

Derrell

First of all look at mount for mount point of procfs(type proc). For 2.6 kernels, as i think, you also could look into new sysfs for needed info.
Good luck. Ruslan.