From owner-freebsd-questions Wed Sep 11 18: 4:44 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 0E4D537B400 for ; Wed, 11 Sep 2002 18:04:41 -0700 (PDT) Received: from nebula.anchoragerescue.org (115-7-237-24-cable.anchorageak.net [24.237.7.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96D3643E3B for ; Wed, 11 Sep 2002 18:04:39 -0700 (PDT) (envelope-from akbeech@sinbad.net) Received: from nova.anchoragerescue.org (galaxy.anchoragerescue.org [24.237.7.95]) by nebula.anchoragerescue.org (Postfix) with ESMTP id 95844700; Wed, 11 Sep 2002 17:04:38 -0800 (AKDT) Content-Type: text/plain; charset="iso-8859-1" From: Beech Rintoul Organization: Sinbad Network Communications Inc. To: "Riley J. McIntire" , "FreeBSD Questions" Subject: Re: Can't delete a directory Date: Wed, 11 Sep 2002 17:04:38 -0800 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200209111704.38102.akbeech@sinbad.net> 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 Wednesday 11 September 2002 04:52 pm, Riley J. McIntire wrote: > Hi all, > > > Prior to a buildworld (adding sasl support to sendmail by installing > cyrus-sasl2 and modifying /etc/make.conf on 4.6.2-RELEASE) when removing > the old /usr/obj/usr this happened: > > root@wimp:obj# chflags -R noschg * && \rm -r usr/ > rm: usr/src/fsck_msdosfs: Directory not empty > rm: usr/src: Directory not empty > rm: usr/: Directory not empty > > root@wimp:obj# ls -ilaFo usr/src/fsck_msdosfs/ > total 4 > 155993 drwxr-xr-x 2 root wheel - 512 Sep 11 17:14 ./ > 133634 drwxr-xr-x 3 root wheel - 512 Sep 11 17:14 ../ > root@wimp:obj# ls -ilaFo usr/src/ > total 6 > 133634 drwxr-xr-x 3 root wheel - 512 Sep 11 17:14 ./ > 133633 drwxr-xr-x 3 root wheel - 512 Sep 1 13:58 ../ > 155993 drwxr-xr-x 2 root wheel - 512 Sep 11 17:14 fsck_msdosfs/ > > It will move within the fs, but not across: > > root@wimp:src# mv fsck_msdosfs/ /usr > root@wimp:src# ll > total 4 > drwxr-xr-x 2 root wheel - 512 Sep 11 17:45 ./ > drwxr-xr-x 3 root wheel - 512 Sep 1 13:58 ../ > > root@wimp:src# mv /usr/fsck_msdosfs/ /tmp > mv: /usr/fsck_msdosfs/: Directory not empty > mv: /bin/rm: terminated with 1 (non-zero) status: Cross-device link > root@wimp:src# > > Any ideas? > > Thanks, > > Riley Try doing rm -R /usr/obj/usr Beech ------------------------------------------------------------------- Beech Rintoul - SysAdmin - akbeech@sinbad.net /"\ ASCII Ribbon Campaign | Sinbad Network Communications \ / - NO HTML/RTF in e-mail | 3101 Penland Parkway #K-38 X - NO Word docs in e-mail | Anchorage, AK 99508-1957 / \ ----------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message