Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would I repair the mbr from within windows? I installed Ubuntu onto a second partition. I want to delete said partition as my need for a linux distro has now passed. Once I delete that partition grub will go broke. I know I can do this from the recovery console but I want to try from windows itself. I know in XP I could fdisk /mbr and in 7 I technically would use bcdedit but that output looks scary as hell in my other Windows 7 machine.

share|improve this question
up vote 2 down vote accepted

It looks like the EasyBCD utility will do the trick. It says "Windows Vista", but the bootloader is the same in Vista and Windows 7.

You can download it here:

There's an option under "Manage Bootloader" to "Reinstall the Vista Bootloader".

Good luck.

share|improve this answer
Worked perfectly thanks. – MrStatic Feb 28 '10 at 4:53

If you still have the Ubuntu OS running, there might be a backup of the original MBR somewhere already. My Slackware puts it in /boot/boot.800. I could restore it with dd if=/boot/boot.800 of=/dev/sda count=1 bs=512 The /dev/sda assumes it's on the first SATA or scsi drive, if it's on second drive it'd be /dev/sdb, etc. Old ESDI drives would be /dev/hda etc.

share|improve this answer
Thanks but I asked for a way from inside windows. – MrStatic Feb 28 '10 at 17:33

Windows 7 has fdisk /fixmbr and fdisk /fixboot to fix your MBR and bootsector. It should reinstall your Windows bootloader. You must, however, perform this from a Recovery console. To use this, insert your Windows install disc, reboot and choose (R)epair during setup.

share|improve this answer
Again thanks for the idea but I was trying to do it from within windows itself. – MrStatic Mar 2 '10 at 0:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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