read only root file system

Posted on 2008-11-06
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

    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

    a script to mount the ramfs and create the folders/files required for rw during boot time solved this issue.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Upgrading Linux 7 56
    linux, squid server 23 42
    Unable to connect to Webmin web interface any more 1 45
    dot directory in FreeBSD??? 4 47
    Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
    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…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now