Which files? If some temp files go to lost+found, it is not data loss. If you had unstable power grid that caused repeated power failures while your Linux was rebooting, it would have affected only file systems that were being written at the time of failure.
It was some nasty fsck errors, which corrupted many files -- I don't remember what it was saying, but I lost over 30G.
Well. My windows claims that my usb flash devices got errors in them and demands to scan them every time. Windows was never the brightest OS on the planet. File system checks do not remove files. Neither Linux fsck nor Windows chkdsk. If power failure causes physical damage to your disk platers, readonly file system will not protect you from that. Device will be spinning in readonly mode too.
I haven't been using windows for over 10 years, so I don't really know the system. The drive was plugged into a TV, which supported only NTFS based filesystem. Now I bought RPI and was looking for some Kodi based OOTB solution, and I found LibreELEC. I wanted to give it a try, but it has some weird limitations that really affect user experience.
As for removing files by fsck -- it can remove them when you have inconsistency in the filesystem. In my case (ext4), there was some major issues which demanded manual resolving -- something bad happened to the files, I don't know what but it happened. And if it happened once, it can happen again. I really don't want it to happen again in the future.
It is paranoia. File systems have journaling. In last ten years the only damage to ext3/ext4 that I've seen was not caused to power failure. It was caused temporally storage failure on hypervisor and the only impacted file systems were the ones that had stuff writing into them. And nothing of a value was lost. When data loss happened, it was caused by hardware failures and not by power. In those cases device was lost and not just file system.
How often do you turn off your pc forcefully via the power button? Maybe you should try more often? I'm reading many linux boards, and I constantly see issues related to corrupted filesystems after power failure or hang of the OS and force rebooting of the system. So, believe me it happens more often than you may think.
You were already been told that Kodi and Libreelec do not write into your attached storage. I suspected that some media library data goes into storage device, but I don't see anything extra on my automounted disk. If they are not writing anything, your device will not have any pending writes at the time of power failure and can be safely powercycled.
The value of 95+% isn't nothing. It still has a 5%- chance to write something -- and "I don't deal in chance" -- it always generates problems. I want to be sure that nothing gets written to the filesystem that I don't want to write.
Replace your USB HDD with devices that have hardware switches for readonly mode, if you don't trust OS and people.
Really? Instead of having just one tiny ro filesystem flag, you suggest to replace the disk and spend hundreds of dollars to have what linux has as a built in feature when dealing with mounting of filesystems?
Anyway, in such case I will have to trust the switch itself, and the people who designed it. Too many possibilities... With the ro flag, I know it will work the way I expect because I've been using it for the past decade.
You could ask udevil devs to support configuration file includes from different directory than the one storing udevil.conf. From LibreElec perspective they need writable mounts and most of users will want their storage devices mounted in writable mode to manage media files in them. So LibreElec is unlikely to change default automounter configuration for you.
I've been using udevil for years, at least when that project was maintained. The last commit in the official git repo is dated 5 years back. Maybe LibreELEC should switch to some other well maintained alternative? It already uses systemd, and systemd is able to mount local filesystems. I'm pretty fluent with systemd, but I couldn't make it work with LibreELEC. Maybe this project should make some changes in this direction to support systemd local mounts? That would solve all the problems they are when it comes to mounting devices' filesystems.
Or start using iso9660 file system on your devices. That one is automated readonly.
I prefer using the ro flag.