From owner-freebsd-questions Thu Sep 12 11:34:26 2002 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 206C337B400 for ; Thu, 12 Sep 2002 11:34:24 -0700 (PDT) Received: from aji.wilshire.net (mail.wilshire.net [64.161.77.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 854EC43E6E for ; Thu, 12 Sep 2002 11:34:23 -0700 (PDT) (envelope-from rileyjmc@pacbell.net) Received: from emilyd (emilyd.wilshire.net [10.100.123.20]) by aji.wilshire.net (8.12.3/8.12.3) with SMTP id g8CIVmqC096036; Thu, 12 Sep 2002 11:31:49 -0700 (PDT) (envelope-from rileyjmc@pacbell.net) From: "Riley J. McIntire" To: "John Mills" , "Riley J. McIntire" Cc: "Beech Rintoul" , "FreeBSD Questions" Subject: RE: Can't delete a directory Date: Thu, 12 Sep 2002 11:34:10 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 In-Reply-To: Importance: Normal 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 > > > root@wimp:obj# rm -rf usr/ > > rm: usr/fsck_msdosfs: Directory not empty > > rm: usr/: Directory not empty > > root@wimp:obj# > > Sorry - I came in late on this. Even as root! Is this behavior limited to > DOS directories? This isn't a DOS directory, it's the remnants of the last buildworld (this machine is "Build Master" for the other servers on the network). As such, /usr/obj is an NFS export. However, /usr/obj/usr/fsck_msdosfs isn't mounted. And after "umount -at nfs" on the other servers just to make sure the error still occurs. It's not convenient to take this down to single user, and I'm concerned this might be a symptom of a more serious problem, although the logs show nothing. > # consider interactive use here: 'rm -i $FILENAME' > echo "Removing "$FILENAME > rm -f $FILENAME > done > echo "Removing directories below "$1 > rm -rf $1 > fi Seems to me running rm -rf in a script wouldn't do any more than cli. Thanks for the help! Riley To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message