Date: Mon, 26 Mar 2001 05:27:12 -0500 From: Bill Moran <wmoran@iowna.com> To: cjclark@alum.mit.edu Cc: Forrest <praxis@techpraxis.com>, FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Best way to clone an existing FreeBSD installation? Message-ID: <3ABF1980.7DC0EF9D@iowna.com> References: <B6E42A7C.2DFB%praxis@techpraxis.com> <20010325233113.I5425@rfx-216-196-73-168.users.reflex>
next in thread | previous in thread | raw e-mail | index | archive | help
"Crist J. Clark" wrote: > > On Sun, Mar 25, 2001 at 11:06:36PM -0800, Forrest wrote: > > What is the best way to accomplish the following: > > > > Have a working installation (4.2-CURRENT) on one 45 G IDE hard disk (only 11 > > G are in use), and I would like to copy it EXACTLY to another, 30 G hard > > disk, so that I can (hopefully) replace the 1st hard disk (the working one > > has no errors) with the copy. Or is this too unwieldy? > > 1) Slice and partition the new disk. > > 2) newfs(8) each partition on the new disk. > > 3) Mount the new filesystem hierarchy at, say, /mnt. > > 3) Do, > > dump -0af - /filesystem | restore -rf - /mnt/filesystem > > For each filesystem. > > And you've got a copy of the drive. You'll also need to use disklabel to install boot blocks. (Which you may be implying with step #1, but I thought I'd point out just in case) -Bill 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?3ABF1980.7DC0EF9D>