# All files in /data partition removed automatically

**URL:** <https://hub.mender.io/t/all-files-in-data-partition-removed-automatically/3565>\
**Category:** General Discussions\
**Tags:** yocto, mender, warrior\
**Created:** [April 28, 2021, 6:37pm UTC](https://hub.mender.io/t/all-files-in-data-partition-removed-automatically/3565 "2021-04-28T18:37:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anishmonachan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anishmonachan/32/802_2.png) [@anishmonachan](https://hub.mender.io/u/anishmonachan)\
**Post date:** [April 28, 2021, 6:37pm UTC](https://hub.mender.io/t/all-files-in-data-partition-removed-automatically/3565/1 "2021-04-28T18:37:45Z")

</div>

Hello,

I’m facing a very weird bug with the jetson tx2 running on yocto image, that the files in the /data partitions are removed automatically. And only the folders do exist.

I did check all other partitions and the files are not removed there. This is only affecting /data partition.

Also, if I **touch** a file and try to do any operation, let’s say a **cp** , the file gets removed immediately in the /data partition.

What’s causing this issue? How I can fix it?

---

<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:** [April 28, 2021, 7:21pm UTC](https://hub.mender.io/t/all-files-in-data-partition-removed-automatically/3565/2 "2021-04-28T19:21:18Z")

</div>

Might be worth first double checking what device is mounted on /data mount point.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [April 28, 2021, 9:36pm UTC](https://hub.mender.io/t/all-files-in-data-partition-removed-automatically/3565/3 "2021-04-28T21:36:04Z")

</div>

This sounds to me like a corrupted filesystem. Can you unmount it and run fsck on it?  
Drew

---

<div class="post-metadata">

**Author:** ![anishmonachan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anishmonachan/32/802_2.png) [@anishmonachan](https://hub.mender.io/u/anishmonachan)\
**Post date:** [April 29, 2021, 3:56pm UTC](https://hub.mender.io/t/all-files-in-data-partition-removed-automatically/3565/4 "2021-04-29T15:56:16Z")

</div>

Hey @drewmoseley @dellgreen ,

Thanks for your answers. I reflashed the device with a new image.  
I couldn’t reproduce the issue again.

Best,  
Anish
