From owner-freebsd-questions Fri Mar 2 2: 7:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id 565E137B71A for ; Fri, 2 Mar 2001 02:07:09 -0800 (PST) (envelope-from ryan@sasknow.com) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id EAA85319; Fri, 2 Mar 2001 04:07:00 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Fri, 2 Mar 2001 04:07:00 -0600 (CST) From: Ryan Thompson To: Trevin Chow Cc: questions@FreeBSD.ORG Subject: Re: Can't delete an empty directory? In-Reply-To: <5.0.2.1.2.20010301202957.0254ccd0@mail.brightmail.com> Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Trevin Chow wrote to questions@FreeBSD.ORG: > For some reason I cannot remove a directory even though there are no files > in it. I recently had to run "fsck" manually as my machine had a "kernel > panic" . These events must be related. Here's some output of what's happened: > > /usr/ports/textproc/aspell/work/aspell-.33/scowl/r # ls -al > total 2 > drwxr-xr-x 3 500 500 512 Mar 1 20:30 ./ > drwxr-xr-x 3 500 500 512 Mar 1 20:30 ../ > > /usr/ports/textproc/aspell/work/aspell-.33/scowl # rmdir r > rmdir: r: Directory not empty > > Any ideas what might be causing this? What about the output of `ls -alid r` ? Have you tried `rm -Rf r` ? Did fsck actually fix anything? - Ryan -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message