Skip to content

Instantly share code, notes, and snippets.

@Warchant
Last active August 17, 2016 09:55
Show Gist options
  • Save Warchant/dd335750a3d4e20f4f5a4bbd0a9c70f3 to your computer and use it in GitHub Desktop.
Save Warchant/dd335750a3d4e20f4f5a4bbd0a9c70f3 to your computer and use it in GitHub Desktop.
######### PROTECTIVE MBR #########
Mnemonic : Boot code
Byte Offset : 0
Byte Length : 440
Contents : Unused by UEFI systems
Value(hex):
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000
Value(dec):
0
Value(printable):
........................................................................................................................................................................................................................................................................................................................................................................................................................................................
Mnemonic : Unique MBR Disk Signature
Byte Offset : 440
Byte Length : 4
Contents : Unused. Set to zero.
Value(hex):
0000 0000
Value(dec):
0
Value(printable):
....
Mnemonic : Unknown
Byte Offset : 444
Byte Length : 2
Contents : Unused. Set to zero.
Value(hex):
0000
Value(dec):
0
Value(printable):
..
Mnemonic : Partition Record
Byte Offset : 446
Byte Length : 64
Contents : Array of four MBR partition records. Contains: one non-zero partition record and three partition records each set to zero.
Value(hex):
0000 0100 EEFE FFFF 0100 0000 AF6D 7074
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
Value(dec):
154774209406781380016465810672572235776
Value(printable):
.............mpt................................................
Mnemonic : Signature
Byte Offset : 510
Byte Length : 2
Contents : Set to 0xAA55 (i.e., byte 510 contains 0x55 and byte 511 contains 0xAA).
Value(hex):
55AA
Value(dec):
43605
Value(printable):
U.
Mnemonic : Reserved
Byte Offset : 512
Byte Length : 0
Contents : The rest of the logical block, if any, is reserved. Set ot zero.
Value: (zero-length)
######### PARTITION RECORD 0 #########
Mnemonic : Boot Indicator
Byte Offset : 446
Byte Length : 1
Contents : Set to 0x00 to indicate a non-bootable partition. If set to any value other than 0x00 the behavior of this flag on non-UEFI systems is undefined. Must be ignored by UEFI implementations.
Value(hex):
00
Value(dec):
0
Value(printable):
.
Mnemonic : StartingCHS
Byte Offset : 447
Byte Length : 3
Contents : Set to 0x000200, corresponding to the Starting LBA field
Value(hex):
0001 00
Value(dec):
256
Value(printable):
...
Mnemonic : OSType
Byte Offset : 450
Byte Length : 1
Contents : Set to 0xEE (ie, GPT protective)
Value(hex):
EE
Value(dec):
238
Value(printable):
.
Mnemonic : EndingCHS
Byte Offset : 451
Byte Length : 3
Contents : Set to CHS address of the last logical block on the disk. Set tot 0xFFFFFF if it is not possible to represent the value in this field.
Value(hex):
FEFF FF
Value(dec):
16777214
Value(printable):
...
Mnemonic : StartingLBA
Byte Offset : 454
Byte Length : 4
Contents : Set to 0x00000001 (ie, the LBA of the GPT Partition header)
Value(hex):
0100 0000
Value(dec):
1
Value(printable):
....
Mnemonic : SizeInLBA
Byte Offset : 458
Byte Length : 4
Contents : Set to the size of the disk minus one. Set to 0xFFFFFFFF if the size of the disk is too large to be represented in this field
Value(hex):
AF6D 7074
Value(dec):
1953525167
Value(printable):
.mpt
######### PARTITION RECORD 1 #########
Mnemonic : Boot Indicator
Byte Offset : 462
Byte Length : 1
Contents : Set to 0x00 to indicate a non-bootable partition. If set to any value other than 0x00 the behavior of this flag on non-UEFI systems is undefined. Must be ignored by UEFI implementations.
Value(hex):
00
Value(dec):
0
Value(printable):
.
Mnemonic : StartingCHS
Byte Offset : 463
Byte Length : 3
Contents : Set to 0x000200, corresponding to the Starting LBA field
Value(hex):
0000 00
Value(dec):
0
Value(printable):
...
Mnemonic : OSType
Byte Offset : 466
Byte Length : 1
Contents : Set to 0xEE (ie, GPT protective)
Value(hex):
00
Value(dec):
0
Value(printable):
.
Mnemonic : EndingCHS
Byte Offset : 467
Byte Length : 3
Contents : Set to CHS address of the last logical block on the disk. Set tot 0xFFFFFF if it is not possible to represent the value in this field.
Value(hex):
0000 00
Value(dec):
0
Value(printable):
...
Mnemonic : StartingLBA
Byte Offset : 470
Byte Length : 4
Contents : Set to 0x00000001 (ie, the LBA of the GPT Partition header)
Value(hex):
0000 0000
Value(dec):
0
Value(printable):
....
Mnemonic : SizeInLBA
Byte Offset : 474
Byte Length : 4
Contents : Set to the size of the disk minus one. Set to 0xFFFFFFFF if the size of the disk is too large to be represented in this field
Value(hex):
0000 0000
Value(dec):
0
Value(printable):
....
######### PARTITION RECORD 2 #########
Mnemonic : Boot Indicator
Byte Offset : 478
Byte Length : 1
Contents : Set to 0x00 to indicate a non-bootable partition. If set to any value other than 0x00 the behavior of this flag on non-UEFI systems is undefined. Must be ignored by UEFI implementations.
Value(hex):
00
Value(dec):
0
Value(printable):
.
Mnemonic : StartingCHS
Byte Offset : 479
Byte Length : 3
Contents : Set to 0x000200, corresponding to the Starting LBA field
Value(hex):
0000 00
Value(dec):
0
Value(printable):
...
Mnemonic : OSType
Byte Offset : 482
Byte Length : 1
Contents : Set to 0xEE (ie, GPT protective)
Value(hex):
00
Value(dec):
0
Value(printable):
.
Mnemonic : EndingCHS
Byte Offset : 483
Byte Length : 3
Contents : Set to CHS address of the last logical block on the disk. Set tot 0xFFFFFF if it is not possible to represent the value in this field.
Value(hex):
0000 00
Value(dec):
0
Value(printable):
...
Mnemonic : StartingLBA
Byte Offset : 486
Byte Length : 4
Contents : Set to 0x00000001 (ie, the LBA of the GPT Partition header)
Value(hex):
0000 0000
Value(dec):
0
Value(printable):
....
Mnemonic : SizeInLBA
Byte Offset : 490
Byte Length : 4
Contents : Set to the size of the disk minus one. Set to 0xFFFFFFFF if the size of the disk is too large to be represented in this field
Value(hex):
0000 0000
Value(dec):
0
Value(printable):
....
######### PARTITION RECORD 3 #########
Mnemonic : Boot Indicator
Byte Offset : 494
Byte Length : 1
Contents : Set to 0x00 to indicate a non-bootable partition. If set to any value other than 0x00 the behavior of this flag on non-UEFI systems is undefined. Must be ignored by UEFI implementations.
Value(hex):
00
Value(dec):
0
Value(printable):
.
Mnemonic : StartingCHS
Byte Offset : 495
Byte Length : 3
Contents : Set to 0x000200, corresponding to the Starting LBA field
Value(hex):
0000 00
Value(dec):
0
Value(printable):
...
Mnemonic : OSType
Byte Offset : 498
Byte Length : 1
Contents : Set to 0xEE (ie, GPT protective)
Value(hex):
00
Value(dec):
0
Value(printable):
.
Mnemonic : EndingCHS
Byte Offset : 499
Byte Length : 3
Contents : Set to CHS address of the last logical block on the disk. Set tot 0xFFFFFF if it is not possible to represent the value in this field.
Value(hex):
0000 00
Value(dec):
0
Value(printable):
...
Mnemonic : StartingLBA
Byte Offset : 502
Byte Length : 4
Contents : Set to 0x00000001 (ie, the LBA of the GPT Partition header)
Value(hex):
0000 0000
Value(dec):
0
Value(printable):
....
Mnemonic : SizeInLBA
Byte Offset : 506
Byte Length : 4
Contents : Set to the size of the disk minus one. Set to 0xFFFFFFFF if the size of the disk is too large to be represented in this field
Value(hex):
0000 0000
Value(dec):
0
Value(printable):
....
######### GPT HEADER #########
Mnemonic : Signature
Byte Offset : 512
Byte Length : 8
Contents : Constant. 0x5452415020494645
Value(hex):
4546 4920 5041 5254
Value(dec):
6075990659671082565
Value(printable):
EFI.PART
Mnemonic : Revision
Byte Offset : 520
Byte Length : 4
Contents : The revision number for this header. This revision value is not related to the UEFI specification version. This header is version 1.0, so the correct value is 0x00010000
Value(hex):
0000 0100
Value(dec):
65536
Value(printable):
....
Mnemonic : HeaderSize
Byte Offset : 524
Byte Length : 4
Contents : Size in bytes of the GPT Header.
Value(hex):
5C00 0000
Value(dec):
92
Value(printable):
\...
Mnemonic : HeaderCRC32
Byte Offset : 528
Byte Length : 4
Contents : CRC32 checksum for the GPT Header structure.
Value(hex):
F2CD 7356
Value(dec):
1450429938
Value(printable):
..sV
Mnemonic : Reserved
Byte Offset : 532
Byte Length : 4
Contents : Must be zero.
Value(hex):
0000 0000
Value(dec):
0
Value(printable):
....
Mnemonic : MyLBA
Byte Offset : 536
Byte Length : 8
Contents : The LBA that contains this data structure.
Value(hex):
0100 0000 0000 0000
Value(dec):
1
Value(printable):
........
Mnemonic : AlternateLBA
Byte Offset : 544
Byte Length : 8
Contents : LBA Address of the alternate GPT Header
Value(hex):
AF6D 7074 0000 0000
Value(dec):
1953525167
Value(printable):
.mpt....
Mnemonic : FirstUsableLBA
Byte Offset : 552
Byte Length : 8
Contents : The first usable logical block that may be used by a partition described by a GIUD partition entry.
Value(hex):
2200 0000 0000 0000
Value(dec):
34
Value(printable):
".......
Mnemonic : LastUsableLBA
Byte Offset : 560
Byte Length : 8
Contents : The last usable logical block taht may be used by a partition described by a GUID Partition Entry
Value(hex):
8E6D 7074 0000 0000
Value(dec):
1953525134
Value(printable):
.mpt....
Mnemonic : DiskGUID
Byte Offset : 568
Byte Length : 16
Contents : GUID that can be used to uniquely identify disk
Value(hex):
F90C 8DCB 08CE B44A 94CA 8028 242B F9AF
Value(dec):
233908656188497356924310004086908718329
Value(printable):
.......J...($+..
Mnemonic : PartitionEntryLBA
Byte Offset : 584
Byte Length : 8
Contents : The starting LBA of the GUID partition entry array
Value(hex):
0200 0000 0000 0000
Value(dec):
2
Value(printable):
........
Mnemonic : NumberOfPartitionEntries
Byte Offset : 592
Byte Length : 4
Contents : The number of Partition Entries in the GUID Partition Entry array
Value(hex):
8000 0000
Value(dec):
128
Value(printable):
....
Mnemonic : SizeOfPartitionEntry
Byte Offset : 596
Byte Length : 4
Contents : The size, in bytes, of each the GUID partition entry structures in the GUID partition entry array.
Value(hex):
8000 0000
Value(dec):
128
Value(printable):
....
Mnemonic : PartitionEntryArrayCRC32
Byte Offset : 600
Byte Length : 4
Contents : The CRC32 of the GUID Partition Entry array.
Value(hex):
6511 646D
Value(dec):
1835274597
Value(printable):
e.dm
Mnemonic : Reserved
Byte Offset : 604
Byte Length : 420
Contents : The rest of the block is reserved by UEFI and must be zero.
Value(hex):
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000
Value(dec):
0
Value(printable):
....................................................................................................................................................................................................................................................................................................................................................................................................................................
######### PARTITION 0 #########
Mnemonic : ParittionTypeGUID
Byte Offset : 1024
Byte Length : 16
Contents : Unique ID that defines the purpose and type of this Partition. A value of zero defines that this partition entry is not being used.
Value(hex):
2873 2AC1 1FF8 D211 BA4B 00A0 C93E C93B
Value(dec):
79469376903649587806637572938982388520
Value(printable):
(s*......K...>.;
Mnemonic : UniquePartitionGUID
Byte Offset : 1040
Byte Length : 16
Contents : GUID that is unique for every partition entry.
Value(hex):
B039 4BDA D9B1 E646 9D03 E7B6 8AAE 34C6
Value(dec):
263460682731420166950932754880545896880
Value(printable):
.9K....F......4.
Mnemonic : StartingLBA
Byte Offset : 1056
Byte Length : 8
Contents : Starting LBA of the partition.
Value(hex):
0008 0000 0000 0000
Value(dec):
2048
Value(printable):
........
Mnemonic : EndingLBA
Byte Offset : 1064
Byte Length : 8
Contents : Ending LBA of the partition.
Value(hex):
FF07 1000 0000 0000
Value(dec):
1050623
Value(printable):
........
Mnemonic : Attributes
Byte Offset : 1072
Byte Length : 8
Contents : Attribute bits, all bits reserved by UEFI
Value(hex):
0000 0000 0000 0000
Value(dec):
0
Value(printable):
........
Mnemonic : PartitionName
Byte Offset : 1080
Byte Length : 72
Contents : Null-terminated string containing a human-readable name of the partition.
Value(hex):
4500 4600 4900 2000 5300 7900 7300 7400
6500 6D00 2000 5000 6100 7200 7400 6900
7400 6900 6F00 6E00 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000
Value(dec):
3585238522024748218044576446155470775369328105970666872804392218938210235089844814216566276165
Value(printable):
E.F.I...S.y.s.t.e.m...P.a.r.t.i.t.i.o.n.................................
Mnemonic : Reserved
Byte Offset : 1152
Byte Length : 0
Contents : The rest of the GPT Partition Entry, if any, is reserved by UEFI and must be zero.
Value: (zero-length)
######### PARTITION 1 #########
Mnemonic : ParittionTypeGUID
Byte Offset : 1152
Byte Length : 16
Contents : Unique ID that defines the purpose and type of this Partition. A value of zero defines that this partition entry is not being used.
Value(hex):
AF3D C60F 8384 7247 8E79 3D69 D847 7DE4
Value(dec):
303714477343212879362499475557470059951
Value(printable):
.=....rG.y=i.G}.
Mnemonic : UniquePartitionGUID
Byte Offset : 1168
Byte Length : 16
Contents : GUID that is unique for every partition entry.
Value(hex):
78CB 2E3A CF06 D34D A693 6A24 FC8F C50A
Value(dec):
14318082800321099301430181098022685560
Value(printable):
x..:...M..j$....
Mnemonic : StartingLBA
Byte Offset : 1184
Byte Length : 8
Contents : Starting LBA of the partition.
Value(hex):
0008 1000 0000 0000
Value(dec):
1050624
Value(printable):
........
Mnemonic : EndingLBA
Byte Offset : 1192
Byte Length : 8
Contents : Ending LBA of the partition.
Value(hex):
FF57 7373 0000 0000
Value(dec):
1936939007
Value(printable):
.Wss....
Mnemonic : Attributes
Byte Offset : 1200
Byte Length : 8
Contents : Attribute bits, all bits reserved by UEFI
Value(hex):
0000 0000 0000 0000
Value(dec):
0
Value(printable):
........
Mnemonic : PartitionName
Byte Offset : 1208
Byte Length : 72
Contents : Null-terminated string containing a human-readable name of the partition.
Value(hex):
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000
Value(dec):
0
Value(printable):
........................................................................
Mnemonic : Reserved
Byte Offset : 1280
Byte Length : 0
Contents : The rest of the GPT Partition Entry, if any, is reserved by UEFI and must be zero.
Value: (zero-length)
######### PARTITION 2 #########
Mnemonic : ParittionTypeGUID
Byte Offset : 1280
Byte Length : 16
Contents : Unique ID that defines the purpose and type of this Partition. A value of zero defines that this partition entry is not being used.
Value(hex):
6DFD 5706 ABA4 C443 84E5 0933 C84B 4F4F
Value(dec):
105420740160981081765247115721172319597
Value(printable):
m.W....C...3.KOO
Mnemonic : UniquePartitionGUID
Byte Offset : 1296
Byte Length : 16
Contents : GUID that is unique for every partition entry.
Value(hex):
322F B9AE 5B11 9747 9F16 4F05 5F87 C941
Value(dec):
87446217048200000941811215830080892722
Value(printable):
2/..[..G..O._..A
Mnemonic : StartingLBA
Byte Offset : 1312
Byte Length : 8
Contents : Starting LBA of the partition.
Value(hex):
0058 7373 0000 0000
Value(dec):
1936939008
Value(printable):
.Xss....
Mnemonic : EndingLBA
Byte Offset : 1320
Byte Length : 8
Contents : Ending LBA of the partition.
Value(hex):
FF67 7074 0000 0000
Value(dec):
1953523711
Value(printable):
.gpt....
Mnemonic : Attributes
Byte Offset : 1328
Byte Length : 8
Contents : Attribute bits, all bits reserved by UEFI
Value(hex):
0000 0000 0000 0080
Value(dec):
9223372036854775808
Value(printable):
........
Mnemonic : PartitionName
Byte Offset : 1336
Byte Length : 72
Contents : Null-terminated string containing a human-readable name of the partition.
Value(hex):
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000
Value(dec):
0
Value(printable):
........................................................................
Mnemonic : Reserved
Byte Offset : 1408
Byte Length : 0
Contents : The rest of the GPT Partition Entry, if any, is reserved by UEFI and must be zero.
Value: (zero-length)
[Finished in 0.1s]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment