Menu

Grub error when restoring image to partition

Help
Gilles
2013-05-14
2013-05-19
  • Gilles

    Gilles - 2013-05-14

    Hello,

    I have a problem when restoring an image to a partition: The size of the target partition changed since I saved the Ubuntu system in which it was installed.

    So I read the image's sda-pt.parted (start/end sectors), resized the partition with fdisk, and told CZ to restore the image in Expert Mode so I could use the -idcs option, but no luck: When it tries to restore GRUB, it displays a warning:

    Warning! Found grub partition (/dev/sda1) file system is ext4! Not all version of grub 1 supports file system ext4!

    ... and when rebooting, I'm stuck at the "grub>" prompt.

    Next, I ran mkfs.ext4 /dev/sda1, even used fdisk to mark the partition as bootable, then used CZ to restore the partition, but I'm still stuck in the "grub>" prompt at the next reboot.

    Since the target partition now has the same size it had when I saved the image, why is CZ still unhappy?

    Thank you.

     
  • Fuchs

    Fuchs - 2013-05-16

    It's look like that:
    there is a great difference of the ubuntu versions .. between an old image (grub legacy) and your pc partition (ext4) .
    What can we do ?
    You can try to restore the partition sda1 in expert mode with Clonezilla advanced extra parameters:
    -g auto Reinstall grub in client (!)
    -e2 sfdisk uses CHS of hard drive
    -r Try to resize the filesystem to fit partition size
    -j2 Clone the hidden data between MBR(512B) and 1st partition

    -k1 Create partition table proportionally (OK for MBR format, not GPT)

    Wouldn't this one help then can you try:

    "If there are mixed grub 1 and grub 2 files on the restored system (e.g. /boot/grub*), remove the one you do not want. So that Clonezilla could detect that correctly. Steven" (Forum: Clonezilla live Creator: koolmelee )

    And make a look for:
    https://help.ubuntu.com/community/Grub2/Installing

     
  • Steven Shiau

    Steven Shiau - 2013-05-19

    @Gilles,
    What Fuchs mentioned is correct.
    Therefore please try alternative Clonezilla live, e.g.
    20130514-raring. The grub1 from Ubuntu repository has been patched to support ext4.

    Steven.

     

Log in to post a comment.