centos下挂载的iso文件,卸载时报umount target is busy解决方法
1-本地iso文件临时挂载
命令:mount -t iso9660 iso文件 挂载路径(注:a-iso9660是挂载本地iso文件;b-挂载到/dev/loop0)
2-卸载挂载
a-查看挂载
命令:df -h
b-卸载挂载
命令:umount /dev/loop0
3-遇到的问题-卸载时报umount target is busy:
(1)获取进程的id:
命令:lsof /dev/loop0(挂载磁盘的路径)
如:使用“umount /dev/loop0”时报错umount target is busy
(2)kill 杀死占用进程:
命令:kill PID
(3)卸载磁盘
命令:umount /dev/loop0
(4)再次查看磁盘是否取消挂载
命令:df -h