Difference between revisions of "Bootsector of the IBM PC"

From Syslinux Wiki
Jump to: navigation, search
Line 40: Line 40:
More information about the IBM PC bootsector is at
More information about the IBM PC bootsector is at
* http://www.geocities.com/thestarman3/asm/mbr/95BMEMBR.htm
* http://bootmaster.filerecovery.biz/appnote4.html
* http://bootmaster.filerecovery.biz/appnote4.html
* please
* please

Revision as of 12:54, 3 August 2008

The bootsector of the IBM PC and compatibles is also the partition table of the disk. It is also called Master Boot Record (MBR)


The MBR is 512 bytes large and is the first sector of a disk.

Start offset Length Contents
0 440 bytes Executable code
440 4 bytes Disk MBR signature
444 2 bytes Unused
446 64 bytes Partition table
510 2 bytes Boot signature (55 AA)

Disable booting

When the signature is valid, the computer's BOOTROM will boot from the disk. To disable it, you have to wipe the signature bytes. You have the read the whole sector (512 bytes) and change only the signature and read back the sector.

A code example:

help requested

at http://syslinux.zytor.com/archives/2006-October/007495.html

More information about the IBM PC bootsector is at

Microsoft have documented the FAT boot-sector format in their Knowledge-base article KB-140418 Version 3 Dated December 6, 2003 [1]

Back to BootSector, which is also SpinOff