HomeContact
Computerz
Using a readonly filesystem with debian unstable
René Dohmen
March 10, 2011
1 min

Some intro about fsprotect: set of scripts to transparently mount a RAM fs over the readonly root file system to protect the flash storage or to protect from unwanted changes. (the idea is not to write anything to the flash disk while system is running, this utility protects your system from fs corruption after unexpected power downs.)

Fsprotect homepage has version 1.0.5 available for download in debian package source format.

Then change /etc/default/fsprotect if you want to protect more then one filesystem. To get it working with grub/grub2 -> edit /etc/default/grub and add fsprotect=1G to the kernel options. Remember to do a update-grub afterwards.

After rebooting you can change everything you want; after the next reboot you’ll have a fresh system again. Because everything is mounted RO its extremly power failure proof.


Related Posts

Working with git submodules
October 15, 2023
3 min
© 2024, All Rights Reserved.
Powered by formatics

Quick Links

Advertise with usAbout UsContact Us

Social Media