Skip to content

Instantly share code, notes, and snippets.

@bradfitz
Created April 18, 2018 18:26
Show Gist options
  • Save bradfitz/fb9ca7b5ba71b3db27bdb075e05bda0d to your computer and use it in GitHub Desktop.
Save bradfitz/fb9ca7b5ba71b3db27bdb075e05bda0d to your computer and use it in GitHub Desktop.
MBR before
(*mbr.Table)(0xc000088360)({
Partitions: ([]*mbr.Partition) (len=4 cap=4) {
(*mbr.Partition)(0xc000092160)({
Bootable: (bool) true,
Type: (mbr.Type) 131,
Start: (uint32) 2048,
Size: (uint32) 497664,
StartCylinder: (uint8) 0,
StartHead: (uint8) 32,
StartSector: (uint8) 33,
EndCylinder: (uint8) 31,
EndHead: (uint8) 26,
EndSector: (uint8) 59
}),
(*mbr.Partition)(0xc000092180)({
Bootable: (bool) false,
Type: (mbr.Type) 5,
Start: (uint32) 501758,
Size: (uint32) 838356994,
StartCylinder: (uint8) 31,
StartHead: (uint8) 59,
StartSector: (uint8) 27,
EndCylinder: (uint8) 255,
EndHead: (uint8) 254,
EndSector: (uint8) 255
}),
(*mbr.Partition)(0xc0000921a0)({
Bootable: (bool) false,
Type: (mbr.Type) 0,
Start: (uint32) 0,
Size: (uint32) 0,
StartCylinder: (uint8) 0,
StartHead: (uint8) 0,
StartSector: (uint8) 0,
EndCylinder: (uint8) 0,
EndHead: (uint8) 0,
EndSector: (uint8) 0
}),
(*mbr.Partition)(0xc0000921c0)({
Bootable: (bool) false,
Type: (mbr.Type) 0,
Start: (uint32) 0,
Size: (uint32) 0,
StartCylinder: (uint8) 0,
StartHead: (uint8) 0,
StartSector: (uint8) 0,
EndCylinder: (uint8) 0,
EndHead: (uint8) 0,
EndSector: (uint8) 0
})
},
LogicalSectorSize: (int) 512,
PhysicalSectorSize: (int) 512,
initialized: (bool) false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment