Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2000 17:30:17 +1100
From:      Nick Slager <nicks@albury.net.au>
To:        R Joseph Wright <joseph@nwlink.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: vi weirdness
Message-ID:  <20000218173017.D68962@albury.net.au>
In-Reply-To: <Pine.BSF.4.21.0002171828420.768-100000@mammalia.sea>; from joseph@nwlink.com on Thu, Feb 17, 2000 at 06:32:27PM -0800
References:  <Pine.BSF.4.21.0002171828420.768-100000@mammalia.sea>

next in thread | previous in thread | raw e-mail | index | archive | help
> I'm having trouble with vi.  In fact I'm having a lot of trouble.  I just
> tried to move /var to /usr/var and create a link to /var.  Instead of
> moving /var to /usr/var, it copied all of /var except /var/run/log.  So, I
> didn't create the link or anything.  /var is still intact where it
> was.  But now when I try to use vi, it says "too many levels of symbolic
> links" and it won't let me edit files. 
> 

You're probably better off to do this with tar, a la:

mkdir /usr/var
cd /var
tar cf - . | (cd /usr/var; tar xf -)
cd ..
mv /var /var.old
ln -s /usr/var /var
chmod 1777 /var/tmp

And a reboot after this is also a good idea.


Nick.

-- 
 From a Sun Microsystems bug report (#4102680):
  "Workaround: don't pound on the mouse like a wild monkey."



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?20000218173017.D68962>