What Are the Boot Sector and Master Boot Record?
that gets created whenever you format the drive. The boot sector
contains some code and data that helps BIOS hand off control of the
startup process to Windows. The boot sector also hosts the Master Boot Record (MBR), which contains the disk signature, partition table for the disk, and a small bit of code called the master boot code.
BIOS. The BIOS then loads the master boot code into the PC’s RAM and
hands off the startup processes to it. The master boot code scans the
partition table, determines the active partition, loads a copy of the
boot sector into the PC’s RAM, and hands off the startup process to that
code. It’s this boot strapping process that allows the initial bits of
the Windows code to start loading.
other part of your hard drive missing files, corrupted files, and even
physical damage. When the boot loader process fails, it will happen
after you see the BIOS information but before Windows actually begins to
load. You’ll usually see error messages like the following:
- Error loading operating system
- Missing operating system
- Reboot and select proper boot device
- Invalid partition table
- Bootmgr is missing
- FATAL: No bootable medium found! System halted.
to start Windows and will have to use the Windows Recovery Environment
to do your troubleshooting. We’re here to walk you through that.
Boot From the Windows Installation Media or Recovery Partition
Recovery Environment. It’s possible that your PC has a special recovery
partition that will allow you to start the Windows Recovery Environment
without needing a physical disc. How you do that varies with what brand
of PC you own, but you’ll often see a message during startup telling you
what key to press to start recovery and repair. If your PC doesn’t have
a recovery partition or you’re just not sure how to access it you can
also start your PC using a DVD or USB with the Windows installer on it.
that you can use to boot your own PC. And by the way, if your PC is
still operational you might want to take the precautionary step of creating a recovery drive or system repair disc that you can use in the future.
you see the initial Windows installation screen and then click the
“Repair your computer” link instead of starting an installation. If
you’re starting from a recovery partition or repair disc, the screens
might look a little different, but you’ll end up at the same options
we’re going to cover here.
Windows will then load the recovery environment. On the first page, click the “Troubleshoot” option.
Note that if you’re using Windows 7, the screens may look a bit
different. You’ll see most of the same options, though, including the
ones we’re going to cover next.
Repair Startup Automatically
startup. Not only will it attempt to fix the Master Boot Record or
recreate the boot sector, it will scan for and try to fix other common
startup problems as well. On the Advanced Options page, click “Startup
if you only have one installed. Click the operating system you want to
Windows will begin checking for startup problems and attempting repairs.
repairs were successful. Either way, you’ll be given the option to
restart your PC or return to the Advanced Options page.
repairing the Master Boot Record or rebuilding the boot sector manually
from the Command Prompt. It’s unlikely it will work if the automatic
repair didn’t, since these commands are performed as part of the
automatic repair process, but it won’t hurt to try.
Repair the Master Boot Record from the Command Prompt
failed and you’re pretty sure that the problem is with your Master Boot
Record or boot sector, you can also drop to the Command Prompt for a
quick fix. On the Advanced Options page, click “Command Prompt.”
type the following command and hit Enter. This option does overwrite the
current partition table and thus can sometimes cause issues if you’re
set up to boot to multiple operating systems. It won’t overwrite any
data on your actual partitions, but you may need to reconfigure your
multi-boot options after using this command. This command is useful when
you suspect your boot sector may have been overwritten by another
operating system installation or malware, or if you suspect the boot
sector itself is damaged.
bootrec /?to see more options for and get help with the command.
Steps to Take After Recovery
Windows, we highly recommend going ahead and performing a couple of
other steps. First, run the Check Disk utility
to scan the integrity of your file system and hard disk. It’s always
possible that your bootloader error stemmed from physical problems with
your hard disk.
to scan for and fix any corrupted system files. It’s unlikely that
using the steps we’ve talked about will cause problems with system
files, but it is possible. And it’s a very easy thing to check on and
up mostly because of how little information you’re given when they
happen they are reasonably easy to repair. You just have to know what to
look out for and have a recovery solution ready to load.