How to install Grub2 in Ubuntu 9.04

Grub2 will be installed by default in Ubuntu Karmic. But if you are upgrading from Ubuntu 9.04 to Ubuntu 9.10 then you will have to install Grub2. In this howto I will tell you how to install Grub2 in Ubuntu step by step.

Follow the step mentioned below step by step:

1) Open a Terminal and run this command.

[shredder12]$ sudo apt-get install grub2

Now, select OK from grub-pc configuration. After that you will be asked some questions.

  • Select Chainload from menu.lst? Yes.
  • At the linux command line press Enter.

2) The settings we have done here are temporary we need to make it permanent by running this command in the terminal.

[shredder12]$ sudo update-from-grub-legacy

3) Now, grub 2 will show you where it is booting from. You need to be very careful at this step. Please note that you will have to spacebar to mark the choice. If you don't do this then you will probably end up your system in grub error 15 state. If this has already happened then you may follow this link to solve the issue.

Like many systems where Grub2 will be installed on the MBR on the primary disk Grub2 will show you  (hd0) /dev/sda but this may differ from system to system. If you think that there is some error with the output then you must edit /boot/grub/device.map to match your system and then execute this command to finally install Grub2 on your system.

[shredder12]$ sudo grub-install

Grub2 will now be fully installed on your system with grub legacy configuration files backed up in /boot/grub/.

4) In order to check the version you are installing you may run this command anytime.

[shredder12]$ grub-install -v

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <p> <br>
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

CAPTCHA
No Bots - Only Humans And Aliens
2 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.