Bambero <bambero <at> gmail.com> writes:

> 
> Hello
> 
> I want to copy my root partition to another with dd without ssh. Is
> this correct:
> 
> 1. On first machine:
> dd if=/dev/rwd0a of=root.img bs=16b skip=1 conv=noerror
> 
> 2. On second machine:
> dd if=root.img of=/dev/rwd0a bs=16b seek=1
> 
> May/should I ommit seek, skip, conv, bs  parameters ?

You've already received a recommendation for simpler use of dd(1), including
compression for the partition image.

But, dd(1) will not prepare your boot blocks.  To make this bootable on i386 or
amd64, flag the OpenBSD MBR partition active with fdisk(8) and use
installboot(8) to install the PBR and aim it at the second stage bootloader.

Reply via email to