蓝天,小湖,湖水中一方小筑

强制umount无响应NFS分区

折腾机器的时候,不小心mount上了一个NFS分区,然后那台机器又十分神奇的挂了,只好想着点子去umount了,要不然ls都有问题。
直接umount -f,丫在那等了N久告诉我RPC啥错,然后说device忙,于是乎只有这样了:
`# fuser -km /mnt/dir

umount -f /mnt/dir`

Updated at 2011-01-11

唔,在网上又找到了一个办法

umount -l: 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.

试了一下,满好用,就是在-l后可能还需要等一段时间才能再次mount,不过那个目录应该是放出来了。