this post was submitted on 15 Aug 2023
18 points (95.0% liked)

Linux

8318 readers
147 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

Tell me your favourite rescue USB image and why!

Also rescue tips and tricks as that's always interesting.

I have been using a Debian installer USB as I had it to hand (DVD image IIRC) but if I boot into a shell without mounting another root FS the number of utilities is quite limited (just busybox basics). For example just now I wanted gzip but it only had gunzip...

I feel like a shell started from the installer USB should have access to a lot more utilities because the files are there on the disk!

Does anyone know a way to set up a kind of USB like the debian installer where you can install packages from the installer into the live environment?

top 23 comments
sorted by: hot top controversial new old
[–] taipan_snake 9 points 1 year ago (2 children)

I've just got Arch Linux installed on a USB drive. I set it up so it works with both UEFI and legacy BIOS boot. It works great - I can install whatever tools I need on it, I can even use it as a little portable Linux drive if I need that. I've also used it to install Arch on a number of my computers.

The only issue is that the USB drive is pretty slow, so it's not the best experience using it

[–] AlpacaChariot 2 points 1 year ago (1 children)

Slower than the kind of shell you get in the Debian installer?

Is it slower because it's trying to log and write to the root fs whereas the installer runs everything in RAM and doesn't write to the USB?

[–] taipan_snake 2 points 1 year ago

Yeah I think so. There are some optimisations that can be done to improve things, but at the end of the day it's running off a slow USB drive

[–] [email protected] 1 points 1 year ago

I do the same thing with NixOs, pretty handy but damn slow.

[–] [email protected] 7 points 1 year ago (1 children)

I've been using SystemRescue (formerly SystemRescueCD) since forever & it's usually more than enough for anything I need to get done. Though nowadays just about any Linux live image can probably do the job if that's all you have at the moment.

[–] fr_mg 2 points 1 year ago

I use the same since, at least, version 6. It helps with lots of problems.

[–] Quazatron 6 points 1 year ago* (last edited 1 year ago) (1 children)

I mostly use systemrescueCD, but in fact it doesn't really matter. All I usually need is to mount the root filesystem, dev, sys and proc, then chroot into this environment and fix the breakage. Any live image will work for that.

[–] AlpacaChariot 1 points 1 year ago (1 children)
[–] Quazatron 1 points 1 year ago (1 children)

Fixed. I hate typing on mobile phones so much.

[–] AlpacaChariot 2 points 1 year ago

That makes a lot more sense. I was thinking "all I need is a small set of really small utilities called busybox, and... the chonkiest modern web browser"...? :D

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

I just use whatever live image I last wrote to a flash drive, because it requires zero extra effort or storage, and they all have what I would need from a rescue environment anyway.

[–] AlpacaChariot 1 points 1 year ago (1 children)

So what would you do if you needed gzip like in my example? In this example I was able to mount the root FS of the existing system to use it but that isn't always possible.

[–] [email protected] 2 points 1 year ago

I use full desktop live images. They have gzip, among many other things, including the ability to install more packages into the live environment's RAM disk.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

I use a Puppy Linux derivative - QuickPup64 to be exact. What sets this apart from other Puppies is that QuickPup is updated regularly and has a recent kernel, with the biggest advantage being that QuickPup is compatible with almost all the popular Linux package formats out there.

Wider package support. Aside from PET, Debian (DEB), Red Hat (RPM), Slackware (TXZ, TGZ), and Arch Linux packages (PKG.TXZ).
It also accepts the following packages (natively installed, no more package conversion needed. This allows to utilize almost all available linux packages):
->Slitaz (*.tazpkg)
->Tiny Core (*.tcz,*.tce,*.tcel,*.tcem)
->Pardus (*.pisi)
->Alpine Linux (*.apk)
->Slax (*.sb)
->OpenWRT (*.ipk)
->0linux (*.spack)
->Void linux (*.xbps)
->Damn Small Linux (*.dsl)
->Puppyrus (*.pfs)
->Nutyx (*.cards.tar.xz)
->Solus (*.eopkg)
->Stampede (*.slp)
->Porteus (*.xzm,*.lzm)
->Gentoo precompiled package (*.xpak)
->Paldo Linux
->Venom Linux (*.spkg.txz)

I also have to say that Puppy is fast - it's designed to be run off USB and work on older systems with limited resources, so this thing absolutely flies, compared to a regular distro.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

Gparted-live or base Archlinux for me as I have the most experience with these 2

[–] [email protected] 1 points 1 year ago

Yeah, i just use Arch or Ubuntu install.

[–] [email protected] 3 points 1 year ago (1 children)

I have a drive with Ventoy on it and ISOs for Hiren's, Rescatux, and NixOS, along with a custom ISO of NixOS with some tools pre-installed. Super easy to generate.

[–] AlpacaChariot 1 points 1 year ago (1 children)

Did you make the custom ISO of NixOS yourself? What did you add?

[–] [email protected] 2 points 1 year ago (1 children)

I did, instructions are here! I don't remember off the top of my head, but I think it's mostly network related tools like nslookup and nmap. You can easily add anything you can find on their package search.

[–] AlpacaChariot 2 points 1 year ago
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

I have a Porteus USB that I keep handy with my old Hirens USB. It’s Slackware based and a bit goofy when it comes to installing other apps, but because it’s a USB portable OS first I feel it’s one of the ones that handles that limitation best. I used to use Puppy IIRC.

[–] AlpacaChariot 1 points 1 year ago

This looks pretty cool, I will do some research!

[–] martinbasic 2 points 1 year ago

I'm using Hiren's Boot CD (not PE), it has a handy linux rescue environment and password reset utility.

But if it doesn't count, recent I found MX Linux installation USB are also useful for me to do partition tasks, as well as grabbing files from folders with limited privileges of my Windows partition.