Skip to contentSkip to conversation

Linux-hotplug-devel digest, Vol 1 #499 - 4 msgs

DISCUSSION Martin 1 participant 1 message Nov 30, 2003

lore
Share & tools
lore

Martin

author
#0 lore raw
Quoted 1 line · Marco d'Itri

You really want to use a 2.6 kernel. In sysfs you will find

everything needed to automatically mount your device.

Unfortunately I am really doing this for my Cobalt RAQ3 which uses a 2.4 kernel. 2.6 is not an option at this point.
Anyway can someone answer my core question?

Quoted 4 lines

T: Bus Lev Prnt Port Cnt Dev#= 6 Spd MxCh= 0

Does the Port correspond to the usb-storage-? directory in

Quoted 9 lines

/proc/scsi? That is the only number which seems to have gone from 0 to
1. I only have two flash devices so I can't tell for sure by installing another one. The new device has an entry in usb-storage-1/2 rather than 1/1 as I would have suspected. The Cnt leads me to believe that Port becomes the usb-storage-? directory and Cnt becomes the filename under that directory. Are my assumptions correct? If so I can do away with most of my nonsense about the serial number, it was just the first thing I came up with.

If I'm right about this, then my script should be easy to write, in terms of mounting. I still don't get the remove message so I'm going to have to come up with some other mechanism for handling removal, I guess.

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel