removing external usb hdd without unmounting causes reboot?

M. Warner Losh imp at
Thu Jul 19 15:04:33 UTC 2007

In message: <200707190943.55428.idiotbg at>
            Momchil Ivanov <idiotbg at> writes:
: What is then the reason for the kernel not being able to unmount a
: filesystem whose provider is no longer present?

The problem is that the device driver has wound down, deallocated
memory, etc.  Now the kernel comes along with stale references to the
device and panic ensues.  It is really just that simple.  There's no
replacement of the now-dead device with dead calls.

And even if you fixed that, most of the file systems in the tree today
do not tolerate errors on writes at all and that also leads to
panics.  This is why firewire freezes the I/Os rather than failing
them (and why umount -f on a firewire drive hangs).


More information about the freebsd-stable mailing list