

The BCD bootloader configuration is updated.GPT metadata and partition table are applied to the disk (the MBR partition table is converted to GPT without losing data on existing partitions).UEFI boot files are copied to the EFI partition.If there is no EFI (ESP) system partition, it is created using free space from one of the partitions (if there is not enough free space, an error message will appear “ cannot find room for the EFI system partition”).

The logic of Mbr2gpt when converting an MBR disk to a GPT is as follows: The BCD configuration must have a boot record pointing to a Windows partition.The MBR table should contain no more than 3 partitions, one of which is active (additional and logical partitions should be missing).There is free space on the disk for placing the primary and secondary GPT tables at the beginning and end of the disk.The MBR2GPT documentation says, that the following conditions must be met to convert a disk partition table to GPT: But to convert a system disk, you had to completely clean up the disk, create GPT partition table and new partitions on it, and then perform a clean install of Windows 10. Earlier, a third-party tool gptgen, could be used to convert a non-system disk from MBR to GPT without losing existing partitions.
