Stefano Marinelli on Nostr: Evening reflection, observing the little Raspberry Pi A that manages the outdoor ...
Evening reflection, observing the little Raspberry Pi A that manages the outdoor lights (powered by FreeBSD): one of the reasons I chose FreeBSD over other BSDs and Linux is the ease of running it in read-only mode when installed on a UFS file system.
Just change "rw" to "ro" in /etc/fstab, and upon the next reboot, the system will operate in read-only mode.
For systems with unstable power or the potential for dirty reboots (especially when using memory cards not optimized for frequent writes), this can ensure near-infinite file system longevity.
This has often saved remote systems, even those powered by batteries or solar panels, from corruption and inaccessibility. Achieving the same with OpenBSD or NetBSD isn't difficult, as they always write to specific locations (easily mountable in RAM file systems), while many Linux distributions (except Alpine and a few others) tend to write all over the place, making the operation more complex.
#FreeBSD #RaspberryPi #SysadminTips #NetBSD #OpenBSD #Linux #AlpineLinux
Just change "rw" to "ro" in /etc/fstab, and upon the next reboot, the system will operate in read-only mode.
For systems with unstable power or the potential for dirty reboots (especially when using memory cards not optimized for frequent writes), this can ensure near-infinite file system longevity.
This has often saved remote systems, even those powered by batteries or solar panels, from corruption and inaccessibility. Achieving the same with OpenBSD or NetBSD isn't difficult, as they always write to specific locations (easily mountable in RAM file systems), while many Linux distributions (except Alpine and a few others) tend to write all over the place, making the operation more complex.
#FreeBSD #RaspberryPi #SysadminTips #NetBSD #OpenBSD #Linux #AlpineLinux