On Fri Nov  4 2011 17:43, Bambero wrote:
> 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 ?

I'd recommend the use of dump(8) and restore(8).
This has the advantage of only copying occupied bytes of your
filesystem, which can drastically reduce the output's size and time
required. Further, you don't run into issues when restoring your fs into
a freshly created partition on a different machine, with a possibly
different hard drive model and different geometry layout. You can even
decide to change fs parameters before restoring your dump.
Much more robust than dd'ing in this case.

Finally, as others pointed out already, installboot(8) the boot blocks
for your machine.

Norman.

Reply via email to