by caveman » Mon May 23, 2005 6:01 pm
This is something I've been meaning to write about as well..
So now - when I get a device busy - I use "umount -fl /mnt/somemount"
That tries to "force" unmount - and if that fails do a "lazy" unmount..
<quote>
Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore.
(Requires kernel 2.4.11 or later.)
</quote>
Sometime my system hangs during a shutdown - waiting, waiting on a umount when a device is busy.
I've grepped the files in rc.d - made backups and changed all calls to
"umount -f" with "umount -f -l" and the others
"umount -a...." with "umount -a -l..." etc.
so-far it seems to do what I expect without any problems.