Linux中遇到device is busy报错怎么办?
时间:2023-06-23 11:37:10
在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
如果所有这些努力还不奏效,杀掉该进程后,那么这个时候可能需要加-f -l参数,强制卸载
# umount -f -l /mnt
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.
标签:Linux,device,is,busy
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10笔记本自带的键盘失灵了怎么办?
2023-11-18 03:04:44
![](https://img.aspxhome.com/file/2023/9/49819_0s.jpg)
word数字转大写怎么做?
2022-09-26 11:44:34
![](https://img.aspxhome.com/file/2023/2/34712_0s.gif)
WPS Office 免费绿色优化精简版下载
2022-01-18 16:13:21
![](https://img.aspxhome.com/file/2023/2/a187382_0s.jpg)
win8.1连接wifi受限的多种解决办法 win8.1无法连接wifi怎么办
2022-04-15 17:54:48
![](https://img.aspxhome.com/file/2023/29/a253984_0s.png)
卡硬工具箱和图吧工具箱哪个好?
2022-03-16 01:02:47
![](https://img.aspxhome.com/file/2023/30/a271600_0s.png)
Win10专业版网卡驱动异常怎么办?Win10专业版网卡驱动异常修复方法
2023-10-04 11:22:03
![](https://img.aspxhome.com/file/2023/1/a281165_0s.jpg)
win10 Build 10000编译完成 版本号突破10000
2023-07-08 00:46:22
![](https://img.aspxhome.com/file/2023/29/a252216_0s.jpg)
图像查看软件WidsMob Image Viewer Mac版都支持哪些图片格式?
2023-07-20 01:52:45
![](https://img.aspxhome.com/file/2023/6/a212776_0s.jpeg)
微软输入法选字框消失 win10系统输入法不显示选字框怎么解决?
2023-08-21 01:22:13
![](https://img.aspxhome.com/file/2023/28/a239925_0s.jpg)
excel表格怎么设置输入的数据保留整数
2022-10-02 12:15:50
Excel分列功能,原来是这么用的
2022-10-25 12:54:12
![](https://img.aspxhome.com/file/2023/7/39177_0s.gif)
Word文档中怎么对英文字母进行大小写便捷切换教学
2023-04-09 02:06:54
![](https://img.aspxhome.com/file/2023/8/31148_0s.png)
Win8与Win7哪个系统好用?Win8/7性能综合指数对比
2023-08-04 01:58:09
![](https://img.aspxhome.com/file/2023/29/a251775_0s.jpg)
Win10更新失败的解决方法
2023-09-14 18:14:06
![](https://img.aspxhome.com/file/2023/26/a225406_0s.jpg)
Win7纯净版系统如何利用dos命令批量提取文件名?
2022-06-13 18:08:55
![](https://img.aspxhome.com/file/2023/26/a229138_0s.jpg)
Win11磁盘管理在哪里打开?Win11磁盘管理打开教程
2022-03-22 23:17:11
![](https://img.aspxhome.com/file/2023/2/a284237_0s.jpg)
腾讯文档生成网页文档方法教程
2022-12-14 23:05:29
![](https://img.aspxhome.com/file/2023/30/a265072_0s.png)
PPT如何制作渐变条形图 实例教程
2023-05-26 05:38:00
![](https://img.aspxhome.com/file/2023/10/a352189_0s.jpg)
Win8如何借助BlueScreenView工具分析蓝屏故障文件
2023-08-19 20:58:07
![](https://img.aspxhome.com/file/2023/2/a288331_0s.jpg)
Win11怎么强制关闭软件?
2023-02-17 21:07:12
![](https://img.aspxhome.com/file/2023/1/a272090_0s.png)