umount 的时候报错:device is busy
今天刚上服务器习惯的用了输入:
df -HT
查看到有移动硬盘挂载在/mnt/usbdisk目录下...
想必是上次没有umount
执行umount 的时候却提示:device is busy
强行: umount /dev/sdb2 -f
提示:umount2: 设备或资源忙
umount: /mnt/usbdisk: device is busy
有人在使用...查看一样使用情况: fuser -m /mnt/usbdisk
有 6406 进程在使用..
ps aux | grep 6406
再kill
接着umount 提示还是失败...
接着 fuser -k /mnt/usbdisk
提示:
/mnt/usbdisk/: 6406c
No automatic removal. Please use umount /mnt/usbdisk
按提示操作: umount /mnt/usbdisk OK
如果device is busy 强行umount的方法!
[root@localhost mega64L_test]# fuser -m /dev/sda6
/dev/sda6: 3253
[root@localhost mega64L_test]# ps aux | grep 3253
root 3253 0.0 0.2 4008 1296 ? S 11:56 0:00 /usr/libexec/gam_server
root 4620 0.0 0.1 3964 656 pts/1 R+ 12:12 0:00 grep 3253
[root@localhost mega64L_test]# kill
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
[root@localhost mega64L_test]# kill -n 3253
bash: kill: 3253: invalid signal specification
[root@localhost mega64L_test]# kill 3253
[root@localhost mega64L_test]# umount /dev/sd
sda sda1 sda2 sda5 sda6 sda7 sdb sdc sdd
[root@localhost mega64L_test]# umount /dev/sda6
[root@localhost mega64L_test]#
阅读(5231) | 评论(0) | 转发(0) |