From owner-freebsd-questions@FreeBSD.ORG Tue Apr 12 22:42:15 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 6E53716A4D2 for ; Tue, 12 Apr 2005 22:42:15 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBEF743D39 for ; Tue, 12 Apr 2005 22:42:14 +0000 (GMT) (envelope-from garciarojas@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so2018845wri for ; Tue, 12 Apr 2005 15:42:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I0P/481UOa3iLjQz86LSe+BeBQgeYtVIeBKfwyU/gnjz4VfsUt6Z+axQzozCwLE84vMPDS3FKzmk46k6pO/nMLlLz/z1ZiHnvLQZiEWVViNXDlHxFIboWAo8TNqs/DdZumK73baQCM8KbOcM7c+OYcYWTeoyGacITrHHQgEDEZI= Received: by 10.54.97.20 with SMTP id u20mr2847wrb; Tue, 12 Apr 2005 15:42:14 -0700 (PDT) Received: by 10.54.95.11 with HTTP; Tue, 12 Apr 2005 15:42:14 -0700 (PDT) Message-ID: <397b2cad05041215421f6b705a@mail.gmail.com> Date: Tue, 12 Apr 2005 17:42:14 -0500 From: Guillermo Garcia-Rojas To: f-questions In-Reply-To: <20050412223327.GB71285@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <425C4834.2090909@gmail.com> <20050412223327.GB71285@xor.obsecurity.org> Subject: Re: Can't remove empty directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Guillermo Garcia-Rojas List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 22:42:15 -0000 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 wrote: > On Tue, Apr 12, 2005 at 12:14:12PM -1000, Robert Marella wrote: >=20 > > 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. >=20 > Unmount the filesystem and run fsck to repair the filesystem > corruption. >=20 > Kris >=20 >=20 >=20 --=20 --- Guillermo Garc=EDa Rojas Covarrubias Director General=20 SoloBSD http://www.solobsd.org