Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
raspberry:read_only [2021/05/27 14:05]
admin [Drives]
raspberry:read_only [2021/05/27 14:07]
admin [Disable some Programs]
Line 7: Line 7:
 In the fstab: In the fstab:
   $ sudo nano /etc/fstab   $ sudo nano /etc/fstab
-one has to change the SD card to read only (ro) and one has to make a temporary virtual drive, too:+one has to change the SD card to read only (ro) and one has to make a temporary virtual drive (30MB), too:
   /dev/mmcblk0p2  /               ext4    defaults,noatime,ro  0       1   /dev/mmcblk0p2  /               ext4    defaults,noatime,ro  0       1
   tmpfs           /tmp            tmpfs   defaults,size=30M    0       0   tmpfs           /tmp            tmpfs   defaults,size=30M    0       0
  
 +----
 ==== Disable some Programs ==== ==== Disable some Programs ====
 One has to disable some programs,  rsyslog and dphys-swapfile:\\ One has to disable some programs,  rsyslog and dphys-swapfile:\\
Line 17: Line 18:
   $ sudo systemctl disable dphys-swapfile   $ sudo systemctl disable dphys-swapfile
  
 +If one installs programs that needs to write or change file one has to make sure that will be the tmp drive 
 ---- ----
 ==== Remount ==== ==== Remount ====