This is an old revision of the document!


Read-Only SD Card

If one needs a Raspberry Pi that shuts down save by just unplugging and without having the risk of corrupting the SD card one has to change the SD card to a read-only mode.


Fstab

in:

$ sudo nano /etc/fstab

change:

/dev/mmcblk0p2  /               ext4    defaults,noatime,ro  0       1
tmpfs           /tmp            tmpfs   defaults,size=30M    0       0

Disable some Programs

disable rsyslog and dphys-swapfile:

$ sudo systemctl disable rsyslog
$ sudo systemctl disable dphys-swapfile

Remount

To remount the partition writabe:

$ sudo mount / -o remount,rw