All files in /data partition removed automatically

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?

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

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

Hey @drewmoseley @dellgreen ,

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

Best,
Anish