Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Apr 2005 15:33:27 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Robert Marella <rmarella@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can't remove empty directory
Message-ID:  <20050412223327.GB71285@xor.obsecurity.org>
In-Reply-To: <425C4834.2090909@gmail.com>
References:  <425C4834.2090909@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--XF85m9dhOBO43t/C
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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#
>=20
> The obvious problem is that the number of links is incorrect but I don't=
=20
> know how to make that right.
>=20
> Any help is greatly appreciated.

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

Kris

--XF85m9dhOBO43t/C
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCXEy3Wry0BWjoQKURApTdAKCFKqWMpB5ntaBHhSwIyLLLs4KXWACfVvJE
4Koh3aGHHkGF7XvBxULEjeM=
=6V3X
-----END PGP SIGNATURE-----

--XF85m9dhOBO43t/C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050412223327.GB71285>