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: /)

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