Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
raspberry:read_only [2021/05/27 14:04] admin [Fstab] |
raspberry:read_only [2021/05/27 14:23] (current) admin [Remount] |
||
---|---|---|---|
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 also make a temporary virtual drive: | + | one has to change the SD card to read only (ro) and one has to make a temporary virtual drive (30MB), too: |
/ | / | ||
tmpfs / | tmpfs / | ||
+ | ---- | ||
==== Disable some Programs ==== | ==== Disable some Programs ==== | ||
One has to disable some programs, | One has to disable some programs, | ||
Line 16: | Line 17: | ||
$ sudo systemctl disable rsyslog | $ sudo systemctl disable rsyslog | ||
$ sudo systemctl disable dphys-swapfile | $ sudo systemctl disable dphys-swapfile | ||
+ | |||
+ | If one needs a programs that requires writing one has to make sure that will be in the temporary drive. That could be done for example with a symbolic link: | ||
+ | $ ln -s / | ||
---- | ---- | ||
==== Remount ==== | ==== Remount ==== | ||
- | To remount the partition writable:\\ | + | |
+ | For changes in the system one has to remount the partition writable:\\ | ||
$ sudo mount / -o remount,rw | $ sudo mount / -o remount,rw | ||