this post was submitted on 21 Feb 2025
94 points (100.0% liked)

Linux

1267 readers
96 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 hear this is a rite of passage. I made it 4 weeks before I rekt all my shit (it was nvidia related). Where do I claim my sticker?

In all seriousness, now that I understand better these commands that I've been haphazardly throwing around, Id like to do a clean install. God knows what else Ive done to it. Can i just reinstall to my root partition and have my home partition work as expected?

top 29 comments
sorted by: hot top controversial new old
[–] CkrnkFrnchMn@lemmy.ca 1 points 9 minutes ago
[–] lipilee@feddit.nl 6 points 15 hours ago

the truest form of Linux, without all the GNU bloat, well done! :)

[–] AceFuzzLord@lemm.ee 3 points 15 hours ago

Couple days ago I accidentally removed a package, not fully understanding what would happen. Ended up logging out thinking nothing of it. Couldn't log back in as there were zero sessions available. Also, for some reason a huge on-screen keyboard kept popping up a lot when I'd click on the login panels things.

I am very grateful my distro came with Timeshift by default and that I had a backup from the day before to fix everything. Also glad Rescuezilla allowed me to install Timeshift and restore.

Doesn't matter who you are or what you believe, it's definitely a rite of passage to break your system once. That is something I'll always agree with.

[–] verdigris@lemmy.ml 2 points 16 hours ago* (last edited 12 hours ago)

Last week I accidentally overwrote my configuration.nix file with garbage. If you use NixOS this should fill you with horror. If you don't, that file contains a description of your entire system -- all the packages as well as many settings tweaks to anything from GUI apps to core kernel & systemd options.

I have now learned my lesson and started using git to track my changes. Tbh, I was naively expecting to be able to roll back to a previous config and pull out my configuration file, but that's not how it works. Happily I had already split out the most difficult to reproduce sections into their own files (mostly networking stuff), so it wasn't that catastrophic, but it still turned a few minutes of tinkering into a couple hours of forehead-smacking.

[–] the_q@lemm.ee 3 points 18 hours ago

Lol Nvidia has quiet the reputation in the Linux world. Keep at it though. We all make mistakes.

[–] BCsven@lemmy.ca 5 points 22 hours ago

If you are trying a new install go for something with timeshift or Silver Blue, OpenSUSE snapshotting. You can trash the whole setup, then reboot to the previous state. A catastrophic failure becomes a 1 minute fix.

[–] GNUmer@sopuli.xyz 7 points 1 day ago

Ahh, baby steps.

Around fours years ago I was still using Arch and I somehow decided to try LFS on my main machine (bare metal unfortunately). Started compiling coreutils but as I forgot to specify the build directory to gmake, my /usr/bin directory was being emptied to make space for the coreutils compilation process. Bricked my whole installation.

Now I'm smarter than four years ago as I mainly use NixOS.

[–] IsoKiero@sopuli.xyz 9 points 1 day ago

Does anyone sell 'Yes, Do As I Say!' stickers?

You could possibly recover from that on console, just install few metapackages. And have backups.

[–] uis@lemm.ee 3 points 1 day ago

Average .ml purges

[–] beeng@discuss.tchncs.de 1 points 22 hours ago (1 children)

Nice day to move to nixos ;)

[–] verdigris@lemmy.ml 1 points 16 hours ago* (last edited 16 hours ago)

See my top-level comment; even if they're ready for the complexity, it doesn't protect you from a similar mistake!

[–] Xanza@lemm.ee 17 points 1 day ago

(it was nvidia related)

lel we got 'im, boys. /s

[–] prole@lemmy.blahaj.zone 10 points 1 day ago* (last edited 1 day ago) (1 children)

TimeShift. Life saver, and great tool for learning without having to worry about breaking shit permanently.

[–] mathemachristian@lemmy.ml 3 points 1 day ago

congrats you're ready for the next step: a declarative package configuration like (non-)guix or nixos

[–] utopiah@lemmy.ml 3 points 1 day ago

