MBR, disk partitioning, .... OS

A Master Boot Record (MBR), or partition sector, is the 512-byte boot sector that is the first sector ("Sector 0") of a partitioned data storage device such as a hard disk.

Due to the broad popularity of IBM PC-compatible computers, this type of MBR is widely used, to the extent of being supported by, and incorporated into, other computer types, including newer cross-platform standards for bootstrapping and partitioning.

 

Structure of a Master Boot Record:

Address

Description

Size
in
bytes

Hex

Dec

0000

0

Code Area

max.
446

01B8

440

Optional Disk signature

4

01BC

444

Usually Nulls; 0x0000

2

01BE

446

Table of primary partitions
(Four 16-byte entries, IBM Partition Table scheme)

64

01FE

510

55h

MBR signature;
0xAA55

2

01FF

511

AAh

MBR, total size: 446 + 64 + 2 =

512

Layout of one 16-byte partition record
OffsetDescription
0x00Status (0x80 = bootable, 0x00 = non-bootable, other = malformed)
0x01(3 bytes) Cylinder-head-sector address of the first sector in the partition
0x04( 1 byte) Partition type[5]
0x05(3 bytes) Cylinder-head-sector address of the last sector in the partition
0x08(4 bytes) Logical block address of the first sector in the partition
0x0C(4 bytes) Length of the partition, in sectors

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值