# How to deploy /data/mender on rootfs

**URL:** <https://hub.mender.io/t/how-to-deploy-data-mender-on-rootfs/4447>\
**Category:** General Discussions\
**Tags:** yocto, dunfell\
**Created:** [January 5, 2022, 9:38am UTC](https://hub.mender.io/t/how-to-deploy-data-mender-on-rootfs/4447 "2022-01-05T09:38:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mdosari](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@Mdosari](https://hub.mender.io/u/Mdosari)\
**Post date:** [January 5, 2022, 9:38am UTC](https://hub.mender.io/t/how-to-deploy-data-mender-on-rootfs/4447/1 "2022-01-05T09:38:09Z")

</div>

Hi all,

mender-client version is 3.1.0

After we have built the image successfully, we have an issue because of the device\_type file is missed. This file should be exist at /data/mender/device\_type. We have looked at mender-client.bb and found this file is installed at ${D}/data/mender. But when we boot the image we could not find this file at /data/

Then we noticed that /data/mender is created alone at .dataimg. How we could install this file at rootfs /data without the need of .dataimg ?

---

<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 5, 2022, 3:09pm UTC](https://hub.mender.io/t/how-to-deploy-data-mender-on-rootfs/4447/2 "2022-01-05T15:09:04Z")

</div>

Normally you would factory flash the device with the full disk image, with subsequent follow up updates using the mender rootfs artifact. Do you need to do something different then?
