From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wout Mertens Date: Wed, 10 Dec 2003 19:41:13 +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 Yesterday at 08:24, Greg KH ponderously produced: > On Tue, Dec 09, 2003 at 10:05:29AM +0100, Wout Mertens wrote: > > Hi, > > > > I was wondering what the current state of auto-mount-inserted-devices > > is. > > > > I posted my script which is run as a hotplug agent for storage some time > > ago, someone else had one along the same lines, Mandrake uses devfsd to > > call their configuration scripts and the fstab editor, Lindows has > > something, Suse as well, there is the vold project which uses polling, ... > > > > It sometimes seems that everyone and their brother has their own > > solution :( > > What's wrong with devlabel? I thougth that's what most people are > using, as I think it solves the problems you are looking at. > > And I don't know anything about devfs :) Devlabel needs to know about the device beforehand. I can't quickly copy some pictures to my friends USB stick that way. Devlabel tries to do something that's important for servers with loads of drives. It is irrelevant, however, for the behaviour in the previous paragraph. I insert the key, I copy stuff to the mountpoint, preferrably through clicking on some icon on the desktop, done. I'll never need that mountpoint again. It doesn't matter if it is on /dev/sda1 or /dev/sdz6... updfstab is another way of handling it, but then the user must remember to mount first, and unmount afterwards. My script mounts it for the owner of /dev/console, which means that if you plug in the key before you're logged in, you don't get access to it. In any case, I'm happy to see that Linux 2.6 has gotten more much robust for hotplugging :) Wout. ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ 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