From mboxrd@z Thu Jan 1 00:00:00 1970 From: reflex Date: Sat, 29 Nov 2003 12:33:43 +0000 Subject: Re: Working on a usb-storage hotplug script Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Martin schrieb: > So I began to google for a usb-storage hotplug script which > would do what I want. I have had the same problem and tried do solve it by scanning all devices automatically: http://vold.sourceforge.net KDE has a device kio slave which scanns /etc/fstab. So I could probably add a feature where connected devices don't get mounted but added to /etc/fstab so they appear on the desktop automatically. Drawback is: Vold doesnt know if it has just mounted a usb-drive or a cdrom. And you will get nasty read-error messages in syslog if you load the usb-storage driver but have no device attached etc. They are not severe, I just have to find a way to suppress them. It still misses an eject program to unmount as user. > By looking in the usb and scsi nodes under /proc I decided that > the only unique information between the two trees was the > serial number. Are you really sure that the serial is unique? If I remember correctly the not all devices have serials set. > I do have one further problem before I even start, which is > that I don't seem to get a remove event when I disconnect a > flash drive. Is this a known problem with my version of the > kernel or of hotplug? Same here. I think its a bug. But since its not 2.5/2.6-test related nobody seems to care here :-( -- Clemens Wacha wacha@gmx.ch ICQ:12620492 proudly running Debian/GNU Linux. See http://www.debian.org ------------------------------------------------------- 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