Full Version: Partition Table
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I was looking into a way to automate resizing the /data and /system partitions on sdcards written from the images provided. But every image I look at, the partition table is in weird layout with overlapping partitions:

Disk /dev/sdb: 59.6 GiB, 64021856256 bytes, 125042688 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sdb1       5251072 62943230 57692159 27.5G  b W95 FAT32
/dev/sdb2  *      73728   139263    65536   32M  6 FAT16
/dev/sdb3             1  5251072  5251072  2.5G 85 Linux extended
/dev/sdb5        139264   172031    32768   16M 83 Linux
/dev/sdb6        172032   204799    32768   16M 83 Linux
/dev/sdb7        204800  3350527  3145728  1.5G 83 Linux
/dev/sdb8       3350528  3383295    32768   16M 83 Linux
/dev/sdb9       3383296  3448831    65536   32M 83 Linux
/dev/sdb10      3448832  5021695  1572864  768M 83 Linux
/dev/sdb11      5021696  5054463    32768   16M 83 Linux
/dev/sdb12      5054464  5087231    32768   16M 83 Linux
/dev/sdb13      5087232  5251071   163840   80M 83 Linux

This is a 32GB image ( written to a 64GB sdcard.

As you can see, there is a extended partition (sdb3 here) starting right at the beginning of the medium, it contains most of the remaining partitions (logical), but there is a large primary partition tacked on to the end of that (sdb1 here) and the second primary partition (sdb2 here) is actually sitting INSIDE the extended partition... this breaks any tool people might want to use to try to resize /data and /system...
On the plus side, while the layout breaks using any normal partitioning tool, the large primary tacked on at the end is the /data partition and so should be easy to resize to the full disk/card...