My question is related to this other one but not a duplicate, so please try to understand before marking as duplicate. I am not able to comment on this other one.
In this other one, I understand the answer and agree with it. However, I have to use DOS MBR and not GPT, because of a limitation in the i.MX6UL processor. How can I align my logical partitions in the extended partition to 8 MiB?
Some detailed example with numbers would be much appreciated. I have the following partitioning scheme on a 16 GiB eMMC:
p1 primary 128 MiB p2 primary 128 MiB p3 primary 16 MiB p4 extended p5 logical 256 MiB p6 logical 256 MiB p7 logical 256 MiB p8 logical whatever remains I need to skip the first 4 MiB for U-Boot. To align to 8 MiB, I can start my first primary partition p1 at offset 8 MiB or block number 16,384. The calculation is straight forward for p1, p2, and p3.
However, given that the extended partition contains one EBR before every logical partition, I don't know how to take that into account. The EBR size is 512 bytes, however, https://en.wikipedia.org/wiki/Extended_boot_record says that logical partitions are aligned at 1-MiB boundary.
Here is what I have so far, but I would appreciate if someone can verify and explain if this is correct or not:
Partition Start Block End Block Partition Type --------- ----------- --------- -------------- 1 16,384 278,527 primary 2 278,528 540,671 primary 3 540,672 573,439 primary 4 573,440 29,884,415 extended 5 589,824 1,114,111 logical 6 1,114,112 1,638,399 logical 7 1,638,400 2,146,303 logical 8 2,146,304 29,884,415 logical