Patchbox os in readonly mode



As you know, the raspberry (and computers in general) needs to shut down properly. I you simply disconnect the raps the sd card could be crashed.

I use my rasp in headless mode (without screens), so there are a lot of times that my rasp is turned off in the bad way.

To prevent this problem i have found this script:

It is an script that converts you rasp in a Read only system… so the disk is not writted, the sd card could not be corrupted and you can disconnect the rasp safely.

In the instrucctions says that it works fine with clean raspbian installations, and some custom changes can be incompatible with this script.

Has anyone knows if Patchbox Os is compatible with this readonly script?

Best regards.



Give it a go? Looks like it’d be ok…

But be aware, my experience with this is many apps will need a bit of tweaking - for various reasons but most common is they write settings to the home directory.

Two examples i know off the top of my head are tightvnc and Pd.
( Pd only really requires write access the first time it’s run and configured)

It’s also really useful to have scripts to switch the rootfs between read only and writeable for
maintenance etc.

There is alternative approach which is to use overlayfs - i think this would be more compatible with more apps - but not got around to playing with it yet :slight_smile:



rpi-readonly has 2 commans for this purpose.

“rw” and “ro”. In any time you can launch rw, write some file and launch ro again.

I have not probe it because I have only one rasp with this OS, and I cant crash it :frowning: . I must make an image backup of my rasp and try this script.