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?"



Send a FREE Fax!

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...


Need more tech support?

Search for help with computers, gadgets,
or the Internet!

 

  Search For Tech Help

Send via Email Make a Comment
Follow me on Twitter Buy Bob a Snickers Granola Bar
Save as Favorite Send to Printer

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 91 comments for this article.)

Posted by:

Michael Meyer
02 Sep 2009

I have windows xp sp 2. I'm getting the MBR error message. The internal cd/dvd drive that came with the computer doesn't work anymore. I have and external cd/dvd drive/burner. I changed the BIOS settings so that the removable device is first. I put the Windows XP disc in the burner. When I reboot, I'm getting another message: PXE-E61: Media test failure, check cable. Any suggestions?


Posted by:

bryan francisco
06 Sep 2009

can someone help me how to fix the MBR of an external hardrive??? and if i dont have an os installed?? how can i fix the MBR otr that disk??? please help!

EDITOR'S NOTE: The process of repairing the MBR should be no different for an external drive. But I'm not sure if you even have an MBR for a drive with no OS installed.


Posted by:

Brian 500
09 Sep 2009

You can fix a corrupted MBR with a product called DriveRestore Professional. Run a boot sector analysis and it will detect all the drive errors... the product will then auto-repair the errors for you. It can be downloaded at: www.pcrecovery.com/driverestore


Posted by:

Paul Higgins
15 Oct 2009

I have used fixmbr and fixboot many times for myself and others, usually succesfully.

for those with some of the problems listed above there is an excellent option called UBCD for Windows. (google it- one works for XP, but for vista you need the Vista specific version- google UBCD for Vista). It can boot you into Windows recovery console without the need for a Windows disc. You do need to build the CD and have a bit of know-how, but I taught myself to use it succesfully. It includes many other tools, such as partition managers and recovery.
there are many good guides to explain how to build and burn the CD as there are to use it.
I wotk on the thory that if my drive is innaccessible, and I can't afford professionalhelp, what have I to lose?
Be aware though, if you have critical data any attempt at home recovery can make professional recovery very much more expensive if you corrupt the data further or overwrite it.


Posted by:

Arnab
28 Nov 2009

I have a DELL Inspiron 1545 Laptop with Windows XP SP2 installed in it.I was trying to format a drive using GParted tool.While doing so, i created a new partition table, by mistake. Now it is showing as the entire 250GB as unallocated.I have not partitioned or formatted anything.I guess i have deleted the MBR and the remaining part of the disk is still intact. Am i right? If so, will the solution provided in this article work? If not, what would have happened? Kindly suggest me a solution.
When i switch on the laptop, i get the following error:
"No bootable devices--strike F1 to try reboot, F2 for setup utility.Press F5 to run on board diagnostics"


Posted by:

Mike
07 Dec 2009

The freeware tool "offline nt password & registry editor" can be used if you do not know the administrator password. It is a boot iso, menu-driven, very simple to use.


Posted by:

Dheeraj bharti
22 Jan 2010

Hi my laptop's nvidia chip was changed and so i'd been using my hard drive as an external usb drive. The technician got my laptop to boot with his hard disk. Now when i connect my hard disk back i get only a blinking cursor in the left top corner of the screen. However all the folders seem to be intact when i use the same drive as an external drive on other pcs.


Posted by:

Dheeraj bharti
22 Jan 2010

Hi my laptop's nvidia chip was changed and so i'd been using my hard drive as an external usb drive. The technician got my laptop to boot with his hard disk. Now when i connect my hard disk back i get only a blinking cursor in the left top corner of the screen. However all the folders seem to be intact when i use the same drive as an external drive on other pcs.


Posted by:

Dheeraj bharti
22 Jan 2010

Hi my laptop's nvidia chip was changed and so i'd been using my hard drive as an external usb drive. The technician got my laptop to boot with his hard disk. Now when i connect my hard disk back i get only a blinking cursor in the left top corner of the screen. However all the folders seem to be intact when i use the same drive as an external drive on other pcs.


Posted by:

Rufus
08 Feb 2010

"Seems like it can't hurt..." NO NO NO. It CAN bloody well hurt. FIXMBR is vile because it will destroy partition information and effectively wipe the C drive (which is usually the one with the MBR) clean and you will lose all your files and programs. DONT USE IT UNLESS YOU BUY ANOTHER HDD - COPY YOUR FILES TO IT FROM THE RECOVERY CONSOLE - (EASIER SAID THAN DONE) AND THEN FIXMBR, followed by FORMAT followed by a clean install. 1 days' worth of fun which, if you are not too careful, will cost you your files.

EDITOR'S NOTE: It's extreme to say that FIXMBR *will* destroy your partitions. In some rare cases, it may. But that sure isn't the norm.


There's more reader feedback... See all 91 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)
Source: http://askbobrankin.com/fix_mbr.html
Copyright © 2005 - Bob Rankin - All Rights Reserved