Menu

Restoring partition image results in "grub rescue" prompt

Help
r_avital
2013-07-26
2013-07-31
  • r_avital

    r_avital - 2013-07-26

    Hello,

    I've tried to search here for a solution to my issue, can't find any matches.

    1. Using Clonezilla live version 20130703-raring, on USB thumb-drive.
    2. Successfully created a single image of two partitions (ext4), on an external usb NTFS disk (followed the "novice" option).
    3. Asked Clonezilla to verify that the partitions are restorable from the image, Clonezilla reported positive result, image is restorable.
    4. Now trying to restore (the partitions have since been formatted for another OS test).
    5. Start Clonezilla, selected the restore from image option, it correctly showed it was restoring both partitions (Linux OS, one is root, the other is home). Clonezilla reported successful restore.
    6. Reboot. Blank screen, top-left reads:

    error: file not found.
    grub rescue>

    This has happened to me with several images of different OS image-clones.

    The size of both partitions is identical on source and target.

    What can I do?

    Thanks in advance

     
  • Fuchs

    Fuchs - 2013-07-26

    Look for https://help.ubuntu.com/community/Boot-Repair
    I have made a memory stick with 'Boot-Repair' and started.

    Then I have used:
    '# Post-Restoration Commands
    Once the user can boot to a working system,
    the following commands may prove useful in locating and/or fixing the problem.

    sudo update-grub # To refresh the available devices and settings in /boot/grub/grub.cfg
    (grub-probe -t device /boot/grub # To look for the bootloader location.(/dev/sdXY )

    sudo grub-install /dev/sda # To install GRUB 2 to the sdX drive's MBR or boot sector(sda,sdb,..)
    # copies GRUB images into /boot/grub, and uses grub-setup to install grub into the boot sector.
    (sudo grub-install --recheck /dev/sdX # To recheck the installation. (sda, sdb, ..)

    (https://help.ubuntu.com/community/Grub2/Installing#GRUB_Legacy_Upgrades_and_Downgrades)

    Good luck !

     
  • r_avital

    r_avital - 2013-07-27

    Thanks for your help, Fuchs. Since all my memory sticks are busy holding various flavors of Linux, I simply burned a CD of Boot-Repair, booted with it, accepted the defaults, and have been able to boot and re-boot many times since.

    Does this mean that I neglected to include my MBR in the image, when I originally created it? I used the "novice" option when creating the image of my two partitions. I'm guessing that working with disks instead of partitions by default includes the MBR, correct?

    Thanks!

     
  • Fuchs

    Fuchs - 2013-07-31

    That's fine that it worked.
    The answer of your questions can you find in my last hints '#Post-Restoration Commands' and more
    with the last link:
    https://help.ubuntu.com/community/Grub2/Installing#GRUB_Legacy_Upgrades_and_Downgrades

    Normally when I make any changes of the partitions I try to start:
    sudo update grub .. and
    sudo grub install ..
    until then I can boot a working system.

    Myself with two versions of ubuntu I had to start this commands after a 'Boot-Repair' to find the right version.

    You can use the "novice" option when creating the images always without any problems.

    All the best!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.