Re: panic after removing usb flash drive

From: Eric Anderson <anderson_at_centtech.com>
Date: Wed, 31 Aug 2005 07:49:27 -0500
Daniel O'Connor wrote:
> On Wednesday 31 August 2005 12:34, Ben Kaduk wrote:
> 
>>Of course, if you did unmount the filesystem before pulling the drive, then
>>this shoule be looked into.
> 
> 
> IMHO it would be really nice if you could tell the kernel that it should just 
> ditch the data (and whine to the log file) instead of panicing.
> 
> For your "main" file systems the panic approach is sensible, but for removable 
> things it's more likely to cause data loss I think (because the panic could 
> eat data on your other drives).
> 
> Although last time I saw this discussed I came away with the impression that 
> it wasn't possible for the kernel to do this..? (without substantial work 
> anyway)
> 

Why not just use the automounter to mount/umount this for you?  This 
probably won't get around umounting while in use, but you might be able 
to tell amd to use a umount -f on it.

Eric



-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
Anything that works is better than anything that doesn't.
------------------------------------------------------------------------
Received on Wed Aug 31 2005 - 10:49:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:42 UTC