Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2002 17:04:38 -0800
From:      Beech Rintoul <akbeech@sinbad.net>
To:        "Riley J. McIntire" <rileyjmc@pacbell.net>, "FreeBSD Questions" <freebsd-questions@FreeBSD.org>
Subject:   Re: Can't delete a directory
Message-ID:  <200209111704.38102.akbeech@sinbad.net>
In-Reply-To: <HEEELMCBPANKADCOBOFPGEJHGAAA.rileyjmc@pacbell.net>
References:  <HEEELMCBPANKADCOBOFPGEJHGAAA.rileyjmc@pacbell.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209111704.38102.akbeech>