Filesystem locked as read only but needs to be writable

Hi I have a yoco installation based on your console-tdx-image but I have had a reoccurring problem with the filesystem switching to read only after a few weeks, which do not work with our application. Is there anyway to solve this without re-installing the system and is there anyway to prevent this from occurring again. It is not uncommon for the device to lose power and it needs to be resilient to these kind of problems are there any changes i can do to my yocto installation for hardening like changing file system.

Example:
rm: can’t remove ‘system.sock’: Read-only file system,

linux
2020/05/25 18:37:27 Critical system failure! system can not access or modify its own files, system will be terminated with the following error: open system.log: read-only file system

I get the following when running df -Th seems like it is not using any default ext4 system …

Filesystem Type Size Used Available Use% Mounted on

  1. ubi0:rootfs ubifs 435.0M 196.8M 238.2M 45% /
  2. devtmpfs devtmpfs 183.2M 4.0K 183.2M 0% /dev
  3. tmpfs tmpfs 247.7M 0 247.7M 0% /dev/shm
  4. tmpfs tmpfs 247.7M 12.7M 235.0M 5% /run
  5. tmpfs tmpfs 247.7M 0 247.7M 0% /sys/fs/cgroup
  6. tmpfs tmpfs 247.7M 0 247.7M 0% /tmp
  7. tmpfs tmpfs 247.7M 6.6M 241.1M 3% /var/volatile
  8. tmpfs tmpfs 247.7M 6.6M 241.1M 3% /var/spool
  9. tmpfs tmpfs 247.7M 6.6M 241.1M 3% /var/cache
  10. tmpfs tmpfs 247.7M 6.6M 241.1M 3% /var/lib
  11. tmpfs tmpfs 49.5M 0 49.5M 0% /run/user/

HI @Masj

Thanks for writing to the Toradex Support.

Could your provide the software version of your module?
Have you done any changes to Software (kernel config, devicetree, …)? If yes, could you share these changes?

It is not uncommon for the device to lose power and it needs to be resilient to these kind of problems are there any changes i can do to my yocto installation for hardening like changing file system.

Is the issue occurs only after power losses or also without power loss?

Best regards,
Jaski