Re: [Gptfdisk-general] [PATCH] Fix creating of two 0xEE partitions in hybrid MBR
Brought to you by:
srs5694
From: Rod S. <rod...@ro...> - 2012-06-17 18:28:10
|
On 06/17/2012 01:39 PM, Kirill Elagin wrote: > Imagine, that I want to hybridize two partitions and I don't want to put > 0xEE partition first in the table (it's a flash drive to be used with > Windows). In my particular case the layout is the following: > > Number Start (sector) End (sector) Size Code Name > 1 2048 7243775 3.5 GiB 8E00 Linux LVM > 2 7243776 11438079 2.0 GiB 8300 Linux > filesystem > 3 11438080 15633374 2.0 GiB 0700 Microsoft > basic data > > Original code will make hybridized partitions #1 and #2 in the MBR > partition table, then it will create an 0xEE partition #4, then it will > ask me if I want to cover unused space (sure, I want to cover backup GPT > at the end of the disk), and then it will make partition #4 cover the > end of the disk. So I end up with main GPT structures unprotected and > one empty slot in MBR GPT like this: > > Number Boot Start Sector End Sector Status Code > 1 11438080 15633374 primary 0x0C > 2 7243776 11438079 primary 0x83 > 4 15633375 15633407 primary 0xEE > > Modified code does this: > > Number Boot Start Sector End Sector Status Code > 1 11438080 15633374 primary 0x0C > 2 7243776 11438079 primary 0x83 > 3 1 7243775 primary 0xEE > 4 15633375 15633407 primary 0xEE OK, thanks for the clarification. I'm accepting this patch into the next version of the program. -- Rod Smith rod...@ro... http://www.rodsbooks.com |