From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Date: Thu, 07 Apr 2005 19:19:16 +0000 Subject: Re: Mount failure following USB flash key removal Message-Id: <20050407191916.GA6872@us.ibm.com> List-Id: References: <000001c53b0b$83369a80$10d76151@SenatorPalmer> In-Reply-To: <000001c53b0b$83369a80$10d76151@SenatorPalmer> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Apr 07, 2005 at 01:48:27AM +0100, Andrew Marshall wrote: > Hi All, > > I would be very grateful for any advice any of you guys may have on the > following: - > > I am running Kernel version 2.4.22 (uClinux distribution -- i'm currently > unable to upgrade for various reasons...). > > I've found that when removing a USB flash key device during a file read, > once the device is re-inserted, all subsequent attempts to mount said device > seem fail with a busy error. > > The device is properly unmounted and file handles etc. closed at removal by > code invoked by hotplug. You mean you unmount after the hotplug for device removal? You have to unmount before the removal. Depending on the file system in use, you'll get different behaviour, some 2.4.x file systems will panic. I don't know what happens if the device is mounted or used read only. > Is this something that may have been fixed in a later version of the > kernel -- or is there anyway I can manually reset the device? I doubt there is any fix or reset to get around the problems with 2.4.x, AFAIR in 2.6.x some file system behave better (re-mount device as read only, instead of a panic). -- Patrick Mansfield ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&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