From owner-freebsd-questions@FreeBSD.ORG Tue Apr 12 22:33:28 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8280E16A4CE for ; Tue, 12 Apr 2005 22:33:28 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 123A243D48 for ; Tue, 12 Apr 2005 22:33:28 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 65454530ED; Tue, 12 Apr 2005 15:33:27 -0700 (PDT) Date: Tue, 12 Apr 2005 15:33:27 -0700 From: Kris Kennaway To: Robert Marella Message-ID: <20050412223327.GB71285@xor.obsecurity.org> References: <425C4834.2090909@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XF85m9dhOBO43t/C" Content-Disposition: inline In-Reply-To: <425C4834.2090909@gmail.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Can't remove empty directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 22:33:28 -0000 --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--