User Tools

Site Tools

한국어

comfilepi:read-only_file_system_with_overlay

Read-only File System with Overlay

The following procedure can be used to boot the ComfilePi panel PC with a read-only file system. After booted, all modifications to the file system are done in RAM, and therefore, discarded between boots. This can be useful to reduce wear on the SD card or eMMC and also ensure a more reliable system, as file system corruption is less likely when it is read-only. Also, with the read-only file system, the system can withstand an abrupt loss of power without being shutdown.

First, upgrade your packages:

sudo apt update
sudo apt full-upgrade
sudo reboot

You can then configure a read-only file system by going to Preferences–>Raspberry Pi Configuration–>Performance–>Overlay File SystemConfigure…

You may also need to disable the swap file service with sudo systemctl disable dphys-swapfile.service.

If you are using a Raspberry Pi Buster OS, and you need a static IP address, you may need to enable predictable network interface names in the raspi-config utility.

Additional Information

comfilepi/read-only_file_system_with_overlay.txt · Last modified: 2023/11/10 16:38 by COMFILE Technology