Cannot remove empty directory

Michael Hipp Michael
Wed Jun 15 15:54:27 PDT 2005


Net Llama! wrote:
> rm -rf apps

   $ rm -rf apps
   rm: cannot remove directory `apps': Directory not empty

Note that I had already tried 'rm -drf'.

> also, when's the last time you ran a fsck on this filesystem?

Probably never. This server was put in operation about 6 months ago and 
has hardly been rebooted since.

Is it possible to do 'xfs_check' while running or does it have to come 
down to RL1?

Thanks,
Michael


> On Wed, 15 Jun 2005, Michael Hipp wrote:
> 
> 
>>I'm trying to delete an empty directory - normally not a particularly
>>esoteric task :-)
>>
>>   $ ls -lah
>>   drwx------   1 michael michael    6 2005-06-15 14:10 apps
>>   [snip]
>>   $ rmdir apps
>>   rmdir: `apps': Directory not empty
>>   $ ls -la apps
>>   total 4
>>   drwx------   1 michael michael    6 2005-06-15 14:10 .
>>   drwxr-xr-x  20 michael michael 4096 2005-06-15 14:10 ..
>>   $ rm -drf apps
>>   rm: cannot remove directory `apps': Directory not empty
>>   $ rmdir --ignore-fail-on-non-empty apps
>>   $ ls -lah
>>   drwx------   2 michael michael   17 2005-06-15 14:15 apps
>>   [snip]
>>
>>Can't do it as root either. It's empty but it ain't ("total 4"). What gives?
>>
>>Michael
>>_______________________________________________
>>Linux-users mailing list ( Linux-users at linux-sxs.org )
>>Unsub/Password/Etc: http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
>>
>>Need to chat further on this subject? Check out #linux-users on irc.linux-sxs.org !
>>
> 
> 



More information about the Linux-users mailing list