Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I have a custom Linux installation that resides in a NAND flash chip that acts as the root drive. It boots up fine when the drive is read/write. However when I jumper the drive to read-only, which is its final state, it fails to load.
I'm using kernel 2.6.22.19 and LILO boot loader. In lilo.conf I have already included "read-only".
The file system seems to already be in read only mode since I'm unable to create files once I'm booted up w/o the jumper. I don't understand why then does it not boot when I jumper it to read only? When I do this, once the kernel decompresses I get nothing, no debug messages even. It just hangs there.
Distribution: Redhat FC4, Fedora 8 and AIX 5.3, AIX 6.1
Posts: 39
Rep:
Hello,
I will try to see if my logic may make sense here but when you say that you have your root drive as read only I could see how you may be getting the problems that your are getting. What I mean by that is if I am looking at this correct your root drive will consist of /, /var, /etc, /home, /tmp, /opt, /root and maybe others don't know what all you may have created in the form of filesystems on it. This will have to be a writeable drive since at the time of boot your hardware is walked and things get stored in /dev with new timestamps and if you can't write to the drive I can see several things failing. Even things in /var and /tmp could be created for temp files and jobs so I really don't see how the drive if it is a true root drive in what I am thinking of root as in all of the base default dirs which the system must have to be able to run. Hope that helps I just don't see how linux or any unix will work in a read only mode for the root of the OS when it creates and writes new data to files but at the same time I really don't know what all you have done in your custom Linux install don't know if was written to not do what a normal linux install does.
Thanks. My kernel booting up doesn't write to the drive. My "init" is simply a busybox shell. I've actually found the problem to be pertaining to LILO, and I've fixed it. Thanks again!
Well, you know LILO's "BIOS data check successful" message? Apparently after that, it writes some status messages to the drive. Since my drive is write-protected, it hangs there. After I include "suppress-boot-time-BIOS-data" in lilo.conf, it bypasses the check and hence works.
How are you solving the /dev /var /tmp writability issue raised by shadow5277?
What is actually on the NAND flash chip & what is linked elsewhere?
Linked to where?
With what mechanism, i.e. are you using Aufs or UnionFS, or possibly something else?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.