Chinaunix首页 | 论坛 | 博客
  • 博客访问: 943108
  • 博文数量: 80
  • 博客积分: 2380
  • 博客等级: 大尉
  • 技术积分: 1049
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-14 11:06
个人简介

Only to find a successful way, not to find excuses for failure!

文章分类

全部博文(80)

文章存档

2016年(2)

2015年(4)

2014年(10)

2013年(10)

2012年(7)

2011年(17)

2010年(30)

分类: LINUX

2011-11-23 15:21:50

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]#
 

阅读(5166) | 评论(0) | 转发(0) |
0

上一篇:各种测试页面

下一篇:linux开启gzip功能

给主人留下些什么吧!~~