On 03/14/18 21:08, Tinker wrote:
> Say you have an OpenBSD installation (with /dev and all) mounted on
> /mnt , and you'd like to clone it to /mnt2 , which is a partition
> of different size, so dd is not an option.

Not necessarily true.
If the source is smaller than the destination, you can still image it
with "dd", rsdXc partition to rsdXc partition.  You can then use
"growfs" to expand the last partition -- if you planned it right, your
last partition is the one that needs the most space.

You can also dd over individual partitions.  Create a new 'a' partition,
copy over the 'a' partition (/dev/rsdXa) first, now make a /new/ disk
label (that's stored in the 'a' partition, so copying over 'a' blew your
old one away -- order here is kinda important), make all the new
partitions the size you want them to be, then dd them over from the
source to the dest, then growfs each of them to fluff them out to the
size you got.

Not saying it's the best way to do things, but it's educational. :)

Nick.

Reply via email to