From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Date: Sun, 30 Nov 2003 19:04:30 +0000 Subject: Re: Linux-hotplug-devel digest, Vol 1 #499 - 4 msgs Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Marco d'Itri wrote: > 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? >T: Bus Lev Prnt Port Cnt Dev#= 6 Spd MxCh= 0 > > Does the Port correspond to the usb-storage-? directory in >/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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel