From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Iragne Date: Tue, 30 Mar 2004 07:22:25 +0000 Subject: Re: add/remove actions for usb devices Message-Id: <40692031.70803@labri.fr> List-Id: References: <40648838.2040703@labri.fr> In-Reply-To: <40648838.2040703@labri.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Patrick Mansfield wrote: > On Mon, Mar 29, 2004 at 06:21:00PM +0200, Florian Iragne wrote: > > >>on device add, it is correctly mounted. on device removal, the system >>freeze and i have to use magic keys to reboot the machine. I've enabled >>kernel verbose debug messgaes and other stuffs like this, but can't get >>any error message. >> >>does anyboddy have an idea to solve this problem? (unfortunately, i >>can't install udev from sources currently, so i can't activate its debug >>mode, or maybe it's possible through a configuration file?) > > > The umount is likely hanging. This is probably a file system feature. > > Try without your udev rule - unplug the device and then umount it. > > -- Patrick Mansfield ok, it's a file system failure, but why? unplugging the device and then umount it "by hand", or umount the device automatically when it's unplugged, what is the difference? if i make umount /dev/myDevice, i believe mount will told me there is a problem, but i make "umount /path/to/the/montpoint", which is perfectly right and works "by hand" but not automatically with the udev remove event. I just can't says to users : well, ok, when you unplug your usb stick, type umount /home/yourUser/usbStick. I have a working script that does just what i want, but it's heavy and not so clean regarding the logical behaviour of the system. udev and hotplug have the possibilities i'm looking for, so i want to use them. thanks for helping! Florian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&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