在Linux管理umount设备时,时常会遇到"device is busy", 假设umount一个文件系统碰到这样的情况。而且你并没有在所需卸载的文件夹下。那么非常可能实用户或进程在使用那个文件夹。

# umount /mnt
umount: /mnt: device is busy
umount: /mnt: device is busy

那么必须用fuser命令来查看process ID和进程的拥有者。比方:

# fuser -mu /mnt
/mnt: 25781c(root)
# kill -9 25781
# umount /mnt

像以下这样的情况,就代表rhythmbox用户在使用那个文件夹。然后也能够用fuser -ck /dev/sdc1来杀进程。

# fuser -m /dev/sdc1
/dev/sdc1: 538
# ps auxw|grep 538
donncha 538 0.4 2.7 219212 56792 ? SLl Feb11 11:25 rhythmbox
</pre><span style="font-family:FangSong_GB2312; font-size:18px"><strong>假设全部这些努力还不奏效,杀掉该进程后。那么这个时候可能须要加-f -l參数,强制卸载</strong></span><p><span style="font-family:FangSong_GB2312; font-size:18px"><strong># umount -f -l /mnt</strong></span></p><p></p><pre>

NOTE:

可用以下的命令来检查SATA硬盘的坏块。

# badblocks -v /dev/sda
# badblocks -v /dev/sdb # badblocks -v /dev/mapper/vgosi-lvol1
Checking blocks 0 to 10477568
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.







版权声明:本文博客原创文章。博客,未经同意,不得转载。

最新文章

  1. 使用File类列出指定位置的文件信息,包含该路径子目录下的文件信息
  2. 【原创】Linux常用管理命令总结
  3. angularjs定义全局变量
  4. linux命令:whereis
  5. linux下C++开发工具
  6. 前端project师,确定你的目标吧!无能的人才管他叫命运
  7. select, poll, epoll
  8. 确保 PHP 应用程序的安全 -- 不能违反的四条安全规则
  9. [BeiJing2011]元素
  10. Chapter 5 Blood Type——30
  11. Python开发者年度调研,结果出乎意料!
  12. 贝尔金(Belkin)7231-4P tftp救砖
  13. python- do_excel
  14. vue如何在路由跳转的时候更新组件
  15. wso2esb安装及helloworld
  16. 转 MySQL中的行级锁,表级锁,页级锁
  17. 【js】javaScript 执行机制
  18. C# params传递多个参数
  19. 学习FPGA,踏上一步台阶
  20. devcloud

热门文章

  1. C# 引用类型与值类型的区别
  2. C语言 cgi(3)
  3. Ubuntu 组态 Tomcat而每天的错误解决
  4. jQuery回到顶部插件jQuery GoUp
  5. Apache介绍
  6. Android进程间通信(IPC)机制Binder简介和学习计划
  7. Aix db2 经user a using b连接时报SQL30082N Security processing failed with reason &amp;quot;42&amp;quot;
  8. android登陆接口调试
  9. hdu 4876 ZCC loves cards(暴力)
  10. javascript中的“向量”