Remove bootable USB after live-booting from it

live-usb

I have a bootable USB (ADATA Superior Series S102 Pro 16GB USB 3.0 Flash Drive (AS102P-16G-RGY)) with MultiBootUSB (multibootusb.org) with non-persistent Ubuntu, KALI Linux, ParrotSec OS, Arch Linux, and Trinity Rescue Kit. However, if I boot any of those OSs', and then remove the USB drive, any programs that I haven't run so far will fail to run, the display will start flickering, and it will crash and show lots of cmdline outputs like:

[ 10.737654] cannot access <whatever>

Is there a way to load the entire OS (and all programs, files, etc.) from the USB to RAM so that it can be unplugged after the OS boots, without losing OS functionality?
I've already tried the toram thing, the "RAM mode" option, and the "Load system to RAM" option.

I'd prefer a solution that works for all aforementioned OSs.

Best Answer

I have found a solution (may not work for all distros): Where it says "Try Ubuntu before installing" or "Try from this live CD", just press "E" to edit the kernel parameters. Then, there should be a line that ends like this: quiet splash --- or maybe quiet splash hostname=ubuntu --- Add toram (or toram=yes if that doesn't work) to that line, before the dashes, so it reads: quiet splash toram --- (with or without hostname) Press F10 or Ctrl + X to boot.

If it worked, then either the desktop or the file manager should have the USB mounted as a drive. Right-click and click "Eject", then remove the drive.

Related Question