From: Patrick Mansfield <patmans@us.ibm.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Mount failure following USB flash key removal
Date: Thu, 07 Apr 2005 19:19:16 +0000 [thread overview]
Message-ID: <20050407191916.GA6872@us.ibm.com> (raw)
In-Reply-To: <000001c53b0b$83369a80$10d76151@SenatorPalmer>
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_id\x14396&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
prev parent reply other threads:[~2005-04-07 19:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-07 0:48 Mount failure following USB flash key removal Andrew Marshall
2005-04-07 19:19 ` Patrick Mansfield [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050407191916.GA6872@us.ibm.com \
--to=patmans@us.ibm.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).