Reputation: 71
To read the MBR partition table we use an offset of 0x1be
, similarly what is the offset for reading the GP(artition)T(able) entries (ie, number of partitions and their sizes).
I am writing a C program using "gdisk" to create the partitions, I need to write the filesystems onto these partitions. So for this I need to read the GPT header to get the number of partitions and their allocated sizes.
Upvotes: 4
Views: 3594