One of the most fundamental yet little-known features of FreeBSD is its ability to be used in read-only mode very easily. By installing the system on a UFS file system, you just need to modify the fstab file, change "rw" to "ro," and reboot. On the next boot, the system will automatically create mount points in RAM for the main directories (/tmp, log, etc.), and it will run perfectly.

This was the main reason why, many years ago, I chose FreeBSD for almost all my embedded systems. Even today, on my Raspberry Pies, I keep the SD cards in read-only mode and use external storage in read-write mode. This ensures that, in case of an unexpected poweroff, the system will come back up, and there will be no wear on the memory card.

#FreeBSD #EmbeddedSystems #RaspberryPi #ReadOnly #SysAdmin #Tech #OpenSource

Follow

@stefano Woah... I knew about SOME of that; like when running diskless from an NFS server.. but I never knew it was THAT easy on a system with a disk, and I've been running for 30 years

· · Web · 0 · 1 · 2
Sign in to participate in the conversation
Cross Family's Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!