OpenBSD readonly root

From WTFwiki
Revision as of 21:06, 27 March 2008 by Jontow (talk | contribs) (New page: = Theory = In a lot of situations, you'll find yourself not wanting to check filesystems, thereby<br /> facilitating hard power-downs with ~no data loss. I've come across this case a few...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Theory

In a lot of situations, you'll find yourself not wanting to check filesystems, thereby
facilitating hard power-downs with ~no data loss. I've come across this case a few times,
mostly in the end-user or volatile-power routing environments. Most often, I've done this
on Soekris net4801 devices.

To perform such a magic trick, you need to do a bit more planning. It's not as easy to run some
services in a configuration like this, since they need areas to write to. Even worse is when they
need to write data that you actually want to keep. In this case, I like to avoid the RO root
scenario, because it adds some awkward complexity that involves a regular mount-writable/sync/remount-ro
cycle. In general though, most services you can get away with just providing them ramdisk scratch
space.

Practice

Details here include modifications to config files (/etc/rc, in particular) to make this work.