HowtoForge

How To Install GRUB 2 On Ubuntu 9.04

This tutorial shows how you can upgrade your GRUB bootloader to GRUB 2 on Ubuntu 9.04. GRUB 2 has been rewritten from scratch to clean up everything for modularity and portability.

GRUB 2 targets at the following goals:

I do not issue any guarantee that this will work for you!

 

Upgrading To GRUB 2

Open a terminal (Applications > Accessories > Terminal)...

... and start the upgrade as follows:

sudo aptitude install grub-pc

You will see the following questions:

Chainload from menu.lst? <-- Yes
Linux command line: <-- ENTER

Afterwards reboot the system:

sudo reboot

At the beginning of the boot process, you will most likely see this error - press a key to continue:

Select Chainload into GRUB 2 and press e:

Select the root entry and press e:

Now replace the string root...

... with the string uuid and press ENTER:

Select the uuid entry and press b to boot:

This is how your GRUB 2 boot menu should look now, and your Ubuntu system should now boot without problems:

Back on your Ubuntu desktop, open a terminal again and finish the GRUB upgrade as follows:

sudo upgrade-from-grub-legacy

Output should be as follows:

falko@falko-desktop:~$ sudo upgrade-from-grub-legacy
[sudo] password for falko:

Installing GRUB to Master Boot Record of your first hard drive ...

Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)        /dev/sda

GRUB Legacy has been removed, but its configuration files have been preserved,
since this script cannot determine if they contain valuable information.  If
you would like to remove the configuration files as well, use the following
command:

  rm -f /boot/grub/menu.lst*

falko@falko-desktop:~$

You can now reboot...

sudo reboot

... and the system should restart without problems. If you still have problems booting, take a look at the troubleshooting section here: https://wiki.ubuntu.com/Grub2#Errors

 

How To Install GRUB 2 On Ubuntu 9.04