this post was submitted on 20 Feb 2024
49 points (98.0% liked)

Linux

48287 readers
651 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.

all 16 comments
sorted by: hot top controversial new old
[–] jerrythegenius@lemmy.world 85 points 9 months ago (2 children)

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

[–] lemmyvore@feddit.nl 22 points 9 months ago (2 children)

What if it's plugged into a Terminator.

[–] just_another_person@lemmy.world 8 points 9 months ago* (last edited 9 months ago)

Disguised as a Wall-E...

[–] jerrythegenius@lemmy.world 7 points 9 months ago
[–] UnRelatedBurner@sh.itjust.works 15 points 9 months ago (2 children)

normally

tell me, which USB hurt you?

[–] jerrythegenius@lemmy.world 5 points 9 months ago

Not me, but I thought UnRelatedBurner might have had a reason

[–] MangoPenguin@lemmy.blahaj.zone 55 points 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 21 points 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 17 points 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 10 points 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 9 points 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

[–] possiblylinux127@lemmy.zip 8 points 9 months ago

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

[–] HumanPerson@sh.itjust.works 3 points 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.

I was going to ask if you'd tied a string to it, but now I understand.