Francesco Carsana wrote:
I've made a script that uses partimage to backup an entire hard disk
(without swap partition).
In this script I save MBR and extended partitions table with:
dd if=/dev/hda of=backup.mbr count=1 bs=512
sfdisk -d /dev/hda > backup.sf
To clone hda in hdb:
dd if=backup.mbr of=/dev/hdb
sfdisk --force --quiet --no-reread /dev/hdb < backup.sf
and then I restore the partitions with partimage.
I'm not very good on knowing on how Grub boots but it seems that the
stage1 or stage15 is not in the same place (sector) on the new hard disk
that it were in your old hard disk.
So as Grub does not find stage1 it does not boot.
Does your Live cd has grub executable on it?
I can make you a little script to install grub on it.
And your live cds does detect your hard disk as /dev/hda
or /dev/sda.
It would something as calling grub in batch mode and
making
device (hd0) /dev/hda
root (hd0,0)
setup (hd0)
but it alls depends on your partition and on your live cd.
Maybe someone gives you a better way of backuping / restoring (maybe
with dd ?) that makes no need of reinstalling Grub.
adrian15
_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub