Skip to content
A couple of scripts to make a Raspberry Pi file system Read Only (and subsequently Read/Write)
Branch: master
Clone or download
Latest commit b92996b Aug 5, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md fixed type Aug 5, 2016
cleanup.sh first commit Aug 4, 2016
fstab.ro
fstab.rw
lightdm.conf first commit Aug 4, 2016
makero.sh
makerw.sh first commit Aug 4, 2016
prepro.sh first commit Aug 4, 2016
ufmountscript

README.md

#A couple of scripts to make a Raspberry Pi ReadOnly or ReadWrite


git clone https://github.com/MarkDurbin104/rPi-ReadOnly

cd rPi-ReadOnly

To install dependencies and stop swap file run

./prepro.sh 

To switch to read only filesystem i.e. copy fstab.ro over /etc/fstab make symbolic links to /etc /var /home/pi/.config and/home/pi/.pki create rw folders modify lightdm.conf to not store data in ~home/pi folder reboot

./makero.sh

To switch back to RW file system i.e. make root and boot writeable copy fstab.rw over /etc/fstab reboot

./makerw.sh

This has been tried on a Pi2 running Jessie 2015-09-24 and a Pi3 running Jessie 2016-05-27

change fstab.ro fstab.rw ufmountscript and lightdm.conf to suit your needs

You can’t perform that action at this time.