Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Evening gents. I'm working on a consumer device that will lose power, and be turned off with no regards to the OS, or FS being dirty. That being the case, I'd like to make the OS stuff read-only, so that it can't be corrupted. (I'd LOVE to put it on a USB stick, or a CF card, but can't.) So my question is, "What do I have to do to get a working system with a RO file system?"
I've set RO in grub, and then modified /etc/init.d/autofs to mount the root (/) as read-only, but the system doesn't seem to like that, since the only things showing up as mounted are /proc and /udev. This causes some problems like when I run any of my apps (text mode apps of course), they immediately seg fault. I'm hoping that someone here has done this, and can point me to a page that discusses it, or can just tell me what you did to make it work. (I have another partition on the driver with will contain the stuff that gets modified, I.E. the user's data, but I want the boot/system partition to be RO to avoid corruption).
Most systems need to write log files, dmesg etc., that is probably why that option is not liked. And during boot-up, things need to be executed, if you want to do anything, you will have to execute.
Last edited by Junior Hacker; 02-02-2007 at 11:20 PM.
For all intents and purposes, I don't have a CD drive available for a LiveCD. (Unless there is a way to put the image on the HD, and make it boot from it).
JH: Could I used unionfs or something to make a small ramdisk and let it do it's writing to there? If so, what directories/files do I need to have there to make it happy?
JH: Could I used unionfs or something to make a small ramdisk and let it do it's writing to there? If so, what directories/files do I need to have there to make it happy?
That's over my head.
Have you tried chown & chmod on / to owner, chances are owner is root already, for permissions:
chmod -R 700 /
To give owner full permissions, no permissions for group and others. Power outages are not un-common, operating systems recover from this.
Last edited by Junior Hacker; 02-03-2007 at 02:20 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.