Line | |
---|
1 | """ |
---|
2 | Module containing a GUID_MAP, mapping GPT UUID to a hexcode (inspired in gdisk) |
---|
3 | """ |
---|
4 | |
---|
5 | # Maps GUID to hex code. |
---|
6 | # See https://sourceforge.net/p/gptfdisk/code/ci/master/tree/parttypes.cc#l75 |
---|
7 | GUID_MAP = { |
---|
8 | # Windows |
---|
9 | 'EBD0A0A2-B9E5-4433-87C0-68B6B72699C7': 0x0700, # Microsoft basic data (NTFS) |
---|
10 | 'E3C9E316-0B5C-4DB8-817D-F92DF00215AE': 0x0C01, # Microsoft reserved |
---|
11 | 'DE94BBA4-06D1-4D40-A16A-BFD50179D6AC': 0x2700, # Windows recovery |
---|
12 | |
---|
13 | # EFI and boot related |
---|
14 | 'C12A7328-F81F-11D2-BA4B-00A0C93EC93B': 0xEF00, # EFI System Partition |
---|
15 | '21686148-6449-6E6F-744E-656564454649': 0xEF02, # BIOS boot partition (grub) |
---|
16 | |
---|
17 | # Linux |
---|
18 | '0657FD6D-A4AB-43C4-84E5-0933C84B4F4F': 0x8200, # Linux swap |
---|
19 | '0FC63DAF-8483-4772-8E79-3D69D8477DE4': 0x8300, # Linux filesystem |
---|
20 | 'E6D6D379-F507-44C2-A23C-238F2A3DF928': 0x8E00, # Linux LVM |
---|
21 | |
---|
22 | # Apple |
---|
23 | '426F6F74-0000-11AA-AA11-00306543ECAC': 0xAB00, # Recovery HD |
---|
24 | '48465300-0000-11AA-AA11-00306543ECAC': 0xAF00, # HFS/HFS+ |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.