Read-only Filesystem on Raspberry PI

This is the most useful guide that I’ve found on how to set up a read only filesystem on the raspberry PI:

Once you’ve done this, if you need to modify files under /etc, such as /etc/network/interfaces, here’s how to do that (as root):

  1. mount -o remount,rw /
  2. mount -o remount,rw /etc_rw
  3. cd /etc_org/network
  4. vim interfaces
  5. make whatever changes are necessary
  6. reboot

Your changes should now be permament.

If you try just editing /etc/network/interfaces directly, your changes won’t “stick” over a reboot because you’re just changing a file in a ramdisk.

Leave a Comment