Author: Falko Timme <ft [at] falkotimme [dot] com> Follow me on Twitter
Last edited 08/26/2009
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:
Scripting support, such as conditionals, loops, variables and functions.
Dynamic loading of modules in order to extend itself at the run time rather than at the build time.
Portability for various architectures.
Internationalization. This includes support for non-ASCII character code, message catalogs like gettext, fonts, graphics console, and so on.
Real memory management, to make GNU GRUB more extensible.
Modular, hierarchical, object-oriented framework for file systems, files, devices, drives, terminals, commands, partition tables and OS loaders.
Cross-platform installation which allows for installing GRUB from a different architecture.
Rescue mode saves unbootable cases. Stage 1.5 was eliminated.
Fix design mistakes in GRUB Legacy, which could not be solved for backward-compatibility, such as the way of numbering partitions.
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:
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:
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'.
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