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)?

link|improve this question

57% accept rate
feedback

1 Answer

up vote 1 down vote accepted

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

link|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
1  
/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
show 1 more comment
feedback

Your Answer

 
or
required, but never shown

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