LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 06-09-2009, 09:55 AM   #1
bluepenguine
LQ Newbie
 
Registered: Mar 2008
Posts: 16

Rep: Reputation: 1
Question root filesystem on RAM


Hello , I want to do following things....

I have working debian 4.0 root filesystem on CF disk..it boots properly everything is fine...

I want to creat some type of configuration with which , rootfilesystem will be created(or mounted) in RAM what ever any application will write to file , it should write on ram.....not on disk. and when i want to have persistant storage then modification done would be stored on CF disk....

rootfilesystem should be created after bootloader...not after init...as it will save time....
I dont want to have NFS ...for some reason...

may be some information on ext2/3 on RAM ..etc..

any reference will do gud for me ...



this i want to have for embedded project..where due to power failure i am loosing CF cards...

thanks in advance..
 
Old 06-09-2009, 10:24 AM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Tinycore, DSL etc shoot the root fs into RAM
I suggest tinycore, very nice; changes are only written back when you backup or add an app, etc.
use ext2/grub or fat32/syslinux
 
Old 06-10-2009, 01:23 AM   #3
bluepenguine
LQ Newbie
 
Registered: Mar 2008
Posts: 16

Original Poster
Rep: Reputation: 1
Unhappy

Quote:
Originally Posted by linus72 View Post
Tinycore, DSL etc shoot the root fs into RAM
I suggest tinycore, very nice; changes are only written back when you backup or add an app, etc.
use ext2/grub or fat32/syslinux
I dont want to use any other distribution , as I have to spend more time in learning internal of those disrtibution(tiny core...etc)..
I have working filesystem on CF but which uses Ext3 filesystem type.
I just want to have minimal linux textual based, filesystem on Ram.
 
Old 06-10-2009, 03:42 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
You've got to mount a tmpfs filesystem somewhere. Then you can copy the content of / from the CF card there and use use mount --move to remount / on your new file system. Or, if you want to do it very early, you have to modify your linuxrc file (it may be another file depending on your distro) and use pivot_root if you are using nash. You can then make a script to commit changes by copying back the content of the tmpfs filesystem to your CF card.
This is the quickest and easiest way to do it I believe. You can also do it with aufs or unionfs.
BTW I believe ext3 is a bad idea on CF cards. You should use ubifs instead...

Last edited by Agrouf; 06-10-2009 at 03:49 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD-RAM Filesystem - Which is best? Retrievil_Knievil Linux - Hardware 14 06-04-2009 01:28 PM
Accessing RAM-Resident Squash Filesystem spotmax777 Linux - General 1 07-17-2007 06:43 PM
Throwing a Filesystem (or part of it) Into RAM. Any Idea on How to Do This? LinuxGeek Linux - Software 1 01-26-2006 01:10 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
Ext2 Filesystem in RAM Fernando Linux - General 0 03-21-2002 02:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:34 AM.

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