Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-07-2009, 07:10 AM
|
#1
|
Member
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438
Rep:
|
Persistent ramdrive for Linux?
Does anyone know of an persistent ramdrive solution for Linux? I'd prefer free, open-source, but I'm willing to look into commercial solutions (or my boss is, that is).
I guess I could go with a script that would tar a ramdisk's data and store it on the hard drive, then restore it at the next boot, but I'm a little leery of this. I imagine a ready-made solution would do exactly the same thing, but I'd like to find out if somebody is developing and maintaining a project for a persistent ramdrive, I'd like to know.
Thanks.
|
|
|
03-07-2009, 09:51 AM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,462
|
Have you checked out any howtos? I would not be leery, many distributions like puppy and knoppix do just that. In addition Puppy periodically writes to file too. I do not know of any ready-made solutions but it should not be difficult. In a nutshell add an entry in fstab and create a start up/shutdown script to restore/save data.
tmpfs makes it easy.
http://www.ibm.com/developerworks/library/l-fs3.html
|
|
|
03-07-2009, 09:52 AM
|
#3
|
Member
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356
Rep:
|
It would help to know what this is for. It seems to me that you would need to have non-volatile memory to use where the data actually does remain persistent. Otherwise, your alternative method is not a persistent ramdrive, rather a way to store data on a disk and copy it into a ramfs on boot.
Quote:
Currently Linux has no support for a persistent, non-volatile RAM-based filesystem, persistent meaning the filesystem survives a system reboot or power cycle intact. The existing RAM-based filesystems such as tmpfs and ramfs have no actual backing store but exist entirely in the page and buffer caches, hence the filesystem disappears after a system reboot or power cycle.
|
Protected and Persistent RAM Filesystem
|
|
|
03-07-2009, 01:49 PM
|
#4
|
Member
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438
Original Poster
Rep:
|
Thanks, guys, for your help. I think I'll go with a script that writes data to and from tmpfs. I'm still looking for some good examples, so if you know of any, I'd be interested in seeing the links.
We use some custom apps that require frequent drive access, and we're running some older machines (this is a school application in a developing country). I thought I could speed things up with a ramdisk, but I wanted to make sure I could keep the data from session to session.
For a while I used a nifty commerical (though not expensive) ramdrive in Windows, and I was wondering if there could be anything like that for Linux. I'd like to reduce setup and configuration hassle as much as possible for the sake of endusers.
|
|
|
03-07-2009, 08:41 PM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,314
|
There used to be a thread on forums.gentoo for running the entire system from RAM.
Should have all the scripts to harden in-storage filesystems prior to shutdown as well as loading them into RAM on start-up.
|
|
|
03-08-2009, 04:10 AM
|
#6
|
Member
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
There used to be a thread on forums.gentoo for running the entire system from RAM.
Should have all the scripts to harden in-storage filesystems prior to shutdown as well as loading them into RAM on start-up.
|
Thanks for the info. I think this may be the Gentoo thread you referred to. It does have a lot of applicable info. There's also this, which is useful, but not as detailed.
I'll see if I can extract the specific info I need (good scripts for moving data back and forth from RAM to hd.
Thanks again.
|
|
|
03-08-2009, 04:31 AM
|
#7
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,314
|
Yep, they should cover things.
|
|
|
03-08-2009, 01:47 PM
|
#8
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
dhave
Before you spend too much time on this, have you considered just installing one of the physical ram drives (they stay active as long as the computer has power)? Gigabyte has one model(4GB?) and IBM has several(much larger). They are fairly expensive for their size but they are very fast.
http://www.gigabyte.com.tw/Products/...ProductID=2180
http://www.hyperossystems.co.uk/
Last edited by lazlow; 03-08-2009 at 01:52 PM.
|
|
|
All times are GMT -5. The time now is 10:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|