Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
raspberry:read_only [2021/05/27 13:50] admin created |
raspberry:read_only [2021/05/27 14:17] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Read-Only SD Card ===== | ===== Read-Only SD Card ===== | ||
- | Change your SD card to a read-only mode.\\ | ||
- | [[http:// | ||
- | [[https:// | ||
- | ==== Fstab ==== | + | 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.\\ |
- | in: | + | |
+ | ---- | ||
+ | ==== Drives | ||
+ | In the fstab: | ||
$ sudo nano /etc/fstab | $ sudo nano /etc/fstab | ||
- | change: | + | one has to change |
/ | / | ||
tmpfs / | tmpfs / | ||
---- | ---- | ||
- | ==== Disable some Programms | + | ==== Disable some Programs |
- | disable rsyslog and dphys-swapfile: | + | One has to disable |
$ sudo systemctl disable rsyslog | $ sudo systemctl disable rsyslog | ||
$ 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 in the temporary drive. For example a symbolic link: | ||
+ | $ ln -s / | ||
---- | ---- | ||
==== Remount ==== | ==== Remount ==== | ||
- | To remount the partition | + | To remount the partition |
$ sudo mount / -o remount,rw | $ sudo mount / -o remount,rw | ||
+ | |||
+ | ---- | ||
+ | ==== Links ==== | ||
+ | |||
+ | [[http:// | ||
+ | [[https:// | ||
---- | ---- |