linux umount 提示被占用无法卸载iso文件解决办法

问题:

[root@localhost mnt]# umount /mnt -f
umount: /mnt: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

 解决方法:

解除占用再卸载

[root@localhost mnt]# fuser -m /dev/cdrom 
/dev/sr0:             1912c  2808c
[root@localhost mnt]# ps aux | grep 1912c
root       3257  0.0  0.0 112640   964 pts/0    R+   10:51   0:00 grep --color=auto 1912c
[root@localhost mnt]# ps aux | grep 1912
root       1912  0.0  0.1 116252  3088 pts/0    Ss   10:20   0:00 -bash
root       3259  0.0  0.0 112640   964 pts/0    R+   10:51   0:00 grep --color=auto 1912
[root@localhost mnt]# kill -9 1912

把所有占用资源的进程结束掉之后

[root@localhost ~]# umount /mnt/
[root@localhost ~]# cd /mnt/
[root@localhost mnt]# ls
[root@localhost mnt]# 

之前挂载后的光盘现在经过卸载发现目录底下并没有任何文件,证明卸载成功!!!

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值