Sunday, April 3, 2011

Can't boot into Windows? [Solution]


Scenario :-

You tried a Linux distribution but you didn't like it enough to keep it.

Dilemma :-

You delete the Linux partition and attempt to boot into Windows, only to find that you can't because "grub" cannot be found, or there is no grub partition.

Solution :-

1. Get your Windows DVD.
2. Boot from it.
3. Select "Repair" or "System Recovery".
4. Select "Command Prompt".
5. Type

Code:
BootRec.exe /fixmbr

OR

Code:
fixmbr
6. Press <Enter>
7. Type

Code:
BootRec.exe /fixboot

OR

Code:
fixboot
8. Press <Enter>
9. Restart your computer.

Note: The above codes are for XP and Vista/Win 7, respectfully.

Conclusion :-

You should now be able to boot into Windows :D