Clone a FBSD system with something in the likes of ghost

Warren Block wblock at
Mon Oct 3 02:40:14 UTC 2016

On Sun, 2 Oct 2016, JD wrote:

> By clone, you mean create a new disk with identical
> content to the cloned disk? Including the boot blocks
> of the cloned disk?
> If so, dump and restore will only perform like a full backup.
> The target (copy-to) disk will not be bootable.
> If you want it bootable, then there is a simlpe procedure
> 1. Obtain a new disk with sufficient capacity as close as possible
>     to size of the source disk. Not less than, though!!
> 2. dd if=</dev/..... i.e. the source disk> of=/dev/..... i.e. the new disk> bs=128M conv=notrunc conv=fdatasync
> When finished, without error,
> the new disk will be a bootable mirror of the original.

There can be problems with that.  GPT secondary partitions will be in 
the wrong place, and this is really bad on SSDs.  It also takes longer 
than necessary because it copies every block, many of which are unused 
and don't need to be copied.

More information about the freebsd-questions mailing list