My script needs to recursive delete in a directory.
Other directories work fine.
One directory is plagued by the following:
rm -rf: Unable to remove directory <some/sub/directory>: Device busy
I found a post that said "shared folder" was the issue, but doesn't seem to be the fix.
I have tried:
#share - got nothing lsof: command not found
privs seem ok
drwxr-xr-x 4 root root 4 Jan 3 13:25 dir2/ drwxr-xr-x 5 root root 9 Jan 8 20:16 bad_dir1/ fuser -cu /bad_dir1 /bad_dir1:
Rewrote my script to ensure it returns to original calling directory.
Anything else I can look for?