grub-devel
[Top][All Lists]
Advanced

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

hd cloning


From: Giampaolo Bellini
Subject: hd cloning
Date: Thu, 30 Mar 2006 00:11:19 +0200


Hello...

is it possible to clone an entire HD to another one (with exactly the
same space/sectors/heads etc) without reinstalling grub ?

I'm doing:

        dd if=/dev/hda of=/dev/hdb 

        dd if=/dev/hda of=hda.mbr bs=512 count=1

        sfdisk -d /dev/hda > hda.sf

to clone the HD, save the MBR and partition table, and then:

        dd if=hda.mbr of=/dev/hdb

        sfdisk /dev/hdb < hda.sf

to restore the MBR and partition table on the target drive.

As this seems not to work (at least on i386), do I need to backup
something else ? Of course, the original HD start with a perfectly
working grub.

thanks in advance,

      Giampaolo





reply via email to

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