read only root file system

Posted on 2008-11-06
Medium Priority
Last Modified: 2013-12-06
hello experts,

i am completely new to linux world. My job is to make debian linux root read only which will be mounted on compact flash. i created symlinks to mtab,resolv.conf,adjtime from tmpfs mounted folder and they are fine. but the problem is with /etc/network and /etc/hotplug directories and their contents which will be used during run time. during booting /etc/network.. no such file or folder errors, on shutting down deconfiguring network .. operation failed errors.
please help me with this. i am implementing ramfs.
Question by:ramlinux
LVL 10

Assisted Solution

kyleb84 earned 80 total points
ID: 22901676
Do you want the changes to be persistent? - Do you want the changes made to the folder to be kept when the system reboots?

If not:
What you need to do is create a couple of images of the contents of /etc/network and /etc/hotplug, then mount them as ro and -loop on boot and symlink /etc/network to the mounted image directory.

If so:
Do the same, but make the ext2 images with rw access.

I think I'm on the right track, but I'm pretty sure that there's a filesystem specifically for that purpose, maybe someone else can elaborate?

Accepted Solution

ramlinux earned 0 total points
ID: 22948615
a script to mount the ramfs and create the folders/files required for rw during boot time solved this issue.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question