Can't remove empty directory

Kris Kennaway kris at obsecurity.org
Tue Apr 12 15:33:28 PDT 2005


On Tue, Apr 12, 2005 at 12:14:12PM -1000, Robert Marella wrote:

> drwxr-xr-x  3 root  wheel  1024 Apr 12 10:06 .
> drwxr-xr-x  3 root  wheel   512 Apr 12 10:06 ..
> drwxr--r--  4 root  wheel     0 Apr 12 09:51 gail
> p4# chflags -R noschg gail
> p4# rm -r gail
> rm: gail: Directory not empty
> p4# rm gail
> rm: gail: is a directory
> p4# rmdir gail
> rmdir: gail: Directory not empty
> p4#
> 
> The obvious problem is that the number of links is incorrect but I don't 
> know how to make that right.
> 
> Any help is greatly appreciated.

Unmount the filesystem and run fsck to repair the filesystem
corruption.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050412/c59773b5/attachment.bin


More information about the freebsd-questions mailing list