Date: Tue, 7 Oct 2008 00:46:32 +0200 From: Roland Smith <rsmith@xs4all.nl> To: jaymax <jaymax36@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Cant remove /var, in relocating /var to a symbolic link Message-ID: <20081006224632.GA71290@slackbox.xs4all.nl> In-Reply-To: <19847627.post@talk.nabble.com> References: <19847627.post@talk.nabble.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081006224632.GA71290>