can any linux be run entirely from RAM (system memory)
Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You can do this with basically any Linux distribution, though if you are talking about a distribution designed from the ground up for it, I don't know.
This is basically how live CDs work. They load everything into an initrd (Initial RAM Disk), and then run from there. There is no need for a physical hard drive assuming you have enough RAM to make a sizable RAM disk and still have enough memory left over to run your system.
just a side note ----Keep in mind that the hole root file system is in RAM that means /home to so if you start DLing larg files or wat not RAM could fill up and lock the SYS. unless you have a LOT of RAM I'd mount a drive and direct all stuff thare --- and dot forget eney thing saved to the root filesystem will be gone on a reboot
i used several liveCD distros in the past and they all seek the optical drive when loading a program that wasn't opened already in that session.
what im asking about is having ALL I/O operations done in the ram... like loading applications (well i guess they wouldn't have to load since they're already IN the ram at startup).
so if this is possible, how would i go about setting it up?
would i just avoid making a swap partition or somehow map it to the ram?
so a typical scenario would have me booting off a DVD (lets say). all of the OS and any applications i use would be loaded into my 8 GB of ram, leaving 2 or 3 GB for file creation. after everything is loaded into the RAM my optical drive would unmount, leaving me w/ a fully functional OS.
also, DVD could be substituted for other boot methods, PXE network, USB, etc.
does anyone do this in real life? is there a specific distro that facilitates this better than others?
I just gave you 3 of them 4 post's ubuv this take a look and mrclisdue gave 2 more!!!
yes thar livecd's but at the boot prompt you enter coppy2ram and it loads the hole shabang into RAM freeing the cd or DVD drive + thare lightning fast runing frum RAM
Last edited by vinnywrite; 01-22-2009 at 12:47 AM.
You are looking for Puppy Linux. Designed to run entirely from ram. You can set it up the way you like with personal settings, files, and extra programs. Everything is saved back to hard disk, usb, cdr, dvd, whatever you like.
i've always wondered if the following was possible (w/o virtualization):
load OS from USB flash drive, optical drive, hard drive, or network into the system memory then unmount that device so linux functions ENTIRELY from ram (4 - 8 GB) without a swap file/partition.
if this can in fact be done, could someone point me in the right direction or recommend a distro or give me some terminology to research further?
It can be done using several methods, but how about using this little guy if you're looking for the easiest way and the most compatible... http://techreport.com/articles.x/16255 and putting the entire operating system on it