2

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.

t3mujin
  • 375

2 Answers2

1

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

swift
  • 3,291
1

I think the simplest way to restore grub (what should fix your problem) is to burn a Super Grub2 Disk, then boot from it, choose to scan for operationg systems, start Ubuntu, log in and execute the command sudo update-grub.

EDIT: If that doesn't work, do the same again but this time execute sudo grub-install /dev/sdX. sdX has to be replaced with the real harddrives dev-name. Do not do this unless you are sure you are doing it for the right harddrive!

jplatte
  • 1,290