Linux - fuser - umount device busy
2013-11-26 10:07
225 查看
有時候 USB DiskonKey 或是遠端分享目錄掛載( mount )後怎麼樣都無法移除掛載( umount ),就像是下面所出現的提示訊息一樣.
這不能移除掛載的狀況有很多有可能是程式還在該目錄下做存取或是檔案已經被開啟的狀態中..等等的情況都有可能.此時我們可以透過 "Fuser" 指令來查出到底是什麼原因讓該目錄無法移除掛載.
原來是 PID(Process ID) 849 這麼程式讓該目錄除法移除掛載.那後面的 c 是代表什麼呢!!
c current directory.
e executable being run.
f open file. f is omitted in default display mode.
F open file for writing. F is omitted in default display mode.
r root directory.
m mmap'ed file or shared library.
先查一下 PID 849 是在做什麼,之後你自己就可以決定是不是要用 kill 來移除這一程序.
或是直接加參數 -k ,移除該程序.
http://benjr.tw/node/580
[root@benjr media]# umount /media/ unmount error 16 = Device or resource busy Refer to the umount.cifs(8) manual page (man 8 umount.cifs) |
[root@benjr media]# fuser -m /media/ /media/: 849c |
c current directory.
e executable being run.
f open file. f is omitted in default display mode.
F open file for writing. F is omitted in default display mode.
r root directory.
m mmap'ed file or shared library.
先查一下 PID 849 是在做什麼,之後你自己就可以決定是不是要用 kill 來移除這一程序.
[root@benjrmedia]# ps -auxw |grep 849 Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ root 849 0.0 0.0 66096 1584 pts/4 Ss 16:52 0:00 bash root 2075 0.0 0.0 61188 752 pts/4 S+ 23:54 0:00 grep 849 |
[root@benjr media]# fuser -kvm /media/ |
相关文章推荐
- Linux问题—解决umount.nfs: /data: device is busy
- linux umount命令介绍与device is busy解决方法
- linux umount 时出现device is busy 的处理方法--fuser
- Linux umount - device is busy
- linux umount 提示"device is busy"
- linux 下解决umount 时出现的 "Device is busy"问题 绝
- Linux 下 umount 挂载的优盘或者移动硬盘的时候,经常会出现 “Device is busy”
- linux can not umount 'device is busy'
- linux umount 时出现device is busy 的处理方法--fuser
- linux 下解决umount 时出现的 "Device is busy"问题
- 用fuser或者lsof解决无法umount问题(device is busy
- 解决在Linux 下umount 挂载的U盘或者移动硬盘时出现的“Device is busy”
- linux umount 时出现device is busy 的处理方法--fuser
- Linux umount device is busy
- Linux卸载分区设备提示:umount device busy
- linux下umount 提示“device busy\"解决方法
- linux umount 时出现device is busy 的处理方法--fuser
- linux umount卸载 device is busy
- Linux-系统管理-fuser&解决device is busy
- linux umount命令介绍与device is busy解决方法