Mathew McBride's website

HOWTO: Read only rootfs, writes to USB on Linux

embeddedraspberrypilinuxTue 26 Mar 2013 09:49:48No comments

What you will need:

  • Kernel sources for the system you are booting on
  • AUFS patches for the kernel
  • A USB drive, preferrably one with reasonably fast write speeds

The goal of this excercise is to create a Linux system that has a read-only root filesystem, with all write activites performed on a USB drive. In this instance, we will boot a Raspberry Pi, with the SDcard used as the read only rootfs, and a USB drive used for all file writes (system logs etc.). This is done to improve reliability, as during our access system project, we found that the SDcard can be a bit fragile if the system is reset often.

Read below the fold for more

    Welcome to my site

    Mathew McBride, telecoms hardware access engineer, programmer, gamer and all round nerd

    Warning: contents of blog may not make any sense whatsoever.

    ipv6 ready

    You are accessing this page over IPv6!

    (C) Mathew McBride, 2006-2017
    Creative Commons License
    Unless specified, the content on this website is licensed under a Creative Commons Attribution-ShareAlike 3.0 Australia License.