Linux – Running Linux OS in ram only

lamplinux-distributionsmemory

I am aware of Puppy linux for this but am not happy with there only being a root user. Would it be a hard job to tell a Linux distro to copy everything to RAM and then run from it?

I don't want to get a bad rep for this but I plan to put together a small LAMP which runs its OS from RAM. I have spoken to many people about this and get very mixed responses the reasons for which I do understand but am going to do this anyway.

Is there a live distro that might suit my purpose? I would be happier in say a Debian environment then have to get used to Puppy. I would rather have multiple users too so my root remains private which is unavailable in Puppy – or is this really necessary? Considering it is a LAMP I would have thought this would be needed for a more secure setup…

Thanks!

Best Answer

SystemRescueCD supports loading the entire image into RAM during boot. The main problem you'll encounter is that persistent data will disappear when you turn off the box, so you'll either need some way to synchronize modified data to a persistent storage device, or just not store anything non-persistent that you need.

Since SysRescCD is based on Gentoo, it should be fairly easy to build your own modified SystemRescueCD with the packages you already need pre-installed, so you can use their "boot into RAM" feature without having to install lots of packages and configuration files each time you boot.

Related Question