Fixing broken bootloader (Windows 7)

Suppose you'd want to delete your Linux partition (silly thing I know) in a dual-boot setup. If you used grub or any other boot loader, you'll end up with an unbootable system, this is the procedure to fix it:

  1. Reboot with the Windows 7 CD, boot from CD-ROM
  2. Configure language
  3. Select the "repair" link at the bottom
  4. Wait for Windows to identify your drive/partition
  5. Click "next"
  6. Open the shell
  7. bootrec /fixmbr
  8. bootrec /fixboot
  9. Restart