# ERROR: Actual rootfs size (21223 kB) is larger than allowed size 16384 kB

**URL:** <https://hub.mender.io/t/error-actual-rootfs-size-21223-kb-is-larger-than-allowed-size-16384-kb/2270>\
**Category:** General Discussions\
**Created:** [July 30, 2020, 10:54am UTC](https://hub.mender.io/t/error-actual-rootfs-size-21223-kb-is-larger-than-allowed-size-16384-kb/2270 "2020-07-30T10:54:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravipathak](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@ravipathak](https://hub.mender.io/u/ravipathak)\
**Post date:** [July 30, 2020, 10:54am UTC](https://hub.mender.io/t/error-actual-rootfs-size-21223-kb-is-larger-than-allowed-size-16384-kb/2270/1 "2020-07-30T10:54:33Z")

</div>

Hi, The build fails with the following message:

| + BUILDDIR=/home/ravi/mender\_build\_thud/mender-atmel/build wic create /home/ravi/mender\_build\_thud/mender-atmel/build/tmp/work/sama5d3\_xplained\_sd-poky-linux-gnueabi/core-image-base/1.0-r0/mender-sdimg.wks --vars /home/ravi/mender\_build\_thud/mender-atmel/build/tmp/sysroots/sama5d3-xplained-sd/imgdata/ -e core-image-base -o /home/ravi/mender\_build\_thud/mender-atmel/build/tmp/work/sama5d3\_xplained\_sd-poky-linux-gnueabi/core-image-base/1.0-r0/deploy-core-image-base-image-complete/core-image-base-sama5d3-xplained-sd-20200730093849-sdimg/ --no-fstab-update  
| INFO: Creating image(s)…  
|  
| WARNING: overhead-factor was specified, but size was not, so bitbake variables will be used for the size. In this case both IMAGE\_OVERHEAD\_FACTOR and --overhead-factor will be applied  
| ERROR: Actual rootfs size (21223 kB) is larger than allowed size 16384 kB  
|  
| + bb\_exit\_handler  
| + ret=1  
| + echo WARNING: exit code 1 from a shell command.  
| WARNING: exit code 1 from a shell command.  
| + exit 1  
| ERROR: Function failed: do\_image\_sdimg (log file is located at /home/ravi/mender\_build\_thud/mender-atmel/build/tmp/work/sama5d3\_xplained\_sd-poky-linux-gnueabi/core-image-base/1.0-r0/temp/log.do\_image\_sdimg.13547)  
ERROR: Task (/home/ravi/mender\_build\_thud/mender-atmel/build/…/sources/poky/meta/recipes-core/images/core-image-base.bb:do\_image\_sdimg) failed with exit code ‘1’  
NOTE: Tasks Summary: Attempted 4380 tasks of which 5 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:  
/home/ravi/mender\_build\_thud/mender-atmel/build/…/sources/poky/meta/recipes-core/images/core-image-base.bb:do\_image\_sdimg  
Summary: There were 7 WARNING messages shown.  
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [July 30, 2020, 3:12pm UTC](https://hub.mender.io/t/error-actual-rootfs-size-21223-kb-is-larger-than-allowed-size-16384-kb/2270/2 "2020-07-30T15:12:13Z")

</div>

Hi @ravipathak, normally this just means that you need to increase MENDER\_STORAGE\_TOTAL\_SIZE\_MB.

Drew

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [July 31, 2020, 6:02am UTC](https://hub.mender.io/t/error-actual-rootfs-size-21223-kb-is-larger-than-allowed-size-16384-kb/2270/3 "2020-07-31T06:02:52Z")

</div>

Given the size involved, I would suspect that this is due to `MENDER_BOOT_PART_SIZE_MB`, not `MENDER_STORAGE_TOTAL_SIZE_MB` (which only affects the rootfs). Try to raise `MENDER_BOOT_PART_SIZE_MB` to 32 instead.

---

<div class="post-metadata">

**Author:** ![bug.spencor](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@bug.spencor](https://hub.mender.io/u/bug.spencor)\
**Post date:** [April 28, 2022, 9:04pm UTC](https://hub.mender.io/t/error-actual-rootfs-size-21223-kb-is-larger-than-allowed-size-16384-kb/2270/4 "2022-04-28T21:04:10Z")

</div>

@kacf that worked for me. Thanks!
