Re:Running a Raspberry Pi with a read-only root filesystem
by LeoPanthera on Friday March 29, 2024 @09:25PM
(#39870957)
It's worth noting that you don't have to do this manually. Enabling "overlay filesystem" in raspi-config will do this for you, so that all changes to the filesystem are lost after a reboot.
[ Parent
| on HN ]
Re:Running a Raspberry Pi with a read-only root filesystem
by HankB99 on Friday March 29, 2024 @10:21PM
(#39871249)
I believe the overlayfs configured using raspi-config is a little different in that it presents the appearance of a normal filesystem but all changes are gone following reboot. Before reboot the changes are cached in RAM which can have consequences for low RAM systems.
I use the overlayfs provided by raspi-config.
Re:Running a Raspberry Pi with a read-only root filesystem
by ctrlw on Saturday March 30, 2024 @04:16AM
(#39872885)
Yes, I was missing a mention of that in the blog post and maybe a brief discussion why to do the manual setup instead.
Re:Running a Raspberry Pi with a read-only root filesystem
by TMWNN on Saturday March 30, 2024 @04:36AM
(#39872961)
Indeed. The post even mentions `raspi-config`, but doesn't mention `Performance Options | Overlay File System`. Makes me think that the author isn't aware of the option at all.
(The same way undoes read-only mode, but two reboots will be required instead of one.)
Re:Running a Raspberry Pi with a read-only root filesystem
by musicale on Saturday March 30, 2024 @05:12PM
(#39878716)
It is a puzzling omission.
Re:Running a Raspberry Pi with a read-only root filesystem
by abdela on Saturday March 30, 2024 @05:28AM
(#39873236)
And you can create a second, small partition/filesystem if you still need to persist some things. I used to have very little data to persist and I would mount/write/unmount every time I write to deal with possible power issues.