Fix MBR

Category: Hard Drives

"I was trying to fix a spyware problem and it seems I messed up my computer. Now when I start Windows XP, I get the 'MBR Corrupt' and 'Error loading operating system' messages. What should I do?"


Got a Damaged Master Boot Record?

master boot record
Although those messages sound pretty scary, there's a good chance your hard drive is still intact. In most cases this problem can be fixed with a simple procedure that repairs your Master Boot Record (MBR). When you start your computer, the BIOS (basic input/output system) looks for the MBR on the first sector of your hard drive. The MBR tells the BIOS which partition on the hard drive contains the operating system.

So... if the MBR is damaged, the BIOS can't locate and start the operating system. When your BIOS detects a damaged MBR or boot sector, you'll see ominous messages like Invalid partition table, Error loading operating system, or Missing operating system. In some cases, dark clouds will apppear on the horizon, and you may hear the distant rumble of thunder. But fortunately, the Recovery Console offers some tools to help clear up the problem.

Repairing a Damaged MBR

Your Windows XP setup CDROM has a tool called the Recovery Console, which is designed to help you repair a damaged master boot record or boot sector. To start the Recovery Console and fix your damaged MBR, follow these steps:

  1. Restart your computer with the Windows XP Setup disk in the CDROM drive.
  2. If you are prompted to press a key to start the computer from CDROM, do so quickly. Otherwise it may try to boot from the hard drive.
  3. After a few minutes, you'll see a prompt to press the R key to start the Recovery Console.
  4. When Recovery Console starts, it will prompt you to enter a number corresponding to the Windows XP installation that you need to repair. In most cases, you'll enter "1" (which will be the only choice). If you press ENTER without typing a number, Recovery Console will quit and restart your computer.
  5. Enter your Administrator password. If you don't enter the correct password, you cannot continue.
  6. At the Recovery Console command prompt, type fixmbr and then verify that you want to proceed.

Your damaged MBR will be replaced with a shiny new one, and you should then be able to boot your system normally. In some cases, you may need to repair the boot sector in addition to the MBR. If your system still doesn't boot properly, repeat the steps above, but issue the fixboot command instead.

NOTE: These procedures assume that you have only one operating system installed. If you are an advanced user and have a multi-boot system with more than one operating system, you may need to do some additional reading about the fixmbr and fixboot commands at the Microsoft website.

Do you have experience with a damaged master boot record? Post your comments below...




Send this article to a friend.
Jump to the Comments section.
Follow me on Twitter.
Buy Bob a Snickers.
Check out other articles in this category:

Posted by Bob Rankin on June 7, 2006 08:59 PM


Need More Help? Try the AskBobRankin Updates Newsletter. It's Free!

Prev Article:
802.11n Wireless Networking
Send this article to a friend
The Top Twenty
Next Article:
Take A Screenshot

Link to this article from your site or blog. Just copy and paste from this box:

Related Keywords: Hard Drives   mbr   master boot record   boot sector   fixmbr  

Most recent comments on "Fix MBR"

(See all 78 comments for this article.)

Posted by:
Rob
28 Mar 2009

Hello Bob!

