首页 > 系统服务 > 详细

linux下强行umount卸载设备

时间:2018-07-17 17:49:09      阅读:204      评论:0      收藏:0      [点我收藏+]
卸载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: /)


linux下强行umount卸载设备

原文:http://blog.51cto.com/sf1314/2145961

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!