I have removed GRUB's partition, and I wanted to restore the original Windows boot part. WinToFlash failed again to make my pendrive bootable, thus I'm in a bit of a trouble now.

I looked all around, but I couldn't find any easy way to do this.
What is the easiest and fastest way to restore the MBR?

(I've got no Windows 7 DVD with me right now. And fetching the DVD is not really fast with a slower connection.)

  • 1
    Why not just burn one from your computer? Start -> 'Create a system repair disk' – cutrightjm Mar 24 '12 at 18:35
  • isn't there any OSs that could boot ? – Hamed Mar 24 '12 at 19:20
  • You can make the system repair disk as suggested by ekaj on any W7 PC as long as the bit version matches, 32 or 64. – Moab Mar 25 '12 at 2:44
  • Note that you don't need the Windows 7 MBR in particular. Any DOS or Windows compatible MBR will do. There's bound to be a Linux tool that will write a DOS-compatible MBR; perhaps linux.die.net/man/1/ms-sys ? – Harry Johnston Mar 25 '12 at 5:33

Make a System Repair Disc on another W7 PC, it needs to be the same bit version as the one you are repairing, 32 or 64bit Windows 7.

Once you have the System Repair Disc,

Insert the Windows 7 installation or System Repair DVD and boot from your DVD drive. You may have to change the boot order through system BIOS to boot from your DVD.

Choose your default "Language," "Time" and "Keyboard Input" on the first window and click "Next."

Click on the "Repair Your Computer" option to gain access to the System Recovery window. Now choose "Command Prompt" to run the Bootsect.exe utility. Bootsect is located inside the boot folder so change your directory to boot. Now run bootsect /nt60 C:\ if you had Windows 7 initially installed in the C partition. Alternatively, you can run bootsect /nt60 SYS or bootsect /nt60 ALL to repair the system partition or all partitions. Eject the DVD and restart your computer. Your computer should now boot Windows 7 again.


Secondary Source

As stated in the comments below, one has also to use the /mbr option in order to fix MBR, which is necessary to remove GRUB from MBR.

  • According to the MS documentation, you must use the /mbr flag to update the MBR. Otherwise, the partition boot record (not the master boot record) is written. – Harry Johnston Mar 25 '12 at 3:02
  • They are trying to install the MBR not repair or update it. "/NT60 Applies the master-boot code that is compatible with BOOTMGR "....msdn.microsoft.com/en-us/library/… – Moab Mar 25 '12 at 4:00
  • It isn't really clear whether bootsect updates both the MBR and the partition boot sector by default. I'll try it out next time I get a chance. (Note, however, that in the context of the MBR, "install", "update", and "repair" all mean the same thing!) – Harry Johnston Mar 25 '12 at 5:12
  • Microsoft documentation sucks doesn't it. – Moab Mar 25 '12 at 19:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.