I accidentally removed a xubuntu live usb from the computer while it was running but it seems to be working just fine. I can even launch applications that werent already open.

Is that expected? I have always thought you need to be careful to avoid bumping the usb drive or otherwise disturbing it.

Where is everything being stored? In RAM? Is the whole contents of the usb copied into RAM or just some parts?

Edit: tried it with manjaro and it fell apart. All kinds of never before seen errors. Replacing the usb didnt fix it. Couldnt even shut down the machine, had to hard power off.

  • jan teli
    link
    859 months ago

    remove live usb while running from it

    Why are you running from it? There’s no need to be scared, it doesn’t normally bite

  • @[email protected]
    link
    fedilink
    English
    539 months ago

    A lot of live images will run entirely from RAM, flash drives are typically quit slow so it makes the experience much nicer.

  • @[email protected]
    link
    fedilink
    209 months ago

    It’s creating a RAM drive and just keeps working from there. You can even plug the stick back in and save files on it, if needed.

  • @filister
    link
    189 months ago

    That’s because at booting time this live USB is loaded into your RAM and it is safe to remove it once you complete the boot process.

  • @j4k3
    link
    English
    109 months ago

    The main reason to “eject” flash memory is if it is in the middle of a write operation because they are rather long due to how entire pages must be erased and rewritten. Depending on how this write process is managed and how the hardware is constructed it can cause corruption from removing something the wrong way.

    I’m not sure about how the larger distros work, but with something like OpenWRT, everything is running in RAM. I’m pretty sure that is how Live USB always works.

    I’m pretty sure even the distros that can run from USB with persistence are running an immutable OS that runs from RAM and then using an extra partition on the USB drive for persistent storage. The immutable nature hints that it is likely running in RAM.

  • @Hiro8811
    link
    99 months ago

    Liveusb sistems do get stored in RAM since it’s so much faster and reliable. Also I’m pretty sure most liveusb are read-only so it’s Hardee to modify data. Manjaro must be loading small parts into Ram, or you didn’t had enough ram, so when you took it out it only had the data on RAM which wasn’t enough for it to process any command

  • Possibly linux
    link
    fedilink
    English
    89 months ago

    Its only fine if you use the toram kernel parameter (some distros ignore it)

  • @[email protected]
    link
    fedilink
    English
    39 months ago

    Yep, I’ve done that. Just hard power off and I would recommend reformatting the drive. You can usually still get your files back by mounting it on a functional computer.