SOLVED Cannot remove empty directory

Michael Hipp Michael
Fri Jun 17 08:11:41 PDT 2005


Just FYI. Finally had a chance to take the box offline. Ran xfs_check 
and it found 2 inodes with a wrong link count (or something like that). 
After xfs_repair, the dir deleted just like it should.

Thanks all,
Michael

Net Llama! wrote:
> rm -rf apps
> 
> 
> also, when's the last time you ran a fsck on this filesystem?
> 
> 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?


More information about the Linux-users mailing list