打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
umount: /mnt/cdrom: device is busy

(卸载目录时,当前位置不能处于要卸载的目录,否则卸载不成功)

 

Every wonder why sometimes you get this message when you try to un-mount a NFS drive or cdrom drive (不能卸载的情形)
CODE
root@homer:~# umount /mnt/cdrom
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
root@homer:~#
Well chances a process is running that is using that directory. To find out run       (有关的运行的进程)
CODE
root@homer:~# fuser -m /mnt/cdrom/
/mnt/cdrom/: 24066c
That shows you what process is using that directory. Now lets do a ps aux and see whats running (查看哪个进程使用了这个目录)
CODE
root@homer:~# ps aux | grep 24066
root 24066 0.0 0.5 2244 1284 pts/10 S 14:04 0:00 -su
root@homer:~#
Looks like a the root user is in that directory. If you cannot find the term that is in that directory then kill that process(杀死进程)
CODE 
root@homer:~# kill -9 24066
root@homer:~#
now you can un-mount  (可以卸载)
CODE
root@homer:~# umount /mnt/cdrom/
root@homer:~#
This tip brought to you by the letter J and the letter Y

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Linux挂载光盘命令
mount挂载与umount卸载
Linux中光盘的挂载_linux挂载光驱
如何强制umount
linux中挂载和卸载文件系统
umount 卸载挂载点 卸载存储报错 device is busy
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服