MBR(Master Boot Record)主引导记录分析

root@ubuntu1404:/home/chen# fdisk -l /dev/sda1

Disk /dev/sda1: 254 MB, 254803968 bytes
255 heads, 63 sectors/track, 30 cylinders, total 497664 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda1 doesn't contain a valid partition table
root@ubuntu1404:/home/chen# fdisk -l /dev/sda5

Disk /dev/sda5: 21.2 GB, 21216886784 bytes
255 heads, 63 sectors/track, 2579 cylinders, total 41439232 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda5 doesn't contain a valid partition table

 

 

存贮字节位内容及含义
第0字节引导标志。若值为80H表示活动分区,若值为00H表示非活动分区。
第1,2,3字节本分区的起始磁头号、扇区号、柱面号。其中:磁头号——第1字节;
扇区号——第2字节的低6位;
柱面号——为第2字节高2位+第3字节8位。
第4字节分区类型符。00H——表示该分区未用(即没有指定);
06H——FAT16基本分区;
0BH——FAT32基本分区;
05H——扩展分区;
07H——NTFS分区;
0FH——(LBA模式)扩展分区(83H为Linux分区等)。
第5,6,7字节本分区的结束磁头号、扇区号、柱面号。其中:磁头号——第5字节;
扇区号——第6字节的低6位;
柱面号——第6字节的高2位+第7字节。
第8,9,10,11字节本分区之前已用了的扇区数。
第12,13,14,15字节本分区的总扇区数。

 

注: 上图中的"Sector in partition 1=497664"对应的是"00 98 07 00", 查了资料, 超过1字节的数据, 实际应该对应"00 07 98 00"(好比镜像了一下)

Total = 446Byte + 64Byte + 2Byte

转载于:https://www.cnblogs.com/IvanChen/p/5183998.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值