Saturday, June 27, 2009

Master Boot Record

MBR resides in the first 512-bytes sector on the device. The first 446 bytes contains the boot code, followed by 4x16-bytes partition table entries. There are 2 types of partition in MBR:

(1) A primary file system partition contains file system.
(2) A primary extended partition contains additional partitions.

An extended partition contains 1 secondary file system partition (called logical partition in Windows) and 1 secondary extended partition. The secondary extended partition contains more partitions in a recursive fashion.

To illustrate, a disk with 6 partitions may have the following partition structure:
- 3xparimary file system partitions (C:, D:, E:)
- 1xparimary extended partition
- 1xsecondary file system parition (F:)
- 1xsecondary extended partition
- 1xsecondary file system partition (G:)
- 1xsecondary extended partition
- 1xsecondary file system partition (H:)

No comments: