当前位置:   article > 正文

linux下强行umount卸载挂载的设备_umount2: device or resource busy

umount2: device or resource busy

卸载挂载磁盘,结果出现无法卸载的情况

[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

1、先安装fuser命令

yum -y install psmisc

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

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

/mnt: 15060c(root)

3、其次向进程发出SIGKILL信号

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

/mnt: 15060c

4、确认

[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/745054
推荐阅读
相关标签
  

闽ICP备14008679号