read only root file system

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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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?
ramlinuxAuthor Commented:
a script to mount the ramfs and create the folders/files required for rw during boot time solved this issue.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.