From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 22:46:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E90E106569A for ; Mon, 6 Oct 2008 22:46:34 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.freebsd.org (Postfix) with ESMTP id EA50B8FC19 for ; Mon, 6 Oct 2008 22:46:33 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id m96MkWHJ035933; Tue, 7 Oct 2008 00:46:32 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 41727BA89; Tue, 7 Oct 2008 00:46:32 +0200 (CEST) Date: Tue, 7 Oct 2008 00:46:32 +0200 From: Roland Smith To: jaymax Message-ID: <20081006224632.GA71290@slackbox.xs4all.nl> References: <19847627.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <19847627.post@talk.nabble.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Cant remove /var, in relocating /var to a symbolic link X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2008 22:46:34 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 06, 2008 at 03:31:42PM -0700, jaymax wrote: >=20 > I am attempting to relocate /var to avoid files system full issues.=20 > Using a - > mkdir /usr/var > cd /var > tar cf - . | (cd /usr/var; tar xf - ) > cd / > rm -rf /var > ln -s /usr/var /var > approach >=20 > at the=20 > rm -rf /var step, the following was received > rm: /var/empty: Operation not permitted /var/empty has the system immutable flag set :-) slackbox:~> ls -lod /var/empty dr-xr-xr-x 2 root wheel schg 512 Oct 9 2005 /var/empty/ > rm: /var/named/dev: Device busy If you have named(8) running with named_chrootdir set to /var/named in /etc/rc.conf, a devfs(5) filesystem will be mounted on /var/named/dev. That's what keeping the device busy. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjqlUgACgkQEnfvsMMhpyVBWwCcCDPOqekNs1Gc0ONeVccVn7M7 isAAoK36L4FZBfuVRciSaD99iR2NFR+H =/eZI -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--