Home > Windows Server Tips > Windows Storage Management > How to repair damaged Master Boot Records and boot sectors
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS STORAGE MANAGEMENT

How to repair damaged Master Boot Records and boot sectors


Brien M. Posey, Contributor
08.16.2007
Rating: -4.67- (out of 5)


Expert advice on Windows-based systems and hardware
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


More on boot sectors and data recovery

Learn how to recover data from corrupt NTFS boot sectors.

Visit our topical resource center for more data recovery techniques.
When systems administrators see an unbootable system, often they automatically assume they need to reinstall Windows. However, boot problems can be relatively easy to fix.

First, some information about how the boot process works. When you power up a computer, the system BIOS tells the computer which drive to boot from. The computer then tries to read the Master Boot Record from the designated drive. The code stored in the Master Boot Record then searches the drive for the active partition.

Once the active partition has been loaded, the system locates the boot sector. The system then begins executing the file that the boot sector points to. In Windows operating systems that are based on the NT kernel (Windows NT, 2000, XP, Vista and Windows Server 2003), the boot sector causes the system to execute the NT Loader (Ntldr) file. In older versions of Windows not based on the NT Kernel (MS DOS, Windows 95, 98, ME), the boot sector points to IO.SYS.

That's the boot process in a nutshell. Two main things can go wrong with the boot process.

1. If the Master Boot Record looks for the active partition and the boot sector, and no active partition exists; or if the system cannot locate a boot sector on the active partition, the boot process will come to a grinding halt. The exact error message displayed will vary from one system to another, but is typically one of the following:

  • Invalid partition table
  • Error loading operating system
  • Missing operating system

2. The boot sector is found, but the Ntldr file is missing or damaged. If that happens, the exact symptoms of the problem will vary. The system may lock up or it may display an error message similar to one of the following:

  • Ntldr is missing
  • Ntldr is compressed
  • A disk read error occurred

Several circumstances can cause this problem. It can occur if the Ntldr file is deleted, moved or renamed, or if the Ntldr file is damaged, or if the boot sector itself becomes damaged (or infected by a virus) so that it points to the wrong location.

The problem can also occur if you were to install an NT Kernel-based operating system, then later installed an operating system not based on the NT Kernel, i.e., if you were to install Windows XP, then later installed Windows 98 on the same system. In a situation like this, Windows 98 would overwrite the boot sector, and the boot sector would no longer point to the Ntldr file as a result.

Repair techniques for boot problems

There are two basic techniques for repairing these types of boot problems: using the Recovery Console and manually repairing the disk's partition table.

The preferred method for fixing boot problems involves using the Recovery Console to boot the system to a command-line environment. You can then employ a utility called FIXMBR to repair the Master Boot Record. Although this technique rebuilds your Master Boot Record, it has no effect on the partition table. If the partition table was damaged by a virus or otherwise corrupted, this technique probably won't work.

Warning: If you use the above technique, you can further damage the system if any of three conditions exist:

  • The system is infected by a boot sector virus, and a non-Microsoft operating system is also installed on the system.
  • You used a third-party disk utility to create a non-standard Master Boot Record.
  • The system has hardware problems that have not yet been corrected.

The actual repair technique varies slightly from one version of Windows to another. What follows is the technique for repairing the Master Boot Record on a system running Windows XP, since that seems to be the operating system most in use today. But the technique should be very similar for any version of Windows.

  1. Boot the system from the Windows installation CD.
  2. When prompted, press R to repair the system. Setup may prompt you as to which installation you want to repair. If you have more than one copy of Windows installed, be sure to select the copy that you are having problems with.
  3. At this point, the Recovery Console will load and will prompt you to enter the local administrator's password. Keep in mind this is often different from the domain administrator's password.
  4. Once you enter the password, you'll be taken to a command prompt. Type FIXMBR and press enter.

Once you've performed these steps, you can use the FIXBOOT command to write a new boot sector to the system partition. Be sure to specify the drive letter for the drive that you want to repair (FIXBOOT C: ).

About the author: Brien M. Posey, MCSE, is a Microsoft Most Valuable Professional for his work with Windows 2000 Server, Exchange Server and IIS. He has served as CIO for a nationwide chain of hospitals and was once in charge of IT security for Fort Knox. He writes regularly for SearchWinComputing.com and other TechTarget sites.

Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Windows Storage Management
Breaking down the Windows Server Backup tool for Windows 2008
Keeping an eye on network disk space with Windows Server 2008
Moving dynamic disks to a new Windows server
A first look at Storage Explorer for Windows Server 2008
Give your system memory a boost with x64
Backup and recovery for data migrated to networked storage
Disk management basics for iSCSI deployments
Making financial sense of disk-to-disk backup solutions
Moving structured data sources to networked storage
Making the move from DAS to SAN and NAS

Windows Disaster Recovery and Business Continuity
Use Bad Block Copy to recover data from damaged media
Uninterruptible power supplies, surge protectors and lightning strikes
Unstoppable Copier recovers data from bad files by ignoring errors
Flexibility of NTBACKUP has been lost in Windows Vista
Perform bare metal restore of Windows Server 2003 using NTBACKUP
Volume Shadow Copy Service lets users restore, recover files
Email archiving: What's right for your enterprise?
Windows management products earn top honors
Top 10 Windows restore and recovery tips of 2006
Fix removable media restriction on Win2k Recovery Console
Windows Disaster Recovery and Business Continuity Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts