Wednesday, March 26, 2014

Unix/Linux: Device or resource busy, cannot delete

If you ever get a message like ..../dc3/stats_asdf/inc/.nfs00000000022b4f4d0009aa': Device or resource busy
when you try to delete a folder using rm -fr ..


This most probably means that there is a process running on your machine that is currently using this directory.


Solution: Kill the process. Run ps -ef | grep "your username etc." Identify the culprit process and kill it using kill (-9) PID

No comments:

Post a Comment