Why do I get a GRUB error after deleting the Linux partition?

Solution 1:

I do not have any MS operating system so I could not try this myself, from this page on the windows 7 forums - though - it seems like the startup repair utility (SRU) is also included in OEM distros of the system.

My understanding of that page is that you can then boot, with the help of a liveCD or usb drive into your existing windows 7 and from there run the SRU. If my understanding is correct, then you can most probably boot your system from the linux installation CD you originally used to install linux or by means of a dedicated tool, like the Super Grub Disk. Two scenarios that might fit your bill seem to be this and this.

Another less elegant solution would be to repair Grub [the Super Grub Disk comes in help in this scenario too] and let GRUB launch Windows 7 for you.

Solution 2:

The easiest thing you can do is put a Windows 7 disk in to your machine and boot from it, then click repair and go to Command Prompt.

Navigate to c:\boot and run this command:

bootsect /nt60 c:
bootsect /nt60 sys
bootsect /nt60 all
bootsect /nt60 sys /mbr

Try them all until your system boots.

Solution 3:

Bootsect.exe Modifies the Bootsector Not the MBR!! | The NeoSmart Files

The above prompts did not work for me. I am running Windows Vista and deleted Linux partitions and was dealing with the grub error at start up. The above link worked for me.

After booting using a recovery DVD and entering repair and command prompt enter the following.

bootrec.exe /fixmbr 
bootrec.exe /fixboot 
bootrec.exe /rebuildbcd 

Solution 4:

The easiest thing you can do is put a Windows 7 disk in to your machine and boot from it.

After you choose your language and keyboard layout, click Repair in the bottom left and go to Startup Repair – if it doesn't do this automatically.

This should be able to re create the Windows bootloader and all the system files required to start Windows again.