[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Grub and HD clone

From: Francesco Carsana
Subject: Grub and HD clone
Date: Wed, 29 Mar 2006 14:53:23 +0200 (CEST)

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.

When I reboot (with cloned disk as master), GRUB doesn't start!
How can I solve this problem? Is there a way to backup grub?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]