Good point @riban,
For background on the issue, see the following post:
Avoiding zynthian power down failure
Unexpected power down can cause SD card corruption. This will result in a non-functioning Zythian
Assumptions:
- If an SD card is mounted read-only, there will be no SD card corruption on unexpected power-down.
- The user must be able to make changes to the system which cannot be achieved with the SD card in read-only mode.
Requirements:
- The user must be able to perform a sync operation to force any changes to be written to the SD card.
- The system must be able to perform an automatic sync operation on normal shutdown.
- The user should be able to select a read-only “live mode” from the UI, and specify this as the default at boot. Any automatic sync would be disabled in this mode.
- If the user selects MIDI or Audio recording, the filesystem will be remounted read-write avoid issues with running out of space.
- The user should be able to select a read-write “designer mode” from the UI, and specify this as the default at boot. In this mode, all write operations occur immediately.
- The status bar must contain some indication of the “read-only/read-write” state of the SD card, any pending writes that need to be synced.