From owner-freebsd-questions@FreeBSD.ORG Wed Dec 15 15:30:21 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ACA81065698 for ; Wed, 15 Dec 2010 15:30:21 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 5AB328FC27 for ; Wed, 15 Dec 2010 15:30:20 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id oBFFUHiE097835; Wed, 15 Dec 2010 08:30:17 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id oBFFUHYf097832; Wed, 15 Dec 2010 08:30:17 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 15 Dec 2010 08:30:17 -0700 (MST) From: Warren Block To: Polytropon In-Reply-To: <20101215153103.ae1fb1ef.freebsd@edvax.de> Message-ID: References: <201012150800.oBF80FRf015357@mail.r-bonomi.com> <20101215153103.ae1fb1ef.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Wed, 15 Dec 2010 08:30:17 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: Creating clone of a HDD including boot partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2010 15:30:21 -0000 On Wed, 15 Dec 2010, Polytropon wrote: > On Wed, 15 Dec 2010 02:00:15 -0600 (CST), Robert Bonomi wrote: >>> What would be your suggested method to achieve this goal. >> >> *IF* the disks are the same size/geometry, then simply dd(1) from one raw >> device to the other. Also works if the target disk is larger than the source. Of course some unused space will be left at the end of the target disk. > And if it's not, use the recommended standard transfer > method of dump + restore. Before you can do so, run a > script (e. g. from a live system CD) to perform the > slicing and partitioning according to your needs > (fdisk, disklabel/bsdlabel, newfs, tunefs, or geom > tools, or zfs tools). This method will (hopefully) recreate the MBR or GPT, but not copy it. Which is probably fine, but just mentioned in light of the Subject. "Backup Options For FreeBSD" is an article I wrote not too long ago comparing the use of dump/restore, dd, and Clonezilla: http://www.wonkity.com/~wblock/docs/html/backup.html