Hi everyone,
I built a yocto image with mender integration for RPI3. In yocto image configuration file "local.conf" , if I specify only this parameter MENDER_BOOT_PART_SIZE_MB = "40" and when my image boots on the PI, I end up with 5 partitions. The boot partition is exactly as I specified 40 Mbytes, 2 RootFS partitions with 392Mbytes, one extended partition with 128Mbytes and one data partition with 128Mbytes.
So I have the following partitions:
/dev/mmcblk0p1 -> Boot Partition
/dev/mmcblk0p2 -> RootFS1
/dev/mmcblk0p3 -> RootFS2
/dev/mmcblk0p4 -> Extended partition
/dev/mmcblk0p5 -> Data partition (128 Mbyts)
In each RootFS there is data folder (/data) where /dev/mmcblk0p5 is always mounted to /data according to the current active RootFS. I want to know please, how can I change the size of /dev/mmcblk0p5 and extend its size to fill the full size of the SD card ?
I know I can set the variables MENDER_STORAGE_TOTAL_SIZE_MB and MENDER_DATA_PART_SIZE_MB in local.conf but I don not want to do that as I will end up with a very large image, besides this is considered to be size fixed to a specific SD card size, if the card is changed, then the image won't fit anymore. I need to have small image which can be extend its /data (or its mmcblk0p5) to fill the remaining size of the SD card.
Last thing, I use fdisk when the image loads to change the partition table and their correspondin sizes.
Thanks,
Ahmed