How to get Ubuntu system to boot and run entirely in RAM?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Jungle Looping
--
Chapters
00:00 How To Get Ubuntu System To Boot And Run Entirely In Ram?
00:46 Accepted Answer Score 4
02:26 Answer 2 Score 1
02:47 Thank you
--
Full question
https://superuser.com/questions/1060176/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #ubuntu
#avk47
ACCEPTED ANSWER
Score 4
You could run a Live Ubuntu, which can be made to boot from a USB stick or a hard disk partition, and use a persistent storage partition for your documents. Ubuntu comes with a "Startup Disk Creator" that makes this fairly easy.
This will make the documents you safe to the persistent storage partition survive a reboot, but it will reset the whole rest of your system every time you reboot. So, you can't install updates or new programs and have them survive a reboot.
This strikes me as extremely cumbersome.
However, if that's the way you want to go, you can also customize such a live system, but you'll have to know quite a lot about how Ubuntu works, how it boots, how initial ram drives work etc. Ubuntu has a help page about customizing it's Live environment (see https://help.ubuntu.com/community/LiveCDCustomization). I did this a few years ago for a group of students and even though it worked nicely, I decided it was too much work to repeat the experiment.
It would be interesting to know why you need such a strange setup.
If you're worried about the speed of running a linux system from a hard drive, don't be. Nowadays you can even run Linux over a local network link and never notice your not working on your own machine. You can even run GUI applications over an internet connection (though there the lag is noticeable).
There are a few alternatives you might consider if you're asking out of privacy needs:
A standard Ubuntu Installation comes with a "Guest User" functionality that keeps a guest's home folder in memory, so whenever you log in as a guest user, once you reboot, all the changes he made are lost.
You can encrypt either your home directory or your whole system partition. In fact, you could set it up so your system boots from an USB drive you keep on your keychain and keeps its root file system encrypted on your hard drive.
ANSWER 2
Score 1
Not withstanding the Live CD answers; you may be looking for this:
https://ubuntuforums.org/showthread.php?t=1594694
Called "RAM_booster", I found it while looking for something similar. The author is no longer supporting this, but it's been said on forums to work up to Ubuntu 16.04.
The link to the GitHub repo is: https://github.com/terminator14/RAM_booster