umount强制卸载不起作用,卸载光驱终极办法---fuser

在Centos7.2系统下卸载光驱,用强制卸载不起作用

[root@linux-node1 ~]# umount -f /mnt/
umount: /mnt: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

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

[root@linux-node1 ~]# fuser -cu /mnt

/mnt: 15060c(root)

其次向进程发出SIGKILL信号

[root@linux-node1 ~]# fuser -ck /mnt

/mnt: 15060c

确认

[root@linux-node1 ~]# fuser -c /mnt

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

(wd now: /)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章