openfans-community-offical / Debian-Pi-Aarch64

This is the first 64-bit system in the world to support all Raspberry Pi 64-bit hardware!!! (Include: PI400,4B,3B+,3B,3A+,Zero2W)

Home Page:https://gitee.com/openfans-community/Debian-Pi-Aarch64

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Read-only filesystem

nicholas-zww opened this issue · 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.