Recently I've start to implement some script to run using Linux "parted" to change the partition structure on our SoC system. When doing that I've encounter with some problems, The partitions on our device where not aligned.
The primary and extended partitions are aligned, but the logical partitions not.
The person that made the script for creating the image added offset of 63 sectors for each logical partition in the start sector arguments. I've try to figure why and I've read that each logical partition has "MBR" (EBR is the right name I think) at the beginning that store his value and points to the next partition and all of this structure is basically a linked list of partitions. So I'm guessing that the 63 sectors offset is to leave space for the EBR (We do the same thing in the first partition, its starts with 2048 sectors offset to leave space for the MBR).
first question - The offset for each logical partition is necessary? If not great. no need to read the second question. Q2: This 63 sectors offset cause the misalignment in the logical partitions. My first thought was to change this offset to 2048 sectors, but it will create "holes" and I'm not sure if is the right thing to do?