Re: best way to migrate to a new disk

[ Available lists | Index of freebsd-hackers | Month of Jul 2001 | Week of 8 Jul 2001 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Ronald G Minnich <rminnich@lanl.gov>
Date
8 Jul 2001 19:08:22
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
Referenced by

[ Hide this part ]
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



Elapsed time: 0.252 seconds