LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2009, 10:00 PM   #1
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Rep: Reputation: 16
Read only file systems, custom live CDs, and embedded systems


Hi

I have an application that requires a version of linux with a read only file system. The idea is that non-volatile storage (harddisk) is only used to load the OS, and it is not needed at all for operation once everything is in RAM.

Some people have suggested a live CD distribution for this task. (I would be loading the contents of the live CD on to a flash ROM, but that is not a problem.) The problem is, how can I change the contents of the live CD so that it can run my applications? Wouldn't it be better if there was a way to just install linux on the flash ROM as a normal install, and then SET the filesystem to readonly? Or are liveCDs built in a special way that facilitates the read only aspect of the software?

I suppose what I really want is:
1. user turns on pc
2. linux boots to console
3. my program is started automatically which uses directFB layer and SDL
4. no non-volatile storage access occurs after this

I don't know if it's possible to modify a liveCD to do this, so it makes more sense to install linux normally and use a readonly filesystem but I have no idea if this will break things.

I would appreciate any help! Thanks!
 
Old 02-24-2009, 10:50 PM   #2
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
When running a LiveCD like Knoppix for example, you have some virtual disk space, which is actually located in your RAM. So you can install your application neatly, Knoppix will not affect your real hard disks (unless you explicitly mount them and make them writeable and do something with them).

The drawback is that after shutdown your installed application will be gone (it existed only in memory), so the next time you launch the LiveCD you have to install your application again. Knoppix actually allows you to store some personal data or applications to a real hard disk, as to avoid repeating setups, but it doesn't do it without your authorization.

linux

Last edited by gergely89; 02-27-2009 at 11:00 PM.
 
Old 02-24-2009, 11:09 PM   #3
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Original Poster
Rep: Reputation: 16
That's not really what I'm looking for. What I want to know is if it's possible to install linux normally (not a livecd) and then make the filesystem readonly after I have added/removed whatever packages I require.. what I don't want is lots of linux error messages in the background about not being able to write to disk...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
to change the permission of read only file systems jessyvjose1 Linux - Newbie 3 11-18-2008 06:23 PM
Any projects using Linux for Embedded systems? gckir Linux - Newbie 2 01-21-2008 02:17 PM
linux in embedded systems tanatan Linux - Newbie 1 05-22-2006 07:19 AM
file systems becomes read-only Swakoo Linux - Newbie 7 02-13-2006 04:06 AM
Embedded Systems - What should I use? matthewhardwick General 2 12-07-2004 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration