本文共 570 字,大约阅读时间需要 1 分钟。
卸载分区目录,出现target is busy
umount /home/data1/umount: /home/data1: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
使用fuser命令
fuser -cu /home/data1//home/data1: 3510c(root)
fuser -ck /home/data1//home/data1: 3510c
umount /home/data1/
可以卸载了
关于fuser的介绍:
fuser 可以显示出当前哪个程序在使用磁盘上的某个文件、挂载点、或者网络端口,并给出程序进程的详细信息. fuser只把PID输出到标准输出,其他的都输出到标准错误输出 查看那些程序使用tcp的80端口:
fuser -v -n tcp 80 USER PID ACCESS COMMAND80/tcp: root 49498 F.... haproxy
转载地址:http://hthwi.baihongyu.com/