Finding Partition Type in GPT Partitioning System?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
LyricalRain
Posts: 16
Joined: Thu Jul 01, 2021 3:24 pm

Finding Partition Type in GPT Partitioning System?

Post by LyricalRain »

Is there a way to get the partition's type when using a GPT system, like how you get an ID for the partition type from the MBR?
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: Finding Partition Type in GPT Partitioning System?

Post by Octocontrabass »

Yes: the PartitionTypeGUID field in the partition entry.

The definition of this field can be found in the UEFI specification. There's also a pretty good list of existing GUIDs (and other useful information) in Wikipedia.
LyricalRain
Posts: 16
Joined: Thu Jul 01, 2021 3:24 pm

Re: Finding Partition Type in GPT Partitioning System?

Post by LyricalRain »

Ah, thank you!
Post Reply