0

I recently re-imaged my Dell PC to dual-install Windows 7 and Ubuntu 12.04.1 LTS. The dual-boot was a success, since I was able to start whichever OS I wanted.

Now, I installed some software (the OpenJDK package) on the Ubuntu side of the PC. Upon restarting Ubuntu, I unfortunately lost the ability to choose the OS that I wanted to run (i.e., Ubuntu).

Ordinarily, I'd expect to: 1. Hit the power button 2. A menu (Grub?) shows up listing all OSs installed in the PC (namely, Win7 and Ubuntu) 3. Choose which OS I want and hit enter. bingo.

The problem is that I don't see that menu (step 2 above). Instead, windows automatically starts, even when I hit F12 to see the boot options, none of which I understand.

Your help would be great! Thanks! - Kiptoo

Eric Carvalho
  • 55,453
kip2
  • 101
  • 1
  • 1
  • 3

3 Answers3

0

You should try holding down the Shift key after you would hit F12, example, don't hit F12 just hold down Shift and it should bring up the grub menu.

This should allow you to choose which option to boot into, if that works you should boot into Ubuntu and run the Startup Manager to change the timeout.

The command to run Startup Manager should be startup-manager iirc, in case you don't have it installed. From there it should be self explanitory as you only need to change the timeout to something like 3 seconds. Now when you close this is should update grub automatically.

l300lvl
  • 1,192
0

2 things could be happening, the first that Grub isn't installed. Grub is the boot menu that lets you switch between two OS.

if that is the case you need to take a look at https://help.ubuntu.com/community/Grub2/Installing

if grub is installed however, after bootup if you see a purple screen press ESC, it will show the menu, or another way of showing the menu is to hold the SHIFT key. boot into ubuntu and http://www.howtogeek.com/65974/how-to-easily-change-your-dual-booting-pcs-default-os/

kmassada
  • 1,396
0

Based on your comment, "I inserted the USB disk with the Ubuntu image and I could see the grub menu, but when I remove the disk the menu disappears. " it sounds like grub's boot sector was installed to the USB drive rather than to your internal drive. If that is the case, you should solve it by booting your Ubuntu installation (by plugging in the USB drive) and running sudo dpkg-reconfigure grub-pc.

This command will ask you some questions, the first two will be about the "linux cmdline" leave those at their defaults (the first may be blank, that's normal) and continue by pressing Enter. When prompted for install devices, select your internal drive (something like "sda" or "sdb", but not a partition like "sda1" or "sdb5") as an install device. Use space bar to select/unselect devices and hit Enter to continue once the proper device is selected. If you're not sure which device to choose, simply ask here and post a screenshot of the prompt and I will help you chose.

Once you've done this, not only will grub's boot sector be installed to the MBR of your internal drive (so that you see the grub menu even when the USB drive isn't plugged in) but the grub-pc package will also be properly configured to continue installing grub's boot sector there whenever it's upgraded.

Jordan Uggla
  • 4,755