# /data partition directories from golden image missing from Mender converted image

**URL:** <https://hub.mender.io/t/data-partition-directories-from-golden-image-missing-from-mender-converted-image/3128>\
**Category:** General Discussions\
**Tags:** debian, raspberry-pi-zero-wifi\
**Created:** [January 22, 2021, 6:06pm UTC](https://hub.mender.io/t/data-partition-directories-from-golden-image-missing-from-mender-converted-image/3128 "2021-01-22T18:06:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![martind](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@martind](https://hub.mender.io/u/martind)\
**Post date:** [January 22, 2021, 6:06pm UTC](https://hub.mender.io/t/data-partition-directories-from-golden-image-missing-from-mender-converted-image/3128/1 "2021-01-22T18:06:11Z")

</div>

Hi,

I’m using hosted Mender and creating a Mender converted image from a golden Debian image (Buster) with some packages and modifications. The image is for a RPi Zero W. I am using hosted Mender

In my golden image I have a /data partition and created a directory structure for my application e.g. /data/MyApp/dir1. I also have a /data/NetworkManager directory that has the connection profiles for Wifi. These profiles are symlink to the rootfs because I read that in a Mender forum post. The /data partition is owned by user:pi in the golden image.

From the golden image:

```auto
pi@raspberrypi:/ $ ls -l /data
total 24
drwx------ 2 pi root 16384 Nov 23 21:56 lost+found
drwxr-xr-x 3 pi root 4096 Dec 31 23:55 NetworkManager
drwxr-xr-x 5 pi pi 4096 Jan 13 23:42 RAL

```

When I run mender convert the resulting image boots on the Pi Zero W but the /data partition is empty except for /data/mender. No /data/MyApp/dir1 and no /data/NetworkManager directories.

Here are my steps which follow the online Debian image steps:

`/Mender/mender-convert$ ./scripts/bootstrap-rootfs-overlay-hosted-server.sh --output-dir /home/user/Mender/mender-convert/rootfs_overlay_demo --tenant-token "token here" `

`sudo MENDER_ARTIFACT_NAME=release-Jan21v2 ./docker-mender-convert --disk-image input/golden-image-Jan21.img --config configs/raspberrypi0w_config --config configs/argus_config --overlay rootfs_overlay_demo/`

The argus\_config file has only option which is MENDER\_DATA\_PART\_GROWFS=y

I’ve re-flashed my golden image onto the device to doublecheck and the directories are all there so I don’t think there is anything wrong with my golden image file.

Is it a configuration option I’m missing or a problem with how the /data partition was created or the owner of the /data parition on the golden image?

Thanks!

---

<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:** [January 22, 2021, 10:33pm UTC](https://hub.mender.io/t/data-partition-directories-from-golden-image-missing-from-mender-converted-image/3128/2 "2021-01-22T22:33:22Z")

</div>

In your golden image i’m pretty sure the data partition will be auto-created from the contents of a “/data” directory at the root of your golden image’s root file system, rather than creating your own partition in the golden image.

> <https://github.com/mendersoftware/mender-convert/blob/84695afa58f98a70a12a447af5d9195abeef6dd1/mender-convert-package#L203>

---

<div class="post-metadata">

**Author:** ![martind](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@martind](https://hub.mender.io/u/martind)\
**Post date:** [January 25, 2021, 4:37pm UTC](https://hub.mender.io/t/data-partition-directories-from-golden-image-missing-from-mender-converted-image/3128/3 "2021-01-25T16:37:57Z")

</div>

@dellgreen Thanks! If there was ever a facepalm moment it was this. 🤦‍♂️ Confusing the /data directory with a /data partition (after converting) ended up in a lot of lost time.
