Computing.Net > Forums > Linux > Read-Only Linux System?

Read-Only Linux System?

Reply to Message Icon

Original Message
Name: swb
Date: January 10, 2003 at 11:50:29 Pacific
Subject: Read-Only Linux System?
OS: Suse X
CPU/Ram: old
Comment:

What would happen if I modified fstab so that my / partition on /hda1 is mounted as read only? Would anything run? I need to set up a system that can not be permanently modified or damaged by public users.


Report Offensive Message For Removal

Response Number 1
Name: David Perry
Date: January 10, 2003 at 12:29:19 Pacific
Subject: Read-Only Linux System?
Reply: (edit)

There are several distributions that run from cd (knoppix comes to mind) so I have to think it is possible. Would the chroot capability not do what you need?


Report Offensive Follow Up For Removal

Response Number 2
Name: Jake
Date: January 10, 2003 at 13:14:36 Pacific
Subject: Read-Only Linux System?
Reply: (edit)

/tmp and /var both need to be writable, but otherwise, it would work. You could make ramdrives for everything you need to be able to write to.


Report Offensive Follow Up For Removal

Response Number 3
Name: swb
Date: January 10, 2003 at 18:49:20 Pacific
Subject: Read-Only Linux System?
Reply: (edit)

Thank you both! I thought about chroot, but wouldn't it be very difficult to add all of the hundreds of little binaries that make up XF86 to the chrooted environment? If not, please let me know- I wouldn't know where to start. As for the read-only method, can I modify fstab as mentioned and then put /tmp and /var on separate read-write partitions to make the system run?


Report Offensive Follow Up For Removal

Response Number 4
Name: Jake
Date: January 11, 2003 at 12:40:48 Pacific
Subject: Read-Only Linux System?
Reply: (edit)

Yes, all you have to do is modify fstab. If you want, you can even use only one RW partition. For example, make it /var, and make /tmp link to /var/tmp. As long as /tmp is mode 777, it will work.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Read-Only Linux System?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software