Skip to contentSkip to conversation

Mount failure following USB flash key removal

DISCUSSION Andrew Marshall 2 participants 2 messages Apr 7, 2005

lore
Share & tools
lore
#0 lore raw

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_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 8 lines · Andrew Marshall

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...).

Quoted 6 lines

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.

Quoted 2 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel