From owner-freebsd-questions Sun Mar 25 23:31:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 9BEDB37B719 for ; Sun, 25 Mar 2001 23:31:20 -0800 (PST) (envelope-from cjc@rfx-216-196-73-168.users.reflexcom.com) Received: from rfx-216-196-73-168.users.reflexcom.com ([216.196.73.168]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sun, 25 Mar 2001 23:29:10 -0800 Received: (from cjc@localhost) by rfx-216-196-73-168.users.reflexcom.com (8.11.3/8.11.1) id f2Q7VDq13445; Sun, 25 Mar 2001 23:31:13 -0800 (PST) (envelope-from cjc) Date: Sun, 25 Mar 2001 23:31:13 -0800 From: "Crist J. Clark" To: Forrest Cc: FreeBSD Questions Subject: Re: Best way to clone an existing FreeBSD installation? Message-ID: <20010325233113.I5425@rfx-216-196-73-168.users.reflex> Reply-To: cjclark@alum.mit.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from praxis@techpraxis.com on Sun, Mar 25, 2001 at 11:06:36PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message