Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Ubuntu system that has installed various program and custom stuff.

I would like to make it read-only so that against power interruption and other non-privileged user to damage it.

I think mount EXT4 as read only won't help, since it requires /var/log and /dev folder to be writable,

I was wondering can you make the existing system into a live CD harddisk (I.e. a live CD image into harddisk)?

share|improve this question
up vote 1 down vote accepted

Mount it read-only, and mount tmpfs to /dev and /var/log.

share|improve this answer
thanks, but is there any other folder need to be mounted as tempfs? /proc or ?? – c2h2 Apr 26 '11 at 3:11
You could always try and find out. – Ignacio Vazquez-Abrams Apr 26 '11 at 3:17
/dev is always a tmpfs on udev-running Linux systems. Regarding /proc, it's already a virtual filesystem, too. – grawity Apr 26 '11 at 4:42
@grawity: "none on /dev type devtmpfs" – Hello71 Apr 27 '11 at 2:23
@c2h2: Typically, /proc is a proc type filesystem. – Hello71 Apr 27 '11 at 2:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .