Can't remove empty directory

Guillermo Garcia-Rojas garciarojas at gmail.com
Tue Apr 12 15:42:15 PDT 2005


After moving the directory, the system will prompt for a corruption on
the filesystem and a simple fsck, as you say, will fix the problem :)

These are my 2 cents.

On 4/12/05, Kris Kennaway <kris at obsecurity.org> wrote:
> 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
> 
> 
> 


-- 
---
Guillermo García Rojas Covarrubias
Director General 
SoloBSD
http://www.solobsd.org


More information about the freebsd-questions mailing list