From owner-freebsd-questions Thu Nov 29 3:29:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 520F137B43B for ; Thu, 29 Nov 2001 03:29:21 -0800 (PST) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Thu, 29 Nov 2001 11:29:15 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 169PN8-0004rr-00; Thu, 29 Nov 2001 11:28:54 +0000 Date: Thu, 29 Nov 2001 11:28:54 +0000 (GMT) From: Jan Grant X-X-Sender: To: george Cc: questions Subject: Re: cant delete directory In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 28 Nov 2001, george wrote: > I am trying to delete a directory but it keeps giving me errors > > see below > > gateway# chflags -R noschg SysV > gateway# ll > total 1 > drwxrwxrwx 4 root wheel 512 Nov 28 19:15 SysV > gateway# rm -rf SysV > rm: SysV: Directory not empty > gateway# ls -la SysV > total 2 > drwxrwxrwx 4 root wheel 512 Nov 28 19:15 . ^^^ This would indicate that there are two subdirectories of SysV. Or at least, it thinks there are. References to "." come from: 1 from the parent directory 1 from the "." entry itself 1 from each ".." entry in each subdirectory > drwxr-xr-x 3 root wheel 512 Aug 31 22:19 .. > gateway# > > > > could it be corrupt or something? i been having hard disk problems lately > with this partition. It certainly looks like that; fsck ought to pick up problems like this, however. > fsck output donnt show anything bad. You might try fsdb(8). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk "My army boots contain everything not in them." - Russell's pair o' Docs. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message