Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a machine with 10 GB of RAM, and I would like to run Ubuntu on it (Debian also OK if its easier), fully in RAM in such a way: I boot from a compressed image on an USB flash disk, that is uncompressed into RAM, and then I can remove the disk from the USB slot, and use the system only with RAM, without any permanent disk.

Whenever I make any changes that I want permanent, I would put the flash disk back into the USB slot (possibly not the same one as I used initially to boot, as I would like to keep many versions of the boot flash disk), and run some command that would save the current state into a compressed image on the disk.

How can I set this up?

share|improve this question
1  
Heh I asked about this last year but didn't get anywhere. At this rate PCI-E x16 SSDs are going to be here and affordable before I've managed this. –  Oli Nov 4 '10 at 13:46
add comment

2 Answers

It is not possible using the Ubuntu desktop CD to do this without keeping the USB disk inserted the entire time. However, given that you have a sufficient amount of RAM, you can use the toram casper option to copy the contents of the desktop CD into memory (by using a tmpfs).

Startup Disk Creator Startup Disk Creator will get you most of the way there. Just be sure to use the "stored in reserved extra space" option. Next, edit syslinux/txt.cfg in the resulting USB disk and put toram just before the -- in every append line except the one for "Check CD for defects."

share|improve this answer
add comment

Well, aren't live cds doing this already? I use finnix, which is debian based, a lot to do mainteinance, it can boot from CD (or USB), load itself completely into RAM and free the CD slot for use.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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