I am running Windows 7 on my computer since I built it but a few days ago I was inspired to also try out Ubuntu. I managed to get Ubuntu installed a seperate partition and its running fine. The problem is on boot-up my computer instantly goes into Ubuntu and I have no option to choose between the two. I tried looking into my BIOS but there's nothing there either to choose between the two OS. And I've effectively 'lost' Windows 7, even though its still on the Drive. How do I repair my boot-loader as of now I am able to boot in to Ubuntu only?

  • Added an answer, check it and if it works click the grey ☑ under the "0" at the left of this text, which means "I accept the answer" Mar 6, 2015 at 5:36

2 Answers 2


If you don't see any boot leader and Ubuntu starts directly then you have to edit your grub file. Follow these steps. Press Crtl+Alt+T to open Terminal or search Terminal from dash.

Then enter following command :

sudo gedit /etc/default/grub 

Change following lines as (Remove comment (#) before any of the lines given below,change values as below wherever necessary):


Then save the file (Crtl+S) and run following command in terminal.

sudo update-grub

Reboot your system and it should work fine.

  • This did it! After a few days of troubleshooting and googling I couldn't find a fix and you got me one in 10 mins flat that worked. Thank you so much!
    – Alkarin
    Mar 6, 2015 at 6:05

Try boot repair or re-installing the grub. Here is the link for help.

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.