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

时间:2017-04-10 14:48:20   收藏:0   阅读:6707

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就可以了。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!