Results 1 to 8 of 8
There's a great article on using Ramdisk by Van Emery (wish i could post a link, just google it) that explains in clear detail how to move a folder into ...
- 06-11-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 14
Ramdisk for entire OS?
There's a great article on using Ramdisk by Van Emery (wish i could post a link, just google it) that explains in clear detail how to move a folder into RAM for both security and speed.
I would like to put my entire Red Hat server into RAM to both speed up my system and to limit writes to my drives.
As solid state drives are becoming more popular, the question of longevity is becoming a bigger issue as these drives have a limited number of write cycles.
If my data and swap are both in RAM, this limits the usage of the drives themselves.
How can I boot my system, make a ramdisk with everything on it, and then make sure that RHEL is running directly from memory and not my drives?
Thanks in advance.
- 06-14-2010 #2Just Joined!
- Join Date
- Jun 2010
- Posts
- 14
I was reading (http ://en.wikipedia.org/wiki/Tin_Hat_Linux) how Tin Hat Linux uses SquashFS to expand the tmpfs when booting.
Any ideas how to change the RHEL boot to do this?
- 06-14-2010 #3
I would look at Puppy Linux or Slax and see how they do it.
howpuppyworks.html
polishlinux.org SLAX 6.0: How does it work?
Linux initial RAM disk (initrd) overview
- 06-14-2010 #4Just Joined!
- Join Date
- Jun 2010
- Posts
- 14
Thanks reed9 for the links, they were helpful.
However I still have a few questions. Puppy for example puts all working files into ramdisk, the persistent storage into a separate ext3 file, and the rest (apps, scripts, whatever) into a squashfs file. My goal is to put EVERYTHING onto the ramdisk, or just a tmpfs so that i never write to the system disk. Any thoughts on this?
I think i can accomplish this with initrd but i'm kinda new to linux and i feel like i'm in way over my head here. I would appreciate any feedback. Thanks!
- 06-14-2010 #5
You're going to have to have files stored on a physical disk somewhere. Is your goal a live CD or USB? You're not interested in any files or changes being persistent across boots?
- 06-14-2010 #6
- 06-15-2010 #7Just Joined!
- Join Date
- Jun 2010
- Posts
- 14
Thank you, this is a tremendous help for Ubuntu! Exactly what I want to do.
However, there are a few packages missing in Red Hat (squashfs, aufs). I'm in the process of tracking down whoever has the license to download the missing RPM's. In the meantime, do you see any problem with implementing this in Red Hat?
- 06-15-2010 #8Just Joined!
- Join Date
- Jun 2010
- Posts
- 14
Yes, I basically want to operate the same way a live CD works, except instead of loading from the CD i'll have a hard drive that puts my OS into RAM.
It is not necessary for changes to be persistent across boots... but it would be nice to have the option to save back to the hard drive.


Reply With Quote
