1

I had 2 partitions

  • Partition 1 - Ubuntu
  • Partition 2 - Empty

So I installed Windows 8 on 'Partition 2' and now I can't load the Ubuntu OS as it directly loads Windows.

How do I get back the Grub bootloader of my Ubuntu which would give me the option to select either Ubuntu or Windows 8?

Another question: After that, how do I increase the timer for the bootloader when selecting the OS?

  • There are solutions to this question here: askubuntu.com/questions/88384/… – user5828 May 2 '15 at 23:12
  • It's because Windows 8 sets its bootloader as default, and it doesn't recognize linux partition and Grub. One solution is to use tools like EasyBCD. Another solution is to manually install Grub and add Ubuntu to menu. – Jet May 2 '15 at 23:20
1

All windows installers (at least the ones that I've used from 3.1 to Win 7) install their own bootloader if one is not found (and of course, it does not recognize Grub or Lilo).

What you need to do is reinstall grub, by booting up linux somehow (live CD, the install image, or a USB install. It doesn't matter, really), and run this command:

grub-install /dev/sda

If your primary harddrive is not sda, then substitute that device node with whatever is appropriate. sda corresponds to the first SATA drive in most cases, so if it is your primary or only drive, then it should work for you.

grub-install will probe your drive for any bootable OSes and install Grub with an appropriate OS list to choose from.


Setting the timer for OS selection is done by editing /etc/default/grub with your favourite text editor, and adjusting the line that says GRUB_TIMEOUT=XX

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.