[Gptfdisk-general] [PATCH] Add partition type GUIDs for encrypted Linux partitions
Brought to you by:
srs5694
From: Daniel M. <nii...@ri...> - 2015-05-30 16:41:54
|
I saw them missing in gptfdisk. Here are the resources I took these types from: * https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs * https://en.wikipedia.org/wiki/Partition_type#List_of_partition_IDs I think they are reliable since they link to the previous discussion on the dm-crypt mailing list. diff -ruN gptfdisk-1.0.0.original/parttypes.cc gptfdisk-1.0.0/parttypes.cc --- gptfdisk-1.0.0.original/parttypes.cc 2015-03-17 23:50:38.000000000 +0100 +++ gptfdisk-1.0.0/parttypes.cc 2015-05-30 17:06:36.976927570 +0200 @@ -203,6 +203,10 @@ AddType(0xc001, "75894C1E-3AEB-11D3-B7C1-7B03A0000000", "HP-UX data"); AddType(0xc002, "E2A1E728-32E3-11D6-A682-7B03A0000000", "HP-UX service"); + // Encrypted Linux partitions + AddType(0xe800, "CA7D7CCB-63ED-4C53-861C-1742536059CC", "Linux LUKS"); + AddType(0xe801, "7FFEC5C9-2D00-49B7-8941-3EA10A5586B7", "Linux dm-crypt"); + // See http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec AddType(0xea00, "BC13C2FF-59E6-4262-A352-B275FD6F7172", "Freedesktop $BOOT"); -- Daniel Milewski GPG key ID: 8D43A4A1 |