Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I switched over to Ubuntu about a month ago after Windows 7 was corrupted and wouldn't boot anymore. I recently decided to restore Windows 7 so I could play a game on it. Unfortunately I had no restore points so I had to completely reformat the whole thing. Now when I turn on my computer I no longer get the option to boot into Ubuntu or Windows 7, it just boots straight to Windows. When I check the C drive I still have the 20 gigs I set aside for Ubuntu partitioned off. I'm thinking that Windows 7 reformatted the entire hard drive rather than just it's own partition, but I'm asking here to confirm my fears and make sure it isn't a fixable problem. I'd really like to avoid having to reinstall Ubuntu if at all possible.

share|improve this question
add comment

marked as duplicate by karel, chronitis, qbi, Warren Hill, Kevin Bowen Oct 25 '13 at 17:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

Ubuntu recommends installing Windows first since it will overwrite your boot sector:

A Windows OS should be installed first, because its bootloader is very particular and the installer tends to overwrite the entire hard drive, wiping out any data stored on it. If Windows isn't already installed, install it first.

So it sounds like you need to recovering GRUB after reinstalling Windows. Ubuntu provides the instructions at this location:

Reinstalling GRUB 2

https://help.ubuntu.com/community/Grub2/Installing#Reinstalling_GRUB_2

I hope this will help you. Good luck.

share|improve this answer
add comment

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