# How should I set the partition sizes for a 32GB SD card on Raspbian?

**URL:** <https://hub.mender.io/t/how-should-i-set-the-partition-sizes-for-a-32gb-sd-card-on-raspbian/5807>\
**Category:** Debian family\
**Tags:** raspberry-pi-4\
**Created:** [May 3, 2023, 8:23pm UTC](https://hub.mender.io/t/how-should-i-set-the-partition-sizes-for-a-32gb-sd-card-on-raspbian/5807 "2023-05-03T20:23:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bp1313](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bp1313](https://hub.mender.io/u/bp1313)\
**Post date:** [May 3, 2023, 8:23pm UTC](https://hub.mender.io/t/how-should-i-set-the-partition-sizes-for-a-32gb-sd-card-on-raspbian/5807/1 "2023-05-03T20:23:04Z")

</div>

Hi all,

I am setting up a golden image to be used with mender-convert. I’m a little confused by these different options:  
MENDER\_STORAGE\_TOTAL\_SIZE\_MB  
MENDER\_BOOT\_PART\_SIZE\_MB  
MENDER\_DATA\_PART\_SIZE\_MB

I installed a few packages on Raspian Bullseye 32bit but they definitely took 3-5gb of space. My SD card is 32GB.

I used the “dd” command which resulted in a ~32GB image.

How should I set the above settings? I’d like 3-4GB extra incase we decide to install more packages down the line. Otherwise I’ll want an ample amount of persistent data.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [May 4, 2023, 8:16am UTC](https://hub.mender.io/t/how-should-i-set-the-partition-sizes-for-a-32gb-sd-card-on-raspbian/5807/2 "2023-05-04T08:16:13Z")

</div>

Hi @bp1313,

Wow, 3-5GB of actual payload on a Raspbian? That definitely feels bloated. As a rule of thumb, I would suggest something like this:

- boot partition: 128-256MB
- root partitions: 2x current size
- data partition: remaining.

If the root filesystem takes up 4GB by now, then I would for example make partitions A and B 8GB each.

Note: this is a personal opinion, your use case and requirements may differ.

Greetz,  
Josef
