Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Mar 2008 18:59:34 -0400
From:      "Jim Stapleton" <stapleton.41@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Is this safe? Copying a complete install from one HD to another
Message-ID:  <80f4f2b20803241559v4fbb6162k44fcbeb0fd17ad3e@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I have a 6.2 machine I just upgraded to 7.0. I did a fresh install on
the second HD. I'm almost to the point where I'm sure the install is
at least as functional as the previous install (i.e. I didn't break
anything). The second HD has always seemed a bit chintzy to me (and
you can hear the drive heads when it is active), so I'd just as soon
get the 7.0 OS off of there, and onto the main drive. I also prefer to
use the main HD, because it's partitioned nicer. I heard you can tar
data from an old drive to a new one, and have it work properly,
provided the MBR is set up to boot that partition, is this correct?

Planned method:
use sysinstall to reformat the old /, /usr, /var and /tmp

mount the old /, /usr, /var, and as /old, /old/usr, /old/var respectively.
(in /old)
$ tar -cf - -exclude /old -exclude /tmp / | tar -xf -

edit /old/etc/fstab appropriately
reboot.


Should this work?

Thanks,
-Jim Stapleton



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80f4f2b20803241559v4fbb6162k44fcbeb0fd17ad3e>