# Mender-convert: modules/disk.sh: line 61: $4: unbound variable, when using a /data partition on the golden image

**URL:** <https://hub.mender.io/t/mender-convert-modules-disk-sh-line-61-4-unbound-variable-when-using-a-data-partition-on-the-golden-image/1921>\
**Category:** General Discussions\
**Created:** [May 14, 2020, 8:57pm UTC](https://hub.mender.io/t/mender-convert-modules-disk-sh-line-61-4-unbound-variable-when-using-a-data-partition-on-the-golden-image/1921 "2020-05-14T20:57:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![menderUser5000](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@menderUser5000](https://hub.mender.io/u/menderUser5000)\
**Post date:** [May 14, 2020, 8:57pm UTC](https://hub.mender.io/t/mender-convert-modules-disk-sh-line-61-4-unbound-variable-when-using-a-data-partition-on-the-golden-image/1921/1 "2020-05-14T20:57:04Z")

</div>

Hello,

if I run mender convert on my image I get the error from the title. I used the raspbian minimal image and added a /data partition to it to be able to test my application with the /data path that will be used on the mender image. Other than that I mostly used the standard settings and used the raspberrypi3 conf from mender-convert.

What is the recommended approach to have a /data partition on the golden image before mender convert?

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [May 14, 2020, 9:20pm UTC](https://hub.mender.io/t/mender-convert-modules-disk-sh-line-61-4-unbound-variable-when-using-a-data-partition-on-the-golden-image/1921/2 "2020-05-14T21:20:55Z")

</div>

You could just have a /data directory rather than a data partition, the full mender image will mount the data partition onto it, regardless if there are any files in the directory already.
