# Mender-Convert specific RootFS size

**URL:** <https://hub.mender.io/t/mender-convert-specific-rootfs-size/1732>\
**Category:** General Discussions\
**Tags:** raspberry-pi-3, raspbian, mender-convert\
**Created:** [April 1, 2020, 3:06pm UTC](https://hub.mender.io/t/mender-convert-specific-rootfs-size/1732 "2020-04-01T15:06:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 1, 2020, 5:36pm UTC](https://hub.mender.io/t/mender-convert-specific-rootfs-size/1732/5 "2020-04-01T17:36:36Z")

</div>

> Is it possible to fix the RootFS size to 8192 MB (8GB) ?

Yes, increase the `MENDER_DATA_PART_SIZE_MB`.

Below should explain why (copied from [Raspberry Pi 3 Model B/B+ Raspbian - #23 by eystein](https://hub.mender.io/t/raspberry-pi-3-model-b-b-raspbian/140/23))

The SD card layout will be the following using the default  
arguments (this with the default 8GB size):

| Part | Type | Purpose | Size | Configure size |
| --- | --- | --- | --- | --- |
| mmcblk0p1 | vfat | Store the bootloader | 44MB | `MENDER_BOOT_PART_SIZE_MB` |
| mmcblk0p2 | ext4 | Store the root file system and kernel (active) | 3908MB | `MENDER_STORAGE_TOTAL_SIZE_MB`[1](https://hub.mender.io/t/raspberry-pi-3-model-b-b-raspbian/140/23#footnote1) |
| mmcblk0p3 | ext4 | Store the root file system and kernel (inactive) | 3908MB | `MENDER_STORAGE_TOTAL_SIZE_MB`[1](https://hub.mender.io/t/raspberry-pi-3-model-b-b-raspbian/140/23#footnote1) |
| mmcblk0p4 | ext4 | Store persistent data, preserved during Mender updates. | 128MB | `MENDER_DATA_PART_SIZE_MB`[2](https://hub.mender.io/t/raspberry-pi-3-model-b-b-raspbian/140/23#footnote2) |

1. The rootfs partition size is calculated using the  
following formula:

```auto
 (storage-total-size-mb - data-part-size-mb - boot-part-size) / 2

```

---

_[View the full topic](https://hub.mender.io/t/mender-convert-specific-rootfs-size/1732)._
