卸载挂载磁盘,结果出现无法卸载的情况
[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: /)