panic after removing usb flash drive
Eric Anderson
anderson at centtech.com
Wed Aug 31 12:49:18 GMT 2005
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.
------------------------------------------------------------------------
More information about the freebsd-current
mailing list