linux下強行umount卸載設備



卸載NFS,結果出現無法卸載的情況


umount /mnt/
umount: /mnt: device is busy
使用umount -f,問題依舊
umount -f /mnt/
umount2: Device or resource busy
umount: /mnt: device is busy
umount2: Device or resource busy
umount: /mnt: device is busy
使用fuser命令,先確認有那些進程需要殺掉
fuser -cu /mnt
/mnt: 15060c(root)
其次向進程發出SIGKILL信號
fuser -ck /mnt
/mnt: 15060c
fuser -c /mnt
[1]+ Killed dd if=1g of=/dev/null bs=1M (wd: /mnt)
(wd now: /)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM