Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.21 sec)
Running Debian off a read only USB stick

Has anyone done this before ?

How does it work ? Can I simply run the absolutely essential read/write directories from RAM, like /proc etc ? You can probably tell I'm a newbie when it comes to this :-)

--EDIT--

This is for a Debian Server and I'd like the FS read-only so that it's more secure.
Asked by:
Mayhew
982 points
 Report Abuse
 Share Page - Category: Linux Servers - Tags: Running Debian off a read only USB stick
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (1)

Best Answer

You can make your life easier by using a union mount using aufs or unionfs-fuse. Basically, you make one FS (U) out of several ones that are /unioned/ together. In your case, 2 FS, one read-only (like a on a cloop or compressed btrfs on your usb tick (R) ) and one writable in RAM (tmpfs typically) (W). When you write on U, it create a file on W and writes to it. When you read from U, it reads from R unless the file was created on W.

Response by:
s
3383 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle