|
引用揭秘WINDOWS 第五版里一段:
Physical disks are addressed in units known as sectors. A hard disk sector on a BIOS PC is
typically 512 bytes. Utilities that prepare hard disks for the definition of volumes, such as the
Windows Setup program, write a sector of data called a Master Boot Record (MBR) to the first
sector on a hard disk. (MBR partitioning is described in Chapter 8.) The MBR includes a fixed
amount of space that contains executable instructions (called boot code) and a table (called
a partition table) with four entries that define the locations of the primary partitions on the
disk. When a BIOS-based computer boots, the first code it executes is called the BIOS, which
is encoded into the computer’s ROM. The BIOS selects a boot device, reads that device’s MBR
into memory, and transfers control to the code in the MBR.
The MBRs written by Microsoft partitioning tools, such as the one integrated into Windows
Setup and the Disk Management MMC snap-in, go through a similar process of reading and
transferring control. First, an MBR’s code scans the primary partition table until it locates a
partition containing a flag that signals the partition is bootable. When the MBR finds at least
one such flag, it reads the first sector from the flagged partition into memory and transfers
control to code within the partition. This type of partition is called a system partition, and the
first sector of such a partition is called a boot sector. The volume defined for this partition is
called the system volume.
可以初步理解MBR 和boot sector |
|