折腾机器的时候,不小心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,不过那个目录应该是放出来了。
看见这些命令我觉得好晕啊,windows不是挺好的嘛。。。
@rainy, 呵呵,用过Linux以后,对于Windows上有些东西就十分不习惯鸟。况且,还可以拿出来显摆嘛~~~