强制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,不过那个目录应该是放出来了。

This entry was posted in 小企鹅Linux and tagged , . Bookmark the permalink.

2 Responses to 强制umount无响应NFS分区

  1. rainy says:

    看见这些命令我觉得好晕啊,windows不是挺好的嘛。。。

    • hzmangel says:

      @rainy, 呵呵,用过Linux以后,对于Windows上有些东西就十分不习惯鸟。况且,还可以拿出来显摆嘛~~~

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>