I know that I can enable/disable OverlayFS from the raspi-config, but do I do this from the terminal? Via a bash script for example.

2 Answers 2


Just study raspi-config which is just a simple (if rather long) shell script and extract the bits you need.

It is actually possible to call the functions in raspi-config.

enable_overlayfs() disable_overlayfs() should work (but I have not tried).


sudo raspi-config nonint enable_overlayfs or sudo raspi-config nonint disable_overlayfs

Then reboot.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.