Cant remove /var, in relocating /var to a symbolic link

Roland Smith rsmith at xs4all.nl
Mon Oct 6 22:46:34 UTC 2008


On Mon, Oct 06, 2008 at 03:31:42PM -0700, jaymax wrote:
> 
> I am attempting to relocate /var to avoid files system full issues. 
> Using a -
> 	mkdir /usr/var
> 	cd /var
> 	tar cf - . | (cd /usr/var; tar xf - )
> 	cd /
> 	rm -rf /var
> 	ln -s /usr/var /var
> approach
> 
> at the 
> 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
-- 
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081006/adddd98e/attachment.pgp


More information about the freebsd-questions mailing list