[parted-devel] map gpt partitions to msdos primary entries

Olaf Hering olh at suse.de
Mon Apr 28 11:59:37 UTC 2008


On Mon, 2007 May 14, Olaf Hering wrote:


Was this patch already applied to parted?
Or will parted strictly follow the EFI spec and force a "fixed" msdos
partition table.

Btw, I dont have time to work on this feature anymore.



> This patch adds a new 'set X map_gpt_to_msdos Y' function.
> Using it will break the EFI spec (I cant verify it because the EFI spec
> is not free).
> 
> 
> On Apple systems with Intel hardware it is sometimes required to install
> EFI unaware systems, such as Windows, grub or lilo. With this change,
> parted will not destroy the existing primary partitions.
> But, parted does some checks to make sure the LBA mapping in the
> individual partitions match the existing gpt partitions. If they differ,
> the msdos entry will be removed.
> 
> One issue remains: the msdos partition types. gpt types can not be
> mapped 1 to 1 to msdos partition types. I added a simple mapping to
> (hopefully) let grub recognize the partition as readable.
> 
> 
> This patch needes testing on Apple systems.
> I do not have any DOS compatbile hardware.
> 
> Example usage:
> 
> sudo parted -s /dev/sdb mklabel gpt
> sudo parted -s /dev/sdb mkpart primary 17k 1G
> sudo parted -s /dev/sdb mkpart primary 2G 3G
> sudo parted -s /dev/sdb set 1 map_gpt_to_msdos 2
> sudo parted -s /dev/sdb set 1 boot on
> sudo parted -s /dev/sdb set 1 boot off
> 





More information about the parted-devel mailing list