umount命令提示busy无法正常卸载的解决
在使用umount卸载时提示target is busy,如下
root@bzlrobot:/# umount /media/bzlrobot/20E8-6F09
umount: /media/bzlrobot/20E8-6F09: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
使用lsof
或fuser
命令查看占用的文件句柄,并用kill杀死占用文件的进程
root@bzlrobot:/# lsof /media/bzlrobot/20E8-6F09
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sftp-serv 6688 bzlrobot 3r REG 8,17 93312 1000 /media/bzlrobot/20E8-6F09/SC001/001.mp3
root@bzlrobot:/# kill -9 6688
root@bzlrobot:/# umount /media/bzlrobot/20E8-6F09
解除上述提示的文件占用后,如果还不能正常卸载,则在`umount` 命令后面加 `-f` 参数强制卸载
标签:busy,media,umount,卸载,bzlrobot,20E8
From: https://www.cnblogs.com/HuangLiDi/p/18131489