I have a live USB made with the standard Ubuntu disk image creator for 16.04 LTS. In the current state, I can boot to this disk, but it still requires the original USB to run properly at all times.

Attempting to pull the drive and use the system generates a large amount of I/O errors, further suggesting that the USB drive is actually needed for things not already loaded into RAM (For example, Firefox worked without the USB, but I used it once before already. apt, on the other hand, did not.)

Is there a way to copy the entire Ubuntu live disk to RAM, so I can remove the drive and free up a USB slot for other things?

  • 2
    Did you try the "toram" kernel parameter? That will at least speed things up after the boot, not sure if you can remove the USB. – ubfan1 Sep 26 '16 at 15:36
  • @ubfan1 I have not yet, I can test later today, though. – Kaz Wolfe Sep 26 '16 at 15:42
  • On a similar note I want justify a 16gb update when I only use 2 to 3 gb of 8 gb now. If I can through all of Ubuntu into ram (excluding Home) that would be sweet. That 2 second SSD lag would cut down to .25 seconds. Call me spoiled :) – WinEunuuchs2Unix Sep 26 '16 at 17:22
  • 4
    Possible duplicate of Distro that I can load into RAM? – LiveWireBT Sep 27 '16 at 22:51
  • Can Ubuntu be installed to the pendrive it was booted from? askubuntu.com/questions/855039/… – C.S.Cameron Oct 8 at 2:38
up vote 90 down vote accepted

You simply need to add the toram boot parameter in GRUB.

Here is how you can do that, tested (and screenshots taken) with an Ubuntu 16.04 64 bit desktop iso in a VM:

Boot in UEFI mode

Boot from the live DVD/USB and wait for the GRUB menu to appear.

enter image description here

Highlight Try Ubuntu without installing using / and then press E to edit the boot script.

enter image description here

Search for the line starting with linux and add the option toram right after (or instead of) quiet splash, as depicted above. Then press F10 to boot the modified script.

After Ubuntu has fully booted, you may eject/unmount the live DVD/USB device and continue using the system and all available programs.

Boot in BIOS/Legacy mode

Boot from the live DVD/USB and wait for the language selection boot menu to appear.

enter image description here

Select your language with / and confirm with Enter. The boot menu appears.

enter image description here

Use / to highlight Try Ubuntu without installing.

To make the editable Boot Options line appear, press F6 followed by Esc to close the little pop-up.

Then you can navigate the cursor in the Boot Options line using /. Search the quiet splash options and add the toram option after or instead of them, as depicted above.

Boot the modified configuration by simply pressing Enter.

After Ubuntu has fully booted, you may eject/unmount the live DVD/USB device and continue using the system and all available programs.

  • 1
    I assume this is special to the live disc somehow, right? As in I imagine I wouldn't be able to boot a regular installation with this parameter? – Mehrdad Sep 28 '16 at 5:54
  • @Mehrdad You might be interested in wiki.ubuntu.com/BootToRAM – Byte Commander Sep 28 '16 at 9:19

protected by Byte Commander Sep 27 '16 at 21:09

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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