previously i had dual boot sytem with windows 7 and ubuntu. i tried removing ubuntu by formatting my system to factory condition using in-built recovery as i dint have external drive for that. but after the formatting was complete, i can not boot into 7 . it shoes error grub rescue.!!! discussed the problem on ubuntu forum. they asked me to use this forum. so help me out how can boot back into my windows 7. PS: i dont have external recovery disk . reeovery is in built on sony vaio laptop i am using.
How to Manually Repair Windows 7 Boot Loader Problems
follow few steps
step 1: The first thing you’ll need to do is boot off the install disc, and then click through until you see the “Repair your computer” link in the lower left-hand corner.
Step 2 :You’ll need to choose the correct installation of Windows and then click the Next button.
Step 3 :And then you’ll get to the System Recovery Options screen, where you can get to the Command Prompt.
Repairing the Master Boot Record
If you want to restore the master boot record, you can simply type in the following command:
You can also write a new boot sector onto the system partition with this command (which is often more useful):
And of course, if you just use bootrec /? you’ll be able to see all the options.
Using the Automated Startup Repair
Of course, all this command-line stuff is probably not necessary in most cases. You can usually just use the Startup Repair option from the Recovery menu…
It’ll check for problems and probably fix them. If not, then you can always use the command prompt.Have you ever needed to restore your boot loader to get Windows working again?
In order to repair Windows Bootloader, you'll need an external recovery disk, as you need to boot on a windows system and your grub is broken (you deleted its files).
If you don't have one, you can still make one. You just need to download a Windows 7 ISO and burn it. And if you don't have a DVD to burn it, you can put it on a bootable USB, with this Microsoft tool.
Well, you still need an other computer for that.
In your situation, an automatic repair should bring your bootloader back. If it doesn't, you can still try opening a console in the repair/install DVD environment and run
TLDR; Reinstall Ubuntu, don't overwrite your windows partition. This should put your computer back into dual-booting order then follow How to make Windows bootloader the default? after you boot back into Windows 7. EasyBCD can overwrite the bootloader your computer uses back with Window's MBR. From that point you should be free to uninstall Ubuntu by deleting it's partition through Windows if you like.
~No worries we've all been there~ (no repair disk required)