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@lemmy.world
    link
    fedilink
    arrow-up
    90
    arrow-down
    5
    ·
    9 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

  • MangoPenguin@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    55
    ·
    9 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.

  • viking@infosec.pub
    link
    fedilink
    arrow-up
    21
    ·
    9 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@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    9 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@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    9 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@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    9 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

  • HumanPerson@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    9 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.