天天看點

linux下強行umount解除安裝裝置

解除安裝NFS,結果出現無法解除安裝的情況

[root@localhost /]# umount /mnt/

umount: /mnt: device is busy

使用umount -f,問題依舊

[root@localhost /]# umount -f /mnt/

umount2: Device or resource busy

使用fuser指令,先确認有那些程序需要殺掉

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

/mnt:                15060c(root)

其次向程序發出SIGKILL信号

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

/mnt:                15060c

确認

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

繼續閱讀