rss
twitter
    Find out what I'm doing on Twitter

Howto Upgrade to Grub2 On Ubuntu Jaunty and Karmic Koala

I wrote a blog post that Ubuntu Karmic Koala will use Grub2 as default boot loader at new installations of Ubuntu Karmic.You can read that blog post here.I am using Karmic Koala (not a new installation) and i upgraded my boot loader to Grub2.Before starting the upgrade process you should know that :

*This is only for Ubuntu Jaunty and Ubuntu Karmic Koala.
*Upgrading is a risky operation but at first we will load Grub2 from chainload of Grub so if it does not work for you, you can revert the operation.HOWEVER you should backup your system before following this howto.(YES YES YES i always write this but i do not backup, what a shame: ) )
*If you do not want to install grub2 on your machine but you do want to see if it works with your BIOS, you can test it by installing into a USB pen drive (https://wiki.ubuntu.com/KernelTeam/Grub2Testing read #Alternative Test section.Plus you can read the results from that page also)
*There is a bug at Ubuntu Jaunty (ONLY JAUNTY, not Karmic Koala) where it modifies the existing grub configuration incorrectly.To fix it :

At the "Chainload into Grub 2" menu item, press 'e' to edit the configuration.Press 'e' a second time to edit the top boot line and change:

root xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
To
uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Then press Enter and "b" to boot Grub2.

Installation :

$sudo apt-get install grub2

When installing grub2 package, you will be asked for "Chainload from menu.lst".Select Yes.(This is important!! You will test the Grub2 with this as a chainloader!).At "Linux command line:" prompt just hit Enter.

Now reboot your Ubuntu box, and at grub select "Chainload Grub2" (or something like that).If Grub2 works at your Ubuntu box, to make it default enter this command :

$sudo upgrade-from-grub-legacy

Now reboot ($sudo reboot) your box and see if it works.

4 comments:

Anonymous said...

Thanks I forgot all about Grub2.

gjon91 said...

When I click B to boot Grub2, computer restarting and still booting from 1.5 version. How can I save new configuration?

Anonymous said...

Worked here for Jaunty. gjon91, you want the /boot/grub/menu.lst file, look for the first "root" instruction after mention of GRUB 2.

Anonymous said...

thanks for info, but it was my mistake. i wrote "uuld" instead of "uuid" (i saw this text on other, translated to polish site)

gjon

Post a Comment