• 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

  • 文章声明
  • 作者:Owen
  • 出处: http://www.cnblogs.com/owenyang
  • 本文版权归作者,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。该博客同步发在 HEXO-博客
  • 相关阅读:
    接口测试入门(4)--接口自动化测试框架 / list和map用法 / 随机选取新闻 (随机数生成) / 接口相关id映射
    接口测试入门(2)--get和post初级请求/使用httpclient做一个获取信息list的请求(需要登录才可以)
    接口测试学习入门(1)--前期知识储备
    如何使用fiddler抓取https请求(PC和移动端)
    关于Yii2.0的url路径优化问题(配置虚拟路径)
    yii 关于如何改变默认访问的控制器(site)
    composer更新不成功,启用国内镜像网站的配置更改办法
    Yii2 windows 安装步骤
    windows下安装composer方法
    CentOS 6.5网络配置静态IP地址
  • 原文地址:https://www.cnblogs.com/owenyang/p/3579128.html
  • Copyright © 2020-2023  润新知