Ubuntu – Upgrade to Precise messed up GRUB2

12.04bootboot failuregrub2

I just upgraded from Oneiric to Precise and it messed up my GRUB2, now I can't boot and keep getting an "error: no such partition" error. This is not the first time this happens but now I can't seem to boot from usb (separate question) to repair GRUB2 and I can't find my way in the Rescue Console.

Best Answer

  • You can use few ways to restore your grub. Most simple way is loading your Ubuntu Live CD with
    no acpi no apic no lapic no raid no modeset options
    ( F6 on boot screen and select all for exclusion Free Software Only ),
    choose Try Ubuntu, and:

    • Tune Network connection and connect Internet.
    • Run terminal.
    • Run:

      sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
      sudo apt-get install -y boot-repair && boot-repair

    In your Guest session will be installed Boot Repair program.

    How to use it and more information about restoring boot you can read here:
    Ubuntu Documentation > Community Documentation > Boot-Repair

    More complicated way:
    Grub Rescue commands

  • Related Question