PINE64

Full Version: Make SD Card to read-only mode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all experts,
According to my project that needs to be run 24x7 on my rockpro64, there was issue with OS corruption as due to power shutdown the devices was on unexpected power cycle. So i was trying to make the OS to read-only mode.

I followed this link-
https://medium.com/@andreas.schallwig/ho...c0f7be7353

I successfully done that but some system services and my docker service stoped working now.

OS -
Armbian ver5.98

Requirement-
1) I have made one app that needs to be run 24x7 and that is a docker process. So i need to access docker in RO mode.
2) I have also made a system-service(in /etc/systemd/system/my-service) that keeps on monitoring that docker app.
3) There are some file write operation need to be done in "/opt" or any other folder.

Please suggest me way to make the OS to read-only by keeping above 3 requirements.

Thanks.
The third requirement is in contradiction to your first requirement. Any remainder of write operations keeps a chances for corruption. I think you need exclude the writing to system volume totally. Move anything needing the write to a RAM-disk. And write persistent data only to different media, say, USB flash drive.