Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.