From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jayant Roplekar" Date: Tue, 11 Jan 2005 17:06:28 +0000 Subject: FAQ?: 10 sec delay /dev/sda1 via usb-storage using udev 43 & 2.6.8.1-10mdk 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 I have Googled on this enough but only found devfs vs. udev flame wars. The mailing list search didn't show a clear solution to me so I am not sure if there is really one at this point. I hope I did not miss something trivial and not looking for an answer at wrong place. Problem at hand: I use /sbin/hotplug -> /etc/hotplug/usb/myfuji_script which gets called when a fujifilm camera gets added to usb port. The delay between connecting the camera (also seeing the scsi emulation stuff in syslog, which was instantaneous) and having a /dev/sda1 available to actually mount became a painful 10-12 sec as I moved to 2.6.8 on mdk 10.1. And I had to hard code a delay [which I guessed] in my script. Then I got a little wiser and added a udev symlink /dev/camera and I poll for it to appear inside myfuji_script. The delay is still close to 10 sec. And if I am not mistaken, I think even with the second (udev) solution I got a bogus fat partition or similar error [got that error 1 out of 5 times I have plugged in the camera so far]. Question: Is there an elegant solution to reduce the delay and ensure smooth operation? Please let me know if I have described the issue incompletely. Thanks for your help. JR ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ 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