当前位置:   article > 正文

linux下强制umount_linux fuser 强制umount

linux fuser 强制umount

卸载NFS,结果出现无法卸载的情况

[root@localhost /]# umount /mnt/

umount: /mnt: device is busy

umount: /mnt: device is busy

使用umount -f,问题依旧

[root@localhost /]# umount -f /mnt/

umount2: Device or resource busy

umount: /mnt: device is busy

umount2: Device or resource busy

umount: /mnt: device is busy

使用fuser命令,先确认有那些进程需要杀掉

[root@localhost /]# fuser -cu /mnt

/mnt:                15060c(root)

其次向进程发出SIGKILL信号

[root@localhost /]# fuser -ck /mnt

/mnt:                15060c

确认

[root@localhost /]# fuser -c /mnt

[1]+  Killed                  dd if=1g of=/dev/null bs=1M  (wd: /mnt)

(wd now: /)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小惠珠哦/article/detail/745061
推荐阅读
相关标签
  

闽ICP备14008679号