You keep the user-changeable files on a separate filesystem. Whether that’s just a separate partition, or an external disk. Keep the system itself read only, and write-heavy directories like logs and caches in RAM.
Comment on Backing-up Single Board Computer
Esca@lemmy.one 11 months agoI love that idea, and I’d love to implement that. But I honestly can never figure out how people are working with service that enables the user to change settings (for example, to set their location to get their local weather) while still maintaining a read-only system.
Decipher0771@lemmy.ca 11 months ago
DontNoodles@discuss.tchncs.de 11 months ago
I am still figuring it out since it is my hobby and I’m unable to devote much time to it. But I think it will be something like Ubuntu live disks which enabled you to try Ubuntu by running it from a DVD. You could run anything like web server, save files, settings etc. Only they would not persist after a reboot since every thing was saved in RAM. Only here it’ll be a write locked SD card instead of a DVD.
I’m also sure there must be a name for it and step by step tutorial somewhere. If only Google was not so bad these days…