# Image Size changed in FOTA process of BBB

**URL:** <https://hub.mender.io/t/image-size-changed-in-fota-process-of-bbb/1185>\
**Category:** General Discussions\
**Created:** [October 25, 2019, 9:49am UTC](https://hub.mender.io/t/image-size-changed-in-fota-process-of-bbb/1185 "2019-10-25T09:49:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil9860](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anil9860/32/403_2.png) [@Anil9860](https://hub.mender.io/u/Anil9860)\
**Post date:** [October 25, 2019, 9:49am UTC](https://hub.mender.io/t/image-size-changed-in-fota-process-of-bbb/1185/1 "2019-10-25T09:49:22Z")

</div>

Hi all,

if i have done the processing and loaded the file through mender steps. loaded that image into the BBB. so at starting time image size was 4GB and its running in the client(BBB).  
While doing FOTA process my image size is 16GB so how mender or partition of client will handle a new image.  
will it work or i need to do any changes?

---

<div class="post-metadata">

**Author:** ![Anil9860](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anil9860/32/403_2.png) [@Anil9860](https://hub.mender.io/u/Anil9860)\
**Post date:** [October 25, 2019, 10:06am UTC](https://hub.mender.io/t/image-size-changed-in-fota-process-of-bbb/1185/2 "2019-10-25T10:06:24Z")

</div>

```
jithu@ibot032:~/mender-convert$ MENDER_ARTIFACT_NAME=Nestle_Ver_Gold_1.0.0 ./docker-mender-convert --disk-image input/img_text.IMG --config configs/beaglebone_black_debian_sdcard_config --overlay rootfs_overlay_demo/
Running mender-convert --disk-image input/img_text.IMG --config configs/beaglebone_black_debian_sdcard_config --overlay rootfs_overlay_demo/
Running mender-convert-extract: --disk-image input/img_text.IMG --config configs/beaglebone_black_debian_sdcard_config --overlay rootfs_overlay_demo/
2019-10-25 09:56:05 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2019-10-25 09:56:05 [INFO] [mender-convert-extract] Using configuration file: configs/beaglebone_black_debian_sdcard_config
2019-10-25 09:56:05 [INFO] [mender-convert-extract] Validating disk image
2019-10-25 09:56:05 [INFO] [mender-convert-extract] Disk parsed succesfully
2019-10-25 09:56:05 [INFO] [mender-convert-extract] NUMBER OF PARTS: 1 TYPE: dos
2019-10-25 09:56:05 [INFO] [mender-convert-extract] PART 1: SIZE: 14.9G TYPE: 0x83
2019-10-25 09:56:05 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2019-10-25 10:04:02 [INFO] [mender-convert-extract] Generating boot partition (required, does not exist in original image)
2019-10-25 10:04:03 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
Running mender-convert-modify: --disk-image input/img_text.IMG --config configs/beaglebone_black_debian_sdcard_config --overlay rootfs_overlay_demo/
2019-10-25 10:04:03 [INFO] [mender-convert-modify] Using configuration file: configs/beaglebone_black_debian_sdcard_config
2019-10-25 10:04:04 [INFO] [mender-convert-modify] Installing Mender client and related files
2019-10-25 10:04:13 [INFO] [mender-convert-modify] Installing a custom /etc/fstab (see work/convert.log for more info)
2019-10-25 10:04:13 [INFO] [mender-convert-modify] Performing platform specific modifications (if any)
2019-10-25 10:04:13 [INFO] [mender-convert-modify] Applying rootfs overlay: rootfs_overlay_demo/
mender-convert-modify has finished. Cleaning...
Running mender-convert-package: --disk-image input/img_text.IMG --config configs/beaglebone_black_debian_sdcard_config --overlay rootfs_overlay_demo/
2019-10-25 10:04:14 [INFO] [mender-convert-package] Using configuration file: configs/mender_convert_config
2019-10-25 10:04:14 [INFO] [mender-convert-package] Using configuration file: configs/beaglebone_black_debian_sdcard_config
2019-10-25 10:04:22 [WARN] [mender-convert-package] The calculated rootfs partition size 4000 MiB is too small.
2019-10-25 10:04:22 [WARN] [mender-convert-package] The actual rootfs image size is 5418 MiB
2019-10-25 10:04:22 [FATAL] [mender-convert-package] You can try adjusting the MENDER_STORAGE_TOTAL_SIZE_MB variable to increase available space
mender-convert-package has finished. Cleaning...

```

this error i am getting.

---

<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:** [October 25, 2019, 11:00am UTC](https://hub.mender.io/t/image-size-changed-in-fota-process-of-bbb/1185/3 "2019-10-25T11:00:22Z")

</div>

Hi @Anil9860 the storage size is declared in the configs/beaglebone\* files using the variable name MENDER\_STORAGE\_TOTAL\_SIZE\_MB. For SDCard it defaults to 8192MB and for eMMC it is 3648MB.

Note that eMMC size is limited by your hardware. I’m not sure if there are options of different eMMC sizes or if they are all 3648 which is what my board has.

You can edit those files directly to change the amount of space. Note that number is the total amount of space, accounting for all the partitions. See [https://docs.mender.io/2.1/devices/yocto-project/partition-configuration](https://docs.mender.io/2.1/devices/yocto-project/partition-configuration) for more details.

Also, you cannot change the partition size in an OTA update. If you need to change the partition sizes, you need to reprovision your board using SDIMG file directly.

HTH,  
Drew

---

<div class="post-metadata">

**Author:** ![Anil9860](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anil9860/32/403_2.png) [@Anil9860](https://hub.mender.io/u/Anil9860)\
**Post date:** [October 25, 2019, 11:31am UTC](https://hub.mender.io/t/image-size-changed-in-fota-process-of-bbb/1185/4 "2019-10-25T11:31:54Z")

</div>

hi @drewmoseley,

1. I changed the MENDER\_STORAGE\_TOTAL\_SIZE\_MB=“16384” like this, and after that i followed the steps of artifact and took the .mender image and i am trying to deploy by demo server bu getting an error

can you tell me why its happening?

1. I can’t change the partition, and how to do the re-provision board using SDIMG file i don’t know.  
can you tell me how to do this?

Anil.

---

<div class="post-metadata">

**Author:** ![Anil9860](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anil9860/32/403_2.png) [@Anil9860](https://hub.mender.io/u/Anil9860)\
**Post date:** [October 25, 2019, 1:29pm UTC](https://hub.mender.io/t/image-size-changed-in-fota-process-of-bbb/1185/5 "2019-10-25T13:29:10Z")

</div>

yes i have done successfully after changing the MENDER\_STORAGE\_TOTAL\_SIZE\_MB=“16384” on both side. means firstly i changed at client side and then i deployed the FOTA file from demo server. FOTA successfully done.

Thanks @drewmoseley
