* Mount failure following USB flash key removal
@ 2005-04-07 0:48 Andrew Marshall
2005-04-07 19:19 ` Patrick Mansfield
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Marshall @ 2005-04-07 0:48 UTC (permalink / raw)
To: linux-hotplug
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.
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?
Any assistance here is greatly appreciated.
Many thanks!
Kind Regards,
Andrew Marshall
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Mount failure following USB flash key removal
2005-04-07 0:48 Mount failure following USB flash key removal Andrew Marshall
@ 2005-04-07 19:19 ` Patrick Mansfield
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Mansfield @ 2005-04-07 19:19 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-07 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-07 0:48 Mount failure following USB flash key removal Andrew Marshall
2005-04-07 19:19 ` Patrick Mansfield
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).