How to restore Windows 7 loader

I have this situation: I have Windows 7 installed on my laptop. Then decided to install Ubuntu 12.10 alongside it. The installation was successful and I'm able to have a dual boot, Windows 7 and Ubuntu.

After sometime I decided to delete Ubuntu from my laptop so that I can use the space that was used by Ubuntu. I deleted the partition used by Ubuntu using the disk management of windows.

After restarting the laptop, Grub rescue appear and Windows 7 is not loading anymore. Trying to fix my problem, I decided to use the Linux live-USB with Ubuntu 12.10 on it. After the installation the loader screen appear, the Ubuntu and Windows 7 is already there. Trying to boot on Windows 7 by selecting it on the selection, error appears saying that the windows is not able to load due to some software changes.

What will I do to retrieve the windows and all the files on that partition? Your help will be greatly appreciated.


Here are the ways to fix your Windows XP/Vista/7/8 bootloader:

Using Windows installation disc:

  • Boot with your Windows Vista/7/8 installation DVD or USB (read: how to make a Windows bootable USB),
  • Choose your regional settings, select your Location/Keyboard setting then click next,
  • Click on Repair your computer,
  • Choose the correct installation of Windows from the operating system list box and then click next,
  • Then in the System Recovery Options screen choose Command Prompt,
  • From there, type in the following 2 commands:

    bootrec /fixboot

    bootrec /fixmbr

Now close the two windows and click "Restart." Take out your Windows DVD and hopefully, you will be left with your Windows bootloader.

Using Boor-Repair disk:

In Advanced options of the Boot Repair disc, choose to Restore MBR under the Main options. Next under MBR options select the Windows 7 partition for Partition booted by the MBR option. Then click the Apply button.