Thanks for the great article. I hope you can help me with a follow up question. (I have a RAW file system problem and I'm pretty sure I have boot sector corruption)

Does fixing the MBR or Boot Sector using this technique compromise data on the rest of the disk? I have important data on my drive that I would like to recover and I want to know if I'll still be able to retrieve it using data recovery software after replacing the MBR.

My plan was to retrieve as much data as possible, (using data recovery software) and then simply reformat the disk after I had recovered all the important bits.

However, if I could get the disk running again simply by replacing the MBR using your guidelines I could save money by not having to purchase data recovery software.

Would you advise trying to recover all important files using data recovery software prior to replacing the MBR?

EDITOR'S NOTE: When the MBR is damaged, the system may report that you have a RAW file system, even though your data is still all there. My best guess is that fixing the MBR will bring the disk back to life, but it's hard to say for sure. I *think* the TESTDISK program can make a temporary fix to the disk, and then let you decide how to proceed.


Posted by:
Ramon
01 Apr 2009

I am running Win XP Pro. I have two hard drives on my system. One is my primary (main HD) disk I use for 'everything'. The second disk I use to backup everything from my primary disk (on a nightly basis).
If I remove my 'backup HD' from my system and try to start from just my primary disk it fails. It seems I need to have both disks installed to be able to boot my system.
I suspect I need to rebuild my MBR. How would I go about doing this for my setup - would I just install my primary HD and then follow your procedure for fixing the MBR and then put my second HD back in the system? Any suggestions would be appreciated.

EDITOR'S NOTE: That might work, but what error/problem do you see when you try to boot from the primary HD?


Posted by:
Selva
04 Apr 2009

Good Article Bob. A few days ago, My system displays "Error loading operating system" on the screen. When I try to access windows drive (C:) in Recovery Console through XP CD, it said Invalid Drive. But I Can access other drives (D and E).

When I try to install fresh XP, it displays the C drive as unformatted drive. But others in correct size and space with label name. After, I format the C to install XP. If I try fixing the MBR or Boot Sector that can helped me?

EDITOR'S NOTE: YES! That's probably what the problem is. Fix the MBR, and your disk may spring back to life.


Posted by:
dan
06 Apr 2009

Hi Bob, just found your article - this is my problem: Gateway GT4010 PC (AMD64 Processor 3500+ w/WinXP media ctr ed 2005, 2.2GHz 512 Kb cache, (1024mb DDR) \, West Dig 200gB HDD (7200rpm w2MB cache).
PC was running slow, ran a disk defrag but not sure it was completed successfully, computer tried to autoboot, had a disk read error and asked if wanted to boot again, or go back to prior good configuration or choose one of 3 safe modes - none of these worked to reboot. then took out HD and used as a slave in older PC - first thing when turning on, old PC said Chk disk "D", ran thru 1st stage ok, 2nd stage "correcting error in Index $I30 in file 76016" numerous times, "sorting index....", then "recovering orphaned file into directory file 76016" - numerous files, mostly .jpg and .gif, then stage 3 "verifying security descriptors" and "replacing bad clusters in log file". Then computer finally booted up. Everything worked on this old PC but I could not read the D drive - the drive was recognized but nothing shown. It said "Disk in Drive D: not formatted, do you want to format now - Y/N" --i selected no. It did read the E: drive which had the Gateway recovery info. I tried to run the Recovery with the Gateway system restore CD - but it only gave me the option to reformat, wiping the data clean - which I did not do. Does this sound like an MBR problem or HD problem where I'd need to send out to recover files?

EDITOR'S NOTE: I sure try the MBR fix before spending a lot of money on a data recovery service. Look for the TESTDISK program.


Posted by:
Philip Alcala
12 Apr 2009

After trying EVERYTHING I knew of and referring to sites such as this one for possibly something I might have missed I finally figured out that all this machine wanted was to have a shiny new partition made for the new install. At the prompt where it displays the HD's, I clicked on the option to delete the existing partition, which was the C:/ drive, had setup re-partition the drive and then did a quick format to the NTFS format and had setup finish it's thing and ta-da, it finally worked so that Windows could complete the setup process. Hope this helps someone out there who is having as much trouble trying to simply re-install Windows.

Peace!


Posted by:
Shareef
08 May 2009

Hello - I'm very happy to find this article - it sheds a little light on my situation. I hope you can help me with a perplexing issue,
My problem computer is an IBM Thinkpad with winXP pro (it has a "recovery partition).
Attempting to boot the computer normally returns a black screen with the text: "error loading operating system"
I have tried to use the Windows Recovery console but it is of no use, it gives me the message: "Setup did not find any hard disk drives installed on your computer"

on to TESTDISK....the Analysis lists the first partition [NTFS] twice which which according to the testdisk wiki "points to a corrupted partition or an invalid partition table entry"
It also lists a second partition [FAT32] (the factory installed IBM recovery partition)

proceeding to the next step with TestDisk "Quick Search" it only Lists the IBM service recovery partition - no more mention of the main NTFS partition. "deeper search" produces the same result... I can only see the 5gb recovery partition. What can I do? I believe the MBR is messed up and i have corrupted boot sectors.

any advice? I desperately would like to recover the data on my main NTFS partition.


Posted by:
Constantine
10 May 2009

Hi!
Vista has been crashed. I suspect fist sector I read the article and intend to try the MBR fix or Boot fix if necessary buy I have only Win XP pro original CD. Can I use XP Recovery Console for fixing Vista?
Please respond ASAP.


Posted by:
Romayne
27 May 2009

I'm having a problem getting my Admin password to work - presume it's the one I log into Windows with? At any rate I tried it twice plus also the one for the alternate Windows version on another drive, but neither were accepted. Finally I tried none at all, but that just bumped me out completely - could you perhaps clarify on what to do in such a situation?

EDITOR'S NOTE: This should help: http://www.askvg.com/how-to-reset-recover-forgotten-windows-nt-2000-xp-2003-administrator-password/


Posted by:
José Silva
29 May 2009

I used the command fixboot and I have solved my boot problem on XP
Thanks


Posted by:
higino Fonseca
07 Jun 2009

Hi,
First of all fantastic article.
Can you help me with my problem?
I have a laptop that I instaled Iatkos and it suddently gave me an error when accessing MBR it states:
Boot0: MBR
Boot0:done
Boot1:error (and stops here)

Since I can't access my hard drive on the laptop and the DVD how can I solve it up?
Thanks


There's more reader feedback... See all 78 comments for this article.

Post your Comments, Questions or Suggestions

*     *     (* = Required field)

    (Your email address will not be published)
(you may use HTML tags for style)

YES... spelling, punctuation, grammar and proper use of UPPER/lower case are important! And please limit your remarks to 3-4 paragraphs. If you want to see your comment posted, pay attention to these items.

All comments are previewed, and may be edited before posting.

NOTE: Please, post comments on this article ONLY.
If you want to ask a question click here.


Ask Bob Rankin Home Page
RSS   Add to My Yahoo!   Subscribe in NewsGator Online   Feedburner Feed
Subscribe to AskBobRankin Updates: Free Newsletter
Copyright © 2005 - Bob Rankin - All Rights Reserved


Article information: AskBobRankin -- Fix MBR (Posted: June 7, 2006 08:59 PM)
Printed from: http://askbobrankin.com/fix_mbr.html
Copyright © 2005 - Bob Rankin - All Rights Reserved