8

I have 32 GB of memory in my PC. This is more than enough for a linux OS. Is there an easy to use version of Linux (Ubuntu preferably) that can be booted via optical or USB disk and be run completely within RAM? I know a live disc can be booted with a hard disk, but stuff still runs off the disc and this takes a while to load. I'd like everything loaded into RAM and then run from there, completely volatile. Any files I need to create would be saved to a USB disk.

I'm aware of http://en.wikipedia.org/wiki/List_of_Linux_distributions_that_run_from_RAM but these all depend on a little bit of RAM. I'd prefer something like Ubuntu instead of these light versions.

  • 4
    The SysRescueCd has a load to memory option, docache causes the CD-ROM to be fully loaded into memory. A slower start but once complete, programs start faster and the CD drive will be released allowing normal access to other CDs. This requires 400MB of memory to cache everything (including the bootdisks and isolinux directories). – bsd Mar 19 '15 at 20:54
  • 1
    I don't know if Ubuntu supports it but IIRC Linux Mint does support toram parameter e.g. at the boot menu edit the entry and append toram to the kernel command line. – don_crissti Mar 19 '15 at 22:03
  • Ha, I was looking for a flavor "IIRC Linux Mint". Just occurred to me that was shorthand. Mint is good, I like that. It's been a while since i've used puppy. I'll have a look there too. – user208145 Mar 19 '15 at 23:52
  • 2
    Not an answer, just a comment: almost any distro can be modified to run directly from ram. Only a minor difference is needed in the boot sequence to mount tmpfs (or a compressed version) and load a disk image into it. I've seen an (almost) standard debian system that boots from a network image and runs from RAM, and using a LAN package repository (mirror) to quickly install larger applications on demand (to save space). I didn't set it up personally so I can't post precise instructions, but it is something that can be done for any distro. – orion Mar 20 '15 at 14:07
  • porteus linux. It runs on my memory and its fast – user134374 Sep 16 '15 at 2:26
5

Ubuntu can run on RAM, but it requires some manual changes:

https://wiki.ubuntu.com/BootToRAM

  • 1
    This helps, thank you. I was hoping for something more out of the box though. If this is my only recourse, I'll give it a go and mark this as the answer. – user208145 Mar 19 '15 at 21:30
  • 2
    this appears to assume one is booting a LIVE CD where running in RAM would be very useful. i have run Slackware in QEMU with all disks in RAM and it was much faster. a FULL install finished in 3 minutes. the hardware had just 12GB of RAM. my newest laptop has 64GB and i am exploring how to boot from its SSD and run from RAM. – Skaperen Mar 20 '15 at 11:16
  • This guide is severely out-of-date. It's for Ubuntu 9.10. – Aaron Franke Nov 12 '17 at 7:26
5

I think all distros can be run from RAM, you only need to do some changes. Read this link

You need to have in mind that any changes (updates, and the like) that you do to the filesystem that is in memmory are lost when you turn of your machine, so you need to stablish a mechanism to update your HD with those changes BEFORE the system goes down, that will delay the shutting down of the system.

  • not that much RAM is needed. if i can install and run a FULL Slackware in QEMU in tmpfs in 12GB of RAM then that much should be enough to run it direct. – Skaperen Mar 20 '15 at 11:22
  • i used to run just /etc in /tmps ages ago without an auto-save. one day it saved me from stupid blunder – Skaperen Mar 20 '15 at 11:26
  • so i recommend a manual save to disk for things like /etc and leave /var/log on disk. – Skaperen Mar 20 '15 at 11:29
2

Puppy linux is a distro that can be and is designed to run from RAM.

https://en.m.wikipedia.org/wiki/Puppy_Linux

2

Parrot Security OS. You have the option to load the OS directly into RAM, I believe MXLinux also allows that, no config files, straight from the boot loader you select load OS into RAM.

The Parrot & MX boot menu actually have a ton of options for different ways to run the OS. There are two versions 'home' and 'security', either one is suitable for a daily driver, unlike similar distros like Kali. Its basically a Debian MATE desktop and in the menu one of the tabs says parrot OS, in that tab you will find all of your hacker/cracker utils. Otherwise its just Debian MATE, a very nice looking Desktop.

Also it simplifies networking and starting/stopping processes in the applications menu. I loaded it into 10gb of ddr3 ram on a computer from 2012 and it runs fast. Also DietPi makes an X86 version that is crazy fast and runs in RAM.

If you do not care about package managers tiny core also runs in RAM its just and 'odd' distro.

New contributor
k3rnl-p4n1c is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1

grml (grml.org) has an option for this purpose. Kernel option toram or the option in the menu should work. It is Debian-based. And great btw!

0

Many linux distros can be used in RAM using a live install, I had fedora, ubuntu and derivatives on a pendrive once, just check if the live of that distro offers persistence so you'll be able to keep modifications. Also be aware the whole system needs to be loaded on your ram, so it can take more time than the usual to start the system.

0

There is a program floating around out there called YUMI it put's disto's onto a flash drive and can even have several on a single flash at once. It's good for trying out various forms of Linux until you find one you wish to install. And the distro called TAILS will run exclusively from memory. It is designed for security but is a proof of concept.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.