Linux 下使用umount强行卸载设备

卸载NFS,结果出现无法卸载的情况

1 [root@localhost /]# umount /udisk/
3 umount: /udisk: device is busy
5 umount: /udisk: device is busy

使用umount -f,问题依旧

1 [root@localhost /]# umount -f /udisk
2 umount2: Device or resource busy
3 umount: /udisk: device is busy
4 umount2: Device or resource busy
5 umount: /udisk: device is busy

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

1 [root@localhost /]# fuser -cu /udisk
2 /udisk:                15060c(root)

其次向进程发出SIGKILL信号

1 [root@localhost /]# fuser -ck /udisk
2 /udisk:                15060c