Windows 7 Forums Search
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 - How to fix MBR through command prompt?



 
07-21-2009   #1


Windows 7 RC 7100
 
 

How to fix MBR through command prompt?

Question: What commands could I run in the command prompt during the system recovery? I try & run say "fixmbr" but it doesn't work. Say if I want to write a new master boot record how would I do that?

My System SpecsSystem Spec
07-21-2009   #2


Windows 7 x64 rtm
 
 


These were commands used for vista, but should still hold true for Windows 7. I've just never needed to use them yet......knock on wood

after selecting repair>cmd prompt, enter:
BootRec.exe /fixmbr

you can also substitue the /fixmbr with thes commands:

/FixBoot
. Writes a boot sector onto the system partition to start Windows

/ScanOs
. Scans all disks for Windows installations and displays them to you.

/RebuildBcd
. Scans all disks for Windows installations and prompts you to pick the ones you want to add to the BCD.
My System SpecsSystem Spec
07-21-2009   #3


Vista Ultimate 64bit
 
 


billdo - I installed RC1 on my H drive. C drive is Vista. While booted in Windows 7 can I use the /FixBoot command to make the H drive bootable? I think now the systems starts up on the C drive and then gives the choice to start Vista or Windows 7 - Advice appreciated - IM
My System SpecsSystem Spec
.


07-21-2009   #4


Windows 7 x64 rtm
 
 


No don't do that, the commands above should only be used as last resort to repair system.It's best to let your primary active system drive take care of all boot options, which in your case is C: Trying to make drive H active and bootable may have(will) cause severe problems.

If you wish to boot quicker into Windows7 you can change your default OS and boot menu delay in msconfig.

Go to Start>Run and type msconfig
click on the boot option and you will be able to choose default os to start and menu delay.

You can always set the boot menu delay to 0 to boot directly into your default OS and then use F8 or F5(varies different motherbaords)during post to select OS to boot.

If you want the boot menu to show with shorter delay(default 30sec)be sure to add a couple of extra secs to delay.If you choose a delay of 5sec you may only get 3-4sec.

Last edited by billdo; 07-21-2009 at 02:28 PM..
My System SpecsSystem Spec
07-21-2009   #5


Vista Ultimate 64bit
 
 


billdo - After changing the boot drive to H from C, can I remove my C drive, and change H to C? Hey, I really appreciate your help :-) - IM
My System SpecsSystem Spec
07-21-2009   #6


Windows 7 x64 rtm
 
 


I wouldn't advise it. You are going to have a lot of confused programs not knowing why their data is no longer on H
My System SpecsSystem Spec
07-21-2009   #7


Windows 7 Ultimate x64
 
 


Or you could've just tried bootrec /fixboot and bootrec /fixmbr.
My System SpecsSystem Spec
07-25-2009   #8


Windows 7 RC 7100
 
 


Quote   Quote: Originally Posted by dinesh View Post
Or you could've just tried bootrec /fixboot and bootrec /fixmbr.
Okay tried all that. The bootrec /ScanOS sees the OS but with I enter bootrec /RebuildBCD it (Y)yes it says "Element not found."

What now?
My System SpecsSystem Spec
07-25-2009   #9


Windows 7 Ultimate x64
 
 


Quote   Quote: Originally Posted by justinstrack View Post
Okay tried all that. The bootrec /ScanOS sees the OS but with I enter bootrec /RebuildBCD it (Y)yes it says "Element not found."

What now?
try bootrec /fixboot
fingers crossed.
My System SpecsSystem Spec
07-25-2009   #10


Win 7 Ultimate 32bit
 
 


Just a little warning to those who may not know....

Playing with the MBR is a risky thing.
If you don't know how to recover data and haven't done/or don't know how to do a backup.
Then you shouldn't be messing with the MBR at all.

Simply running /fixmbr can and has corrupted it for me several times in the past.
This is not something that a simple windows repair can usually fix, usually.
My System SpecsSystem Spec
Reply

How to fix MBR through command prompt? problems?



Thread Tools



Similar Threads for: How to fix MBR through command prompt?
Thread Forum
Run administrative command prompt from command prompt General Discussion
Command Prompt Tutorials
Solved Command Prompt General Discussion
command prompt bug ? General Discussion
Command Prompt command <ipconfig> not working Network & Sharing


All times are GMT -5. The time now is 02:57 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 29 30