FWIW each new install is faster, especially if you write down the "weird" steps.

[–] paradox2011@lemmy.ml 10 points 1 day ago

I feel your pain 😅🫠

Yeah, just to add another confirmation to the other comments, if you have a separate home partition you can reuse it with a new / partition and expect it to work fine. The only stuff that gets saved in your home folder is comfiguration files for your apps, along with whatever actual files you have stored. You can even swap distros (Ubuntu/Arch) and keep your home folder, though sometimes the config files and settings don't translate perfectly.

[–] Auster@thebrainbin.org 7 points 1 day ago

If anything can be salvaged, I'd suggest backing those up, and then proceeding to make a fully fresh install. That will ensure you don't come across issues inherited from the previous blunders, and also, I think, will give you the chance to take the same steps, but wiser than before, and so able to avoid the issues you either caused or came across. (Also something I'd recommend maybe around every 1~2 years, precisely because of being able to restart but wiser)

[–] cmnybo@discuss.tchncs.de 10 points 1 day ago (3 children)

Reinstall using btrfs as the root files system and enable automatic snapshots. The data on your home partition will be fine, just make sure the installer doesn't format it.

[–] mjhelto@lemm.ee 1 points 1 day ago

I really need to learn how to do that. I installed SuSE something on my laptop and selected that file system but couldn't find how to do the snapshot stuff. I'm sure I'm just dumb, but also exhausted, and mentally drained.

[–] gerdesj@lemmy.ml 5 points 1 day ago

More technology does not fix daft manoeuvres! You do learn by your mistakes but keep the environment as simple as possible and add complexity later. Just like I didn't back in the day! Mind you we lived in greyscale back then.

I've been a Linux sysadmin (and I have a lot of customers) for around 25 years now and only during the last 18 months have I bothered with something funky like ZFS - Proxmox is why and that's thanks to Broadcom deciding to fuck up VMware. I have done a lot of migrations and many more to follow. BTRFS is coming along but it is not for me quite yet.

Backups are golden. Even a simple rsync of /home and /etc to a USB stick or two will do for starters. If you want a challenge then try getting the Veeam agent for Linux working, with secure boot. I suggest not yet (secure boot). However, Veeam do a community edition which is free for 10 workloads (VMs/agents). I recently recovered a HP laptop running Home Assistant to a Thinkpad and everything just worked apart from the network, which is pretty reasonable and it took about 20 minutes.

So, I suggest that you get your backups in order first and then you can muck about with confidence. If you have some time and energy then do have a go at Gentoo and/or Arch. I ran Gentoo as my daily driver for some years and now I never fear anything IT related.

[–] bobs_monkey@lemm.ee 3 points 1 day ago

Better yet, backup /home to a separate disk and replace after install.

[–] buwho@lemmy.ml 5 points 1 day ago
[–] gratux@lemmy.blahaj.zone 2 points 1 day ago

I accidentally interrupted a system upgrade, breaking networking and package manager, among other important bits

[–] GravitySpoiled@lemmy.ml 5 points 1 day ago

Yes.

I wouldn't do it without tests and "enough" experience.

I would backup first.

Then I would install an atomic distro because I wouldn't want to care about this ever again

[–] pr06lefs@lemmy.ml 4 points 1 day ago

Recently upgraded a laptop that had been on the shelf for 5 years up to latest version. Flawless one-step upgrade! nixos. Things never get in a tangle where installing and uninstalling packages leaves random artifacts behind. If you saved it to version control, you can return to a past system configuration and the only thing different is your home directory data.

And yes, if you have a home partition and root partition, that's exactly what you can do. That's the beauty of that approach. But back it up!

[–] Albbi@lemmy.ca 2 points 1 day ago

I've done the same thing (Nvidia related) on a machine hooked up to an expensive scientific instrument. Didn't get any other work done that day... Ugh.

[–] gnuhaut@lemmy.ml 4 points 1 day ago

Try to fix it.

[–] thingsiplay 2 points 1 day ago

The best way to learn something is by hurting you.