Linux在device is busy处理
2024-10-09 11:50:00
在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.
版权声明:本文博客原创文章。博客,未经同意,不得转载。
最新文章
- 使用File类列出指定位置的文件信息,包含该路径子目录下的文件信息
- 【原创】Linux常用管理命令总结
- angularjs定义全局变量
- linux命令:whereis
- linux下C++开发工具
- 前端project师,确定你的目标吧!无能的人才管他叫命运
- select, poll, epoll
- 确保 PHP 应用程序的安全 -- 不能违反的四条安全规则
- [BeiJing2011]元素
- Chapter 5 Blood Type——30
- Python开发者年度调研,结果出乎意料!
- 贝尔金(Belkin)7231-4P tftp救砖
- python- do_excel
- vue如何在路由跳转的时候更新组件
- wso2esb安装及helloworld
- 转 MySQL中的行级锁,表级锁,页级锁
- 【js】javaScript 执行机制
- C# params传递多个参数
- 学习FPGA,踏上一步台阶
- devcloud
热门文章
- C# 引用类型与值类型的区别
- C语言 cgi(3)
- Ubuntu 组态 Tomcat而每天的错误解决
- jQuery回到顶部插件jQuery GoUp
- Apache介绍
- Android进程间通信(IPC)机制Binder简介和学习计划
- Aix db2 经user a using b连接时报SQL30082N Security processing failed with reason &;quot;42&;quot;
- android登陆接口调试
- hdu 4876 ZCC loves cards(暴力)
- javascript中的“向量”