Linux下rm -rf删除文件夹报错_ Device or resource busy

1、错误信息

rm: cannot remove `speechd-centos_6.2-prtl-pred-mf34/modules/t2p/py/third/g2p/.nfs00000000039b946b00000004': Device or resource busy
rm: cannot remove `speechd-centos_6.2-prtl-pred-mf34/modules/t2p/py/log/.nfs00000000039c52ef00000005': Device or resource busy
rm: cannot remove `speechd-centos_6.2-prtl-pred-mf34/modules/t2p/py/.nfs00000000039add2900000006': Device or resource busy
rm: cannot remove `speechd-centos_6.2-prtl-pred-mf34/modules/t2p/py/.nfs00000000039ae1bf00000007': Device or resource busy
rm: cannot remove `speechd-centos_6.2-prtl-pred-mf34/.nfs00000000039ad17f00000008': Device or resource busy

2、错误原因

      还有进程在运行

3、解决办法

      在终端执行 lsof +D 再加上无法删除文件的目录,把显示的process都kill掉,然后再rm就可以了。

posted on 2017-04-10 13:52  袁军峰  阅读(40419)  评论(0编辑  收藏  举报

导航