Home > Tutorials > [Solved] Cannot boot into Windows 7 after installing/updating Ubuntu 10.04

[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.

1) Use Windows7 setup CD to repair windows partition by using the command “BootRec.exe“. Here are the procedure adapted from website “http://support.microsoft.com/kb/927392”

  1. Put the Windows Vista or Windows 7 installation disc in the disc drive, and then start the computer.
  2. Press a key when you are prompted.
  3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.
  4. Click Repair your computer.
  5. Click the operating system that you want to repair, and then click Next.
  6. In the System Recovery Options dialog box, click Command Prompt.
  7. In the command prompt type Bootrec.exe /FixBoot press ENTER
  8. In the command prompt type Bootrec.exe /FixMbr press ENTER
  9. 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:

  1. Insert the Ubuntu installation CD (mine was 10.04) into your machine and boot from it
  2. Run Ubuntu from the CD without installing it
  3. Mount your Ubuntu partition from Places menu
  4. Check if you are using GRUB or GRUB2
  5. Check if the partition is correct or not
  6. Install GRUB or GRUB2 into your /dev/sda
  7. 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.

Advertisements
Categories: Tutorials Tags: , ,
  1. gnu
    May 7, 2011 at 9:55 pm

    Very helpful. Good work.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: