Windows 7 Forums Search

Go Back Windows 7 Forums > Windows 7 help and support > Tutorials » MBR - Restore Windows 7 Master Boot Record

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7 - MBR - Restore Windows 7 Master Boot Record



MBR - Restore Windows 7 Master Boot Record

How to Restore the Windows 7 MBR (Master Boot Record)
Published by iseeuu
08-14-2009
Default MBR - Restore Windows 7 Master Boot Record

How to Restore the Windows 7 MBR (Master Boot Record)

information   Information
If you have been dual booting with Linux, then you probably know one of the Linux boot managers like Grub or LILO has been installed in the MBR of your hard drive. What can you do when you no longer want Linux on that hard drive? This tutorial will show you how to use your 7 DVD and BOOTSECT.EXE to restore the "bootsector code" of the MBR and allow you to begin booting to Windows 7 again.
Tip   Tip
You can use this method to update the bootsector code for Windows 7, Vista, XP, 2000 or switch between Bootmgr and NTLDR. Just check the Microsoft TechNet site for the correct command.



Here's How:
1. Boot your computer to the Windows 7 DVD. At this screen choose to install now.


2. Select your language and click next.


3. Click the button for "Use recovery tools".


4. Then select "Command Prompt".


5. When open, the command prompt will look like this:


6. The command we will use, bootsect.exe, is in a folder (named boot) on the DVD.
We need to know what drive letter has been assigned the DVD drive to access the folder.
Code:
Type: diskpart
and press Enter
 
Type: select disk 0 (zero)
and press Enter
 
type: list volume
and press Enter 
In this screen shot, the 7 DVD is letter: G


7. Use your DVD drive letter and

Code:
Type: exit
and press Enter
 
to close Diskpart
 
Type: G: (use the letter of your DVD drive)
and press Enter
 
Type: cd boot
and press Enter
 
Type: dir
and press Enter 
to verify that bootcect.exe is there (if you really need to)


8. To restore the "bootsector code":

Code:
TYPE: bootsect /nt60 SYS /mbr
and press Enter 

NOTE: If this method fails to restore the MBR, you can try the bootrec command as it is also a tool for repairing the MBR.

9. When completed successfully,

Code:
Type: exit
and press Enter 
This will close the command prompt window.
10. Now select Shut Down or Restart


11. Then you can reboot your computer into Windows.


Published by
iseeuu's Avatar
Donkeys are smart!


Join Date: Feb 2009
Location: MO, USA
Posts: 2,177
iseeuu has a reputation beyond repute
iseeuu has a reputation beyond reputeiseeuu has a reputation beyond reputeiseeuu has a reputation beyond reputeiseeuu has a reputation beyond reputeiseeuu has a reputation beyond reputeiseeuu has a reputation beyond reputeiseeuu has a reputation beyond reputeiseeuu has a reputation beyond reputeiseeuu has a reputation beyond reputeiseeuu has a reputation beyond reputeiseeuu has a reputation beyond repute

Tutorial Tools
08-28-2009   #1
bluemoon4ever


windows 7 RTM
 
 


handy tip, thanks,

My System SpecsSystem Spec
08-28-2009   #2
iseeuu


7 Home Pre x64, Windows XP Pro, Ubuntu 9.04
MO, USA
 
 


Quote   Quote: Originally Posted by bluemoon4ever View Post
handy tip, thanks,
Thanks, bluemoon4ever! You are most kind.

Please allow me to be the first to welcome you to Windows Seven Forums. Glad to have you!

Robert
My System SpecsSystem Spec
09-27-2009   #3
Antony


Win 7 64bit retail
 
 


Just wondering. I currently have a dual boot with XP. If I want to delete the XP partition can I use this method to fix the mbr after I have deleted the XP partition and resized the Win 7 partition? Or do I need to fix the mbr first and then delete the Xp partition?
My System SpecsSystem Spec
.
09-27-2009   #4
iseeuu


7 Home Pre x64, Windows XP Pro, Ubuntu 9.04
MO, USA
 
 


Quote   Quote: Originally Posted by Antony View Post
Just wondering. I currently have a dual boot with XP. If I want to delete the XP partition can I use this method to fix the mbr after I have deleted the XP partition and resized the Win 7 partition? Or do I need to fix the mbr first and then delete the Xp partition?
Hello Antony! and welcome to Windows Seven forums, your questions are always welcome.

I can not give an accurate answer to your question until I know more about how your OSs are arranged on your hard drive(s). However, if you installed 7 after XP and now want to remove XP then the MBR probably does not need any repair in order to boot to 7. If you just want to remove the XP choice from the boot menu, you can use "msconfig" to delete the XP entry, no MBR fix necessary. (Thanks to Snuffy for this tip!)

Cheers!

Robert
My System SpecsSystem Spec
10-23-2009   #5
Hammer100


Windows 7
 
 


Hi
Wonder if you could help on a little problem I have.

I have got Windows 7 Ultimate and installed it on a new hard drive. After installation I partitioned the drive in Windows creating a 400GB, 100GB, 500GB. After this completed I also noticed a 100MB System Reserved section but just ignored it. Everything worked fine.

Then I think I did wrong. I wanted to create a dual boot system to also have XP on my PC and tried installing it on the 100GB partition but during instal everything crashed and now I get "Error Loading Operating System" when booting up. I have tried to repair using the Windows 7 DVD but no luck and when I look at the drives in Command Prompt they show as follows:

C: System Reserved
D: Spare Partition
E: Spare (my 2nd hard drive)
F: Windows 7 Partition

Have tried following the instructions on here and it said succesful but still will not boot. Anyone have any ideas?

Cheers
My System SpecsSystem Spec
11-01-2009   #6
iseeuu


7 Home Pre x64, Windows XP Pro, Ubuntu 9.04
MO, USA
 
 


Quote   Quote: Originally Posted by Hammer100 View Post
Hi
Wonder if you could help on a little problem I have.

I have got Windows 7 Ultimate and installed it on a new hard drive. After installation I partitioned the drive in Windows creating a 400GB, 100GB, 500GB. After this completed I also noticed a 100MB System Reserved section but just ignored it. Everything worked fine.

Then I think I did wrong. I wanted to create a dual boot system to also have XP on my PC and tried installing it on the 100GB partition but during instal everything crashed and now I get "Error Loading Operating System" when booting up. I have tried to repair using the Windows 7 DVD but no luck and when I look at the drives in Command Prompt they show as follows:

C: System Reserved
D: Spare Partition
E: Spare (my 2nd hard drive)
F: Windows 7 Partition

Have tried following the instructions on here and it said succesful but still will not boot. Anyone have any ideas?

Cheers
Hi Hammer100! Welcome to Windows Seven Forums.

I am not sure what caused your booting problem. However, Windows 2000 and XP use NTLDR for their boot manager and Vista and Seven use Bootmgr. So by installing XP after installing 7 the Bootmgr has probably been overwritten breaking the boot path to 7. I would suggest you install XP first and then 7 because the 7 Bootmgr will include XP in the boot menu.

Here is a link to some tutorials for dual booting: Dual Boot Installation with Windows 7 and XP

If you are still having issues I can have this post moved to its own thread to get more help for you?

Cheers!
Robert
My System SpecsSystem Spec
11-02-2009   #7
Hammer100


Windows 7
 
 


Hi Robert

Thanks for the reply. What I ended up doing for the moment was to buy a new hard drive to install Windows 7, is it possible to multi boot from two different drives or do the two OS need to be on the same physical drive?

Thanks

Dave
My System SpecsSystem Spec
11-02-2009   #8
iseeuu


7 Home Pre x64, Windows XP Pro, Ubuntu 9.04
MO, USA
 
 


Quote   Quote: Originally Posted by Hammer100 View Post
Hi Robert

Thanks for the reply. What I ended up doing for the moment was to buy a new hard drive to install Windows 7, is it possible to multi boot from two different drives or do the two OS need to be on the same physical drive?

Thanks

Dave
It is absolutely possible to dual boot from two or more hard drives; in fact it has some advantages. I highly recommend it to those who want to dual boot with Linux. For example, the Linux boot manager can be fully functional on its on hard drive and include your Windows OSs in its menu, while your Windows OSs can be managed with a Window's boot manager and include the Linux OS in its menu. You then control which boot manager you wish to use by using the bios to select the hard drive it will boot to. If a hard drive crashes you can still run the OSs on the good drive.

When you are installing an OS, just unplug all other hard drives and only work with one at a time.

Also, I like to set the current OS partition to C:, and give the other partitions different letters. That way the running OS is always drive C:.

There are a few Window's utilities that help edit the Window's boot manager so you can add and remove OSs from its menu, if you need them.

Later!
Robert
My System SpecsSystem Spec
11-07-2009   #9
fly790420


windows 7
 
 


this way did not work on my case. i have a laptop installed windows 7, it was okay. until today i saw a article about removing the 100MB of "system reserved" partition.......and yeah...i did removed it by using my Windows 7 installation dvd.. now my laptop wouldnt boot...it shows only operating systen not found"

i tried the method above but at Step 3, mine did not show up any operating system..all blank so i just clicked next

then at Step 9

it couldnt restore the bootsector code.
it only shows "the system partition was not found: the requested system device cannot be found"

and then everything remain the same, still cannot boot.

i know i am stupid to remove the system reserved partiton..

but i really need help here, i have imporant data in the laptop so i dont want to format and reinstall...

if anyone can help, i really appreciate
My System SpecsSystem Spec
Comment

Tutorial Tools



Similar Threads for: MBR - Restore Windows 7 Master Boot Record
Windows 7 Tutorial Category
Boot Record Fix? Anyone? General Discussion
Can't boot windows 7 after registry restore Crashes and Debugging
PLEASE HELP!!!master of orion 2 windows 7 Gaming
Win7 Digital River Master Disc Won't Boot Installation & Setup
Windows 7 and CS3 master collection Installation & Setup


All times are GMT -5. The time now is 08:11 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28