I have an disk image with 3 partitions:
first partition (hd0,0)
is boot-able with GRUB1 with the following configuration GRUB file:
default=0
timeout=5
title Bank A
root (hd0,1)
chainloader +1
title Bank B
root (hd0,2)
chainloader +1
The partitions (hd0,1)
and (hd0,2)
are also boot-able.
I'm trying to clone partition (hd0,1)
to (hd0,2)
by creating device map using kpartx
and copying whole partition using dd
command.
The problem is: after partition cloning, the cloned partition did not boot (but all files are OK). What the wrong?
I need both partitions to bee identical (I'm using them for fail-over purposes into embedded device)
I'm suspecting that you have to re-grub the boot sector on hd0,2 since the physical locations of the special boot files are different between hd0,1 and hd0,2. This would be a logical reason that a dd copy of hd0,1 to hd0,2 would not boot hd0,2.
Check to make sure 'hd0,2' is not partitioned as extended logical. You cannot boot from logical partitions. Alternatively if it has worked previously?! Then try booting from live CD and repair MBR.