MichaIng/DietPi

Software | OverlayFS

cocoflan asked for this feature 10 months ago — 1 comment

cocoflan commented 10 months 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.

Join the discussion!

Sign-in with GitHub to comment