umount移动硬盘遇到device is busy问题
2014-07-28 10:05
309 查看
#umount /mnt/fourt
umount: /mnt/fourt: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
fuser 概述
fuser命令是用来显示所有正在使用着指定的file, file system 或者 sockets的进程信息。
例:
#fuser -m -u /mnt/fourt
/mnt/fourt: 14917c(root) 14918c(root)
在例子中,使用了-m和-u选项,用来查找所有正在使用/mnt/fourt 的所有进程的PID,以及该进程的OWNER,如14917c(root),其中14917是进程PID,root是该进程的OWNER。
fuser会显示正在使用指定的file,file system 或者 sockets的进程的PID。在默认的显示模式下,每个文件名之后会跟随一个字符,用来指示当前的访问类型。
如下所示:
c
current directory.
e
executable being run.
f
open file.
F
open file for writing.
r
root directory.
m
mmap'ed file or shared library
查看进程使用的文件:
# ls -al /proc/14917/fd/
total 0
dr-x------ 2 root root 0 Jul 28 09:58 .
dr-xr-xr-x 7 root screen 0 Jul 8 12:44 ..
lr-x------ 1 root root 64 Jul 28 09:58 0 -> /dev/null
l-wx------ 1 root root 64 Jul 28 09:58 1 -> /dev/null
l-wx------ 1 root root 64 Jul 28 09:58 2 -> /dev/null
lr-x------ 1 root root 64 Jul 28 09:58 3 -> /var/run/screen/S-aimin/14917.pts-6.centos64
lrwx------ 1 root root 64 Jul 28 09:58 5 -> /dev/ptmx
lr-x------ 1 root root 64 Jul 28 09:58 6 -> /var/run/utmp
# ls -al /proc/14918/fd/
total 0
dr-x------ 2 root root 0 Jul 28 09:58 .
#ps --ppid 14917
#ps --ppid 14918
kill进程:
#kill -9 14917
#kill -9 14918
再次umount
#umount /mnt/fourt
umount: /mnt/fourt: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
fuser 概述
fuser命令是用来显示所有正在使用着指定的file, file system 或者 sockets的进程信息。
例:
#fuser -m -u /mnt/fourt
/mnt/fourt: 14917c(root) 14918c(root)
在例子中,使用了-m和-u选项,用来查找所有正在使用/mnt/fourt 的所有进程的PID,以及该进程的OWNER,如14917c(root),其中14917是进程PID,root是该进程的OWNER。
fuser会显示正在使用指定的file,file system 或者 sockets的进程的PID。在默认的显示模式下,每个文件名之后会跟随一个字符,用来指示当前的访问类型。
如下所示:
c
current directory.
e
executable being run.
f
open file.
F
open file for writing.
r
root directory.
m
mmap'ed file or shared library
查看进程使用的文件:
# ls -al /proc/14917/fd/
total 0
dr-x------ 2 root root 0 Jul 28 09:58 .
dr-xr-xr-x 7 root screen 0 Jul 8 12:44 ..
lr-x------ 1 root root 64 Jul 28 09:58 0 -> /dev/null
l-wx------ 1 root root 64 Jul 28 09:58 1 -> /dev/null
l-wx------ 1 root root 64 Jul 28 09:58 2 -> /dev/null
lr-x------ 1 root root 64 Jul 28 09:58 3 -> /var/run/screen/S-aimin/14917.pts-6.centos64
lrwx------ 1 root root 64 Jul 28 09:58 5 -> /dev/ptmx
lr-x------ 1 root root 64 Jul 28 09:58 6 -> /var/run/utmp
# ls -al /proc/14918/fd/
total 0
dr-x------ 2 root root 0 Jul 28 09:58 .
#ps --ppid 14917
#ps --ppid 14918
kill进程:
#kill -9 14917
#kill -9 14918
再次umount
#umount /mnt/fourt
相关文章推荐
- 解决在Linux 下umount 挂载的U盘或者移动硬盘时出现的“Device is busy”
- Linux 下 umount 挂载的优盘或者移动硬盘的时候,经常会出现 “Device is busy”
- Linux问题—解决umount.nfs: /data: device is busy
- 用fuser或者lsof解决无法umount问题(device is busy
- linux 下解决umount 时出现的 "Device is busy"问题
- umount 时出现的 "Device is busy"问题
- linux 下解决umount 时出现的 "Device is busy"问题 绝
- 卸载移动硬盘出现 device is busy
- umount device is busy
- umount 的时候报错:device is busy
- umount 时出现"Device is busy"的解法 [转]
- 用移动硬盘装windows 7时 遇到 A required CD/DVD device driver is missing 的问题
- 解决umount:device is busy
- linux can not umount 'device is busy'
- How to umount when the device is busy
- 【转】umount 的时候报错:device is busy
- 解决 "device is busy" 的问题
- 解决 umount 时出现的 "Device is busy"
- 解决 umount 时出现的 "Device is busy"
- umount: /: device is busy