MichaIng/DietPi

Software | OverlayFS

cocoflan asked for this feature over 2 years ago — 2 comments

cocoflan commented over 2 years ago

OverlayFS to protect SD card from write access

Read-only root filesystem for Raspbian Stretch

This repository contains some useful files that allow you to use a Raspberry PI using a readonly filesystem. After running install.sh everything will be set up and the system will reboot into read-only mode.

See instructions below to see how to switch to permanent or temporary write-mode.

This script is tested with a freshly deployed Raspbian image with "desktop and recommended software", specifically with the img file dated 2018-11-13, kernel 4.14. (Tested on a Rpi 3B+)

This files contains some ideas and code of the following projects:

https://github.com/josepsanzcamp/root-ro
https://gist.github.com/niun/34c945d70753fc9e2cc7
https://github.com/chesty/overlayroot

Congratulate the original authors if these files work as expected.

MichaIng commented 3 months ago Admin

Check out these instructions about how to set it up: https://dietpi.com/phpbb/viewtopic.php?p=24920#p24920

Join the discussion!

Sign-in with GitHub to comment