Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux管理 >> Linux 疑難排解

umount 出現 device is busy?用 fuser 找出佔用行程

卸載 /home 時若出現 umount: /home: device is busy,代表有程式正在使用該目錄,導致無法卸載。解決方式不難,只要找出佔用的行程並結束它即可。

先查出是哪些行程佔用 /home:

[root@localhost home]# fuser -m /home

輸出可能類似:

/home: 10278c 10279c 10280c 10281c 10282c 10295 10365 18222c

這些數字就是佔用 /home 的行程 PID,接著用:

kill -9 pid

把對應的行程結束掉,再重新執行 umount,就能順利卸載了。這個方法在處理「device is busy」這類卸載錯誤時非常管用。

Copyright © Linux教程網 All Rights Reserved