Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2001 20:08:17 -0600 (MDT)
From:      Ronald G Minnich <rminnich@lanl.gov>
To:        <freebsd-hackers@FreeBSD.ORG>
Cc:        <mjacob@feral.com>
Subject:   Re: best way to migrate to a new disk 
Message-ID:  <Pine.LNX.4.33.0107082006140.25228-100000@white.acl.lanl.gov>
In-Reply-To: <200107080627.f686RGJ76468@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 8 Jul 2001, Warner Losh wrote:

> In message <Pine.BSF.4.21.0107071842230.58871-100000@beppo> Matthew Jacob writes:
> : tar cfl - . | (cd /altroot/<local_fs> && tar xpf -)
>
> Don't use tar.  It loses devices, can't handle holey files well and a
> number of other minor clitches.  Use dump instead.

yes, tar is a horrible way to do this.

newfs /dev/whatever
mount /dev/whatever /new
cd /new
dump 0f - /dev/your-root-device | restore rf -

At least that's how I do it ...

ron


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.33.0107082006140.25228-100000>