Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 2010 08:30:17 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Creating clone of a HDD including boot partition
Message-ID:  <alpine.BSF.2.00.1012150821240.97762@wonkity.com>
In-Reply-To: <20101215153103.ae1fb1ef.freebsd@edvax.de>
References:  <201012150800.oBF80FRf015357@mail.r-bonomi.com> <20101215153103.ae1fb1ef.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 15 Dec 2010, Polytropon wrote:

> On Wed, 15 Dec 2010 02:00:15 -0600 (CST), Robert Bonomi <bonomi@mail.r-bonomi.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1012150821240.97762>