Fix num_parts.  As previously noted, the num_parts is actually the attribute value denoting the total possible number of entries in the partition table, NOT the number of entries currently in use.  Actually, if you change this number to the number used, if you try partitioning the disk afterwards with fdisk, you won't be able to use whatever space is left over because you don't have enough entries to make a new partition.
Fix num_parts.  As previously noted, the num_parts is actually the attribute value denoting the total possible number of entries in the partition table, NOT the number of entries currently in use.  Actually, if you change this number to the number used, if you try partitioning the disk afterwards with fdisk, you won't be able to use whatever space is left over because you don't have enough entries to make a new partition.

Quyzi/gpt