this post was submitted on 07 Jan 2025
18 points (100.0% liked)

Linux 101 stuff. Questions are encouraged, noobs are welcome!

1097 readers
1 users here now

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

founded 2 years ago
MODERATORS
 

Will my OS break if I make it the system Read Only? I am installing a raspberry pi 4 (Raspberry Pi OS (64-bit)) in my car and read on Lemmy that if I make the system files Read Only my system won't get corrupt when power is abruptly turned off. I will leave the 'home' directory read-write. I realize I will have to remove the drive and run updates regularly.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] theit8514 10 points 1 week ago (1 children)

A better way to do this would be to use the overlay filesystem which will use some of your RAM to hold temporary files written to the partition. When rebooting the system will start over from when you enabled the overlay filesystem.

https://learn.adafruit.com/read-only-raspberry-pi/overview

[โ€“] floppingfish 3 points 1 week ago

Looks good! I'll give it a try. Thanks!!