# Trouble making 16gb image for RPI4 with mender-convert\_2.0.0b1

**URL:** <https://hub.mender.io/t/trouble-making-16gb-image-for-rpi4-with-mender-convert-2-0-0b1/1626>\
**Category:** General Discussions\
**Tags:** mender-convert\
**Created:** [March 10, 2020, 3:50pm UTC](https://hub.mender.io/t/trouble-making-16gb-image-for-rpi4-with-mender-convert-2-0-0b1/1626 "2020-03-10T15:50:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![genedupre](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/genedupre/32/289_2.png) [@genedupre](https://hub.mender.io/u/genedupre)\
**Post date:** [March 10, 2020, 3:50pm UTC](https://hub.mender.io/t/trouble-making-16gb-image-for-rpi4-with-mender-convert-2-0-0b1/1626/1 "2020-03-10T15:50:47Z")

</div>

Hello everyone,  
i have been using the mender-convert 2.0 for my RPI4 for a while now with no problems. but now that i have pi’s with different sd-cards sizes, i wanted to bump up my image from the standaard  
`MENDER_STORAGE_TOTAL_SIZE_MB="8192"`  
to  
`MENDER_STORAGE_TOTAL_SIZE_MB="15258"`  
(this is also the only variable changed from the standaard configs/mender\_convert\_config)

when using the same image to convert to an mender.image and writing it on de sd-card, booting the device, it doens some resizing, reboots, and falls into a kernel panic.

 ![2020_03_10 14_14 Office Lens](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/ef4c35f6f6cabc61b3231daed5c9d2a93a5a4996.jpeg)

when looking back into the sd-card, there seem to be problems with the /boot partitions

> sudo fdisk -l | grep /dev/sdb  
> Disk /dev/sdb: 29.45 GiB, 31609323520 bytes, 61736960 sectors  
> /dev/sdb1 \* 16384 540671 524288 256M c W95 FAT32 (LBA)  
> /dev/sdb2 540672 15482879 14942208 7.1G 83 Linux  
> /dev/sdb3 15482880 30425087 14942208 7.1G 83 Linux  
> /dev/sdb4 30425088 30687231 262144 128M 83 Linux

> lsblk -l | grep sdb  
> sdb 8:16 1 29.4G 0 disk  
> sdb1 8:17 1 256M 0 part  
> sdb2 8:18 1 7.1G 0 part /media/gene/fae989dd-8728-4209-af7d-000cda8ead43  
> sdb3 8:19 1 7.1G 0 part /media/gene/fae989dd-8728-4209-af7d-000cda8ead431  
> sdb4 8:20 1 128M 0 part /media/gene/2b986dc8-3a6f-429a-a6d2-658ceee47eb4

i can still mount the /boot manually, but it raised some eyebrows why it was not doing it automatically.

I Made some pastebin’s in case i forgot to mention something else

Mender-convert\_config  
[https://pastebin.com/u2vH9i4t](https://pastebin.com/u2vH9i4t)  
Mender-convert-commands  
[https://pastebin.com/sapmZtwR](https://pastebin.com/sapmZtwR)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![genedupre](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/genedupre/32/289_2.png) [@genedupre](https://hub.mender.io/u/genedupre)\
**Post date:** [March 11, 2020, 11:03am UTC](https://hub.mender.io/t/trouble-making-16gb-image-for-rpi4-with-mender-convert-2-0-0b1/1626/2 "2020-03-11T11:03:35Z")

</div>

update:

so i got an working RPI4 by removing  
`--config my_mender_convert_conf`  
line inside of my command ↓

> MENDER\_ARTIFACT\_NAME=2020-03-11-raspbian-buster-lite\_raspbian4 ./docker-mender-convert   
> –disk-image input/2020-02-24\_Raspbian-buster-lite-sportoase.img   
> –config configs/raspberrypi4\_config   
> –overlay rootfs\_overlay\_demo/

mender-convert then makes use of the default settings, i however changed the  
MENDER\_STORAGE\_TOTAL\_SIZE\_MB to 15258 there.

i dont know if this has to do with the fact that my ‘my\_mender\_convert\_conf’ was in the /mende-convert and not in the /mender-convert/configs

Cheers Gene

---

<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:** [March 11, 2020, 11:35am UTC](https://hub.mender.io/t/trouble-making-16gb-image-for-rpi4-with-mender-convert-2-0-0b1/1626/3 "2020-03-11T11:35:15Z")

</div>

Can you share the content of `my_mender_convert_conf`. The location of it should not matter much as long as the path is correct when provided to `mender-convert`

---

<div class="post-metadata">

**Author:** ![genedupre](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/genedupre/32/289_2.png) [@genedupre](https://hub.mender.io/u/genedupre)\
**Post date:** [March 11, 2020, 1:10pm UTC](https://hub.mender.io/t/trouble-making-16gb-image-for-rpi4-with-mender-convert-2-0-0b1/1626/4 "2020-03-11T13:10:38Z")

</div>

Hello @mirzak  
the pastebin contains the mender\_convert\_conf, its the same file

Mender-convert\_config  
[https://pastebin.com/u2vH9i4t](https://pastebin.com/u2vH9i4t)

---

<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:** [March 11, 2020, 1:26pm UTC](https://hub.mender.io/t/trouble-making-16gb-image-for-rpi4-with-mender-convert-2-0-0b1/1626/5 "2020-03-11T13:26:48Z")

</div>

The idea with the configuration files is that you would not make a full copy of the original file, and instead it should only contain the variables that you would like to override.

Could you try creating a file `mender_convert_conf` that only contains,

```auto
MENDER_STORAGE_TOTAL_SIZE_MB="15258"

```

And add it again to your `mender-convert` execution.

---

<div class="post-metadata">

**Author:** ![genedupre](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/genedupre/32/289_2.png) [@genedupre](https://hub.mender.io/u/genedupre)\
**Post date:** [March 11, 2020, 1:45pm UTC](https://hub.mender.io/t/trouble-making-16gb-image-for-rpi4-with-mender-convert-2-0-0b1/1626/6 "2020-03-11T13:45:23Z")

</div>

thanks for the heads up, this also makes much more sense
