openfans-community-offical/Debian-Pi-Aarch64

Read-only filesystem

nicholas-zww opened this issue · 3 comments

Discussed in #213

Originally posted by nicholas-zww November 22, 2021
how to make a read-only file system?

mount or edit fstab with ro option. (ro, means read-only).

if the partition is mounted as read-only. We cannot write/save anything. What I am asking is something like file-system overlay, meaning that I will still save and modify the files, but of course, all changes wont be saved after reboot.

An easy way is use a script control ro/rw, and the specific directory for writeable choose a separate partition mount is better.