I have a system running linux that must run unattended for long periods of time. The system uses industrial CF card for storage. Most of the time there are no writes to flash, although every now and then some configuration data/settings can be modified. The system must be resistant to power failures.
I would like to use ext4 for this. What is the best way to configure ext4 for this kind of setup? Bearing in mind that:
- Performance is not a problem at all (especially write performance)
- Upon power loss, the system should always boot in a clean state, even if that means that data written in the last few seconds is lost
- If it is possible to avoid fsck, then all the better.
(I am aware of this related question: Prevent data corruption on ext4/Linux drive on power loss)