A boot sector exists on an internal hard drive where an operating system like Windows is installed, as well as storage devices that you may not even need to boot from, but instead are just holding personal data, like an external hard drive, floppy disk, or another USB device.
How the Boot Sector Is Used
When a computer is powered on, the BIOS begins its boot process by searching for information on how to start the operating system. It does this by checking the first sector of each storage device connected to the computer. Say you have one hard drive in your computer. This means you have one drive that has one boot sector. In that particular section of the hard drive may be one of two things: the master boot record (MBR) or the volume boot record (VBR). The MBR is the very first sector of any formatted hard drive. Since BIOS looks at the first sector to understand how it should proceed, it will load the MBR into memory. Then, the active partition can be found so the computer knows where the operating system is located. If a hard drive has multiple partitions, the VBR is the first sector within each partition. The VBR is also the first sector of a device that isn’t partitioned at all. Check out those MBR and VBR links above for more about the master boot record and volume boot records and how they work as part of the boot process.
Boot Sector Errors
A sector must have a very specific disk signature to be seen by BIOS as a boot sector. This signature is 0x55AA and is contained in its very last two bytes of information. If the disk signature is corrupted or has somehow been changed, it’s very likely that BIOS won’t be able to find the boot sector, and so, of course, won’t load the necessary instructions for finding and starting the operating system. Any of the following error messages could indicate a corrupted boot sector:
Invalid partition table Couldn’t find BOOTMGR BOOTMGR is missing Missing operating system Setup has determined that your file system is corrupt A disk read error occurred NTLDR is missing Error loading operating system
How to Repair Boot Sector Errors
If you discover through your troubleshooting that a boot sector error is probably the cause of the problems you’re experiencing, formatting the hard drive and then reinstalling Windows from scratch is the “classic” fix for these types of problems. Fortunately, there are other, less destructive but well-established processes that anyone can follow that should repair the boot sector… no erasing-of-your-computer required. To repair a damaged boot sector in Windows 11, 10, 8, 7, or Vista, follow our detailed tutorial on How to Write a New Partition Boot Sector in Windows. These errors can also occur in Windows XP, but the fix-it process is very different. See our article How to Write a New Partition Boot Sector for Windows XP for the details. One of the more official, Microsoft-sanctioned processes above are better bets in almost all cases, but there are some third-party tools that can rebuild boot sectors if you’d like to try one of them instead. See our list of Free Disk Partitioning Tools if you need a recommendation. There are also some Commercial Hard Drive Testing Tools that advertise the ability to recover data from bad sectors, which might be one way to go about fixing the error, but we’d focus on the ideas we already mentioned before paying for one of these.
Boot Sector Viruses
Beyond running the risk of being corrupted by some sort of accident or hardware failure, the boot sector is also a common area for malware to take hold. Malware makers love focusing their attention on the boot sector because its code is launched automatically and sometimes without protection before the operating system even starts up! If you think you may have a boot sector virus, we highly recommend doing a complete scan for malware, making sure you’re scanning the boot sector as well. See How to Scan Your Computer for Viruses and Other Malware for help if you’re not sure what to do. Many of these viruses will stop your computer from starting all the way, making scanning for malware from within Windows impossible. In these cases, you need a bootable virus scanner. We keep a list of free bootable antivirus tools that you can choose from, which solves this particularly frustrating catch-22.
More Information on Boot Sectors
The boot sector is created when you first format a device. This means if the device hasn’t been formatted, and therefore isn’t using a file system, there also won’t be a boot sector. There’s only one boot sector per storage device. Even if one hard drive has multiple partitions, or is running more than one operating system, there is still only one for that whole drive. Paid software, like Active@ Partition Recovery, is available that can back up and restore boot sector information in the event that you run into an issue. Other advanced applications may be able to find another boot sector on the drive that can be used to rebuild the corrupted one.