Not able to increase data partition size

Hello Mender-Team,

We have integrated mender version 1.14.1 in stm32mp157c based custom board.

We are using 16GB eMMC storage for booting the image.

I’ve configured the local.conf as below for mender:



IMAGE_FSTYPES_append = " gptimg.gz"

IMAGE_BOOT_FILES = "stm32mp1-boot.scr;boot.scr"

# Kernel + Rootfs part-A
# Kernel + Rootfs part-B
# use eMMC as storage device

# Use mmcblk2 (i.e. eMMC) as storage device.
MENDER_STORAGE_DEVICE = "/dev/mmcblk2"

Now, we want to utilize the whole 16GB eMMC storage. So, we tried to increase the size of data partition through “MENDER_DATA_PART_SIZE_MB” configuration.
To increase the size of /data partition, we have to increase the MENDER_STORAGE_TOTAL_SIZE_MB" configuration.

But as our requirement is to keep the flashing image time not more than 3 minutes. So, we have configured the “MENDER_STORAGE_TOTAL_SIZE_MB” to 1024 (1GB).

And if we increase the value of “MENDER_STORAGE_TOTAL_SIZE_MB” to 2048 or 4096, the flashing image time is also increasing that we don’t want.

We have also tried to integrate the mender-growfs-data feature which enables dynamic resizing of the data filesystem through systemd-growfs but as we are using mender version 1.14.1,
we are not able to integrate this feature in the yocto. It is showing the below error.

mender-growfs-data from MENDER_FEATURES_ENABLE or DISTRO_FEATURES is not a valid Mender feature.

Also, we are using the sysvinit service and not systemd.

So, is there any way to increase persistent data partition without large image file?

Any particular reason why you are staying on version 1.14.1? It sounds like your problem is basically caused by that - not being able to use the recent features.


Hi Josef,

Thanks for your support.
Actually, the latest ‘meta-mender-community’ GitHub repo doesn’t provide support for STM32MP1 platform. Only thud branch of ‘meta-mender-community’ provide support of STM32MP1 platform. So, we used that old release of mender.

Pratik Manvar

Hi @manvar-pratik,

Support for the STM32MP has been merged on kirkstone just a few days ago, and the dunfell integration is discussed here, seemingly also relatievly close to being finished. So by all means in terms of security (not shipping outdated/vulnerable software) and maintainability, I would strongly advise to upgrade. Plus, you can use mender-growfs-data then :slight_smile: