this post was submitted on 20 Feb 2024
50 points (98.1% liked)

Linux

47483 readers
990 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] j4k3@lemmy.world 10 points 7 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.