Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been trying to solve this for a while, even had a topic here: I can't boot after Ubuntu installation

Long story short, I installed Ubuntu alongside Windows 7, replacing Windows Vista. Now, when I turn on my computer, I get to grub with two options: Ubuntu and Windows 7.

Ubuntu works well, but after I choose Windows 7, I get redirected to the Windows GRUB-like environment, where I can choose either Windows Vista or Ubuntu. Neither of them works.

Anybody knows what am I ought to do now? Maybe making the GRUB option Windows 7 turning on the Windows 7 straight away?

Thank you!

share|improve this question

Boot form your Windows 7 CD and open a terminal. (Windows cmd.exe) Now type the following command: bootrec /FixMBR. See if it worked. If not, use bootrec /FixBoot. This will overwrite GRUB! Now you can only boot Windows 7. Now boot from Live Ubuntu and follow these steps:

sudo mount /dev/sdaX /mnt    #replace X by the partition where Ubuntu is installed
sudo grub-install /dev/sda --root-directory=/mnt
sudo reboot

Now you should have a new GRUB. NOTE: If you changed the /etc/default/grub, you may have to re-edit it, I don't know whether grub-install touches that one too.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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