[Solved] Cannot boot into Windows 7 after installing/updating Ubuntu 10.04
Recently I got a new Dell desktop installed with Windows7, but I love Ubuntu enough to make my machine dual boot (Windows 7 and Ubuntu 9.10) with GRUB. Everything had been worked out for me until I updated from Ubuntu 9.10 to 10.04 recently. After the critical update, I cannot boot into Windows 7 from GRUB menu, so I can only work with Linux…what should I do to be able to boot into windows 7 again?
Here is one easy solution to the problem.
0) Before running anything it is good to backup your important data and information. Also it is a good idea to see the boot information first: http://bootinfoscript.sourceforge.net/. However, I don’t think this is necessary though.
- Put the Windows Vista or Windows 7 installation disc in the disc drive, and then start the computer.
- Press a key when you are prompted.
- Select a language, a time, a currency, a keyboard or an input method, and then click Next.
- Click Repair your computer.
- Click the operating system that you want to repair, and then click Next.
- In the System Recovery Options dialog box, click Command Prompt.
- In the command prompt type Bootrec.exe /FixBoot press ENTER
- In the command prompt type Bootrec.exe /FixMbr press ENTER
- Restart your computer
At this step, I noticed that my computer booted to Windows7 directly without loading the GRUB menu. Please don’t worry because your Ubuntu partition is still there, but perhaps GRUB menu was overwritten by windows recovery that I did in the previous step. That’s fine…since in the next step we will reinstall GRUB.
2) Reinstall GRUB: Please refer to “Reinstall Ubuntu after Installing Windows” which gives much better details that I do. The procedure is summarized as follows:
- Insert the Ubuntu installation CD (mine was 10.04) into your machine and boot from it
- Run Ubuntu from the CD without installing it
- Mount your Ubuntu partition from Places menu
- Check if you are using GRUB or GRUB2
- Check if the partition is correct or not
- Install GRUB or GRUB2 into your /dev/sda
- Restart your computer
After this step, you should be able to see GRUB menu when booting, and both Windows and Ubuntu should work fine from the menu.
If this does not work for you please read this post which contains a lot of useful tools to solve the problem. In fact, I tried this approach too, but that did not solve my problem.