Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 want to mount my root filesystem as read-only on boot, and use separate writable partition for logs.

Is it necessary to create a ramfs image for such task?

How can I do this?

share|improve this question
In addition to logs, you may need writable /tmp, maybe /home, some folders in /var. – Olli Mar 12 '11 at 14:08
Read only root filesystem may not work, why would you want to do this? – Jamess Mar 22 '11 at 6:23
why not when live cd's work? knoppix is a good example for what i want to do. unionfs with knoppix do the work great. i just want to do such a work with ubuntu. – amin Mar 27 '11 at 7:40

Yes, typically you would not want to mount / as read-only. I would recommend putting /usr in it's own partition and then mounting that read-only since it contains the majority of your executable files, which you would want to protect against manipulation of binaries. You could also run lsof to determine what processes are writing to the directories under /.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.