Re: moving /var
richard@the-place.net <richard@the-place.net>:
> On Wed, Dec 20, 2006 at 01:41:11PM -0500, Greg Folkert wrote:
>
> > On Wed, 2006-12-20 at 14:36 +0000, richard@the-place.net wrote:
> > > I recently tried to move /var to a new partition. Booted from some
> > > live cd, moved it and edited /etc/fstab to suit. Broke the machine
> >
> > So, what did you do to move it? (list of commands used, would be good)
>
> Hmm, it's a couple of weeks ago now. I usually use cp -a for things
> like this and then rename the directory and make a new one to mount to,
> but in this case I think I used mv. I don't think there are any critical
Note mv doesn't work between filesystems. cp -a or tar/untar (or any
other archiver) is the right way.
> symlinks. The old /var directory was definitely empty after the move,
> because I checked. Anyway cp -a back again put everything into place
> and the system booted as normal afterwards.
I don't understand how.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Spammers! http://www.spots.ab.ca/~keeling/emails.html
Reply to: