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

Linux

50398 readers
818 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 50 comments
sorted by: hot top controversial new old
[–] FippleStone@aussie.zone 2 points 6 hours ago

Yeah but, you're a towel.

[–] limelight79@lemm.ee 3 points 9 hours ago (1 children)

I'm not clear what you've done here, but I've never played with the purge command. I take it you removed a lot of basic packages. How did it happen? Wildcards?

[–] towelie@lemm.ee 2 points 6 hours ago (1 children)

I can't entirely recall the precise details now, but I was trying to uninstall Nvidia and Mesa packages to fix some driver issues. Some mesa-related packages were remaining, and I couldn't figure out why, so I manually typed their names in and purged them, then proceeded to watch python, the desktop environment — everything — all uninstall haha.

[–] InnerScientist@lemmy.world 7 points 5 hours ago (1 children)

It was all just bloat anyways, who needs anything besides a kernel?

[–] limelight79@lemm.ee 2 points 25 minutes ago

It's a pure Linux system now! No GNU!

[–] CkrnkFrnchMn@lemmy.ca 1 points 9 hours ago
[–] lipilee 13 points 1 day ago (1 children)

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

[–] aeternum@lemmy.blahaj.zone 2 points 8 hours ago

I'd like to interject here...

[–] MrsDoyle@sh.itjust.works 49 points 1 day ago (4 children)

My first adventure in Linux back in 2003. No idea how I achieved this, but from memory I just reinstalled and all was well.

[–] ohshit604@sh.itjust.works 1 points 24 minutes ago

Mr Torvald, I don’t feel so well.

[–] Swedneck@discuss.tchncs.de 25 points 1 day ago

i for one welcome our grub bootlorders

"AI is gonna take over the world"

Grub: "Hold ma beer"

[–] AceFuzzLord@lemm.ee 5 points 1 day 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 5 points 1 day ago* (last edited 21 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.

[–] ikidd@lemmy.world 8 points 1 day ago (1 children)

If you don't mess with the partitions during the install and don't format, and make the same username, you should be back to normal after a reinstall. Take a backup offline, of course.

[–] umbrella@lemmy.ml 3 points 1 day ago* (last edited 1 day ago)

make sure not to reformat though. it can be a problem depending on the installer his distro uses.

i think its safer to just save the home folder, and replace it later when the system is installed.

[–] BCsven@lemmy.ca 8 points 1 day 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.

[–] the_q@lemm.ee 4 points 1 day ago

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

[–] GNUmer@sopuli.xyz 9 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.

[–] LifeCoffeeGaming@lemmy.world 37 points 1 day ago

One of us. One of us

[–] IsoKiero@sopuli.xyz 12 points 1 day ago (1 children)

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

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

[–] answersplease77@lemmy.world 7 points 1 day ago (2 children)
[–] IsoKiero@sopuli.xyz 3 points 1 day ago

Dammit, my organic memory failed yet again. It's been a while since I've seen that prompt (and I have agreed to that as well at least few times).

load more comments (1 replies)
[–] Xanza@lemm.ee 27 points 1 day ago

(it was nvidia related)

lel we got 'im, boys. /s

[–] ch00f@lemmy.world 27 points 1 day ago (1 children)

Migrating a 8 year old server to fresh new hardware. Can't believe you can basically just rsync one computer to another

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

You can indeed.

[–] prole@lemmy.blahaj.zone 14 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.

[–] zarkanian@sh.itjust.works 3 points 1 day ago

Can i just reinstall to my root partition and have my home partition work as expected?

Yes, but you might have to muck around with /etc/fstab. The reason is because when you install to your root partition, the installer will create a new /home in that root partition. (Unless you have an installer that's smart enough that you can tell it otherwise.)

You should be able to mount the partition in any case, but to have the system recognize it as /home it has to be properly set up in fstab.

[–] paradox2011@lemmy.ml 14 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.

[–] buwho@lemmy.ml 9 points 1 day ago
[–] mathemachristian@lemmy.ml 4 points 1 day ago

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

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

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

[–] Auster@thebrainbin.org 8 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)

[–] JustPedro@lemm.ee 2 points 1 day ago* (last edited 1 day ago)

I overwrote my ssh private key with rsync. Fortunately I had special cron job running on my servers that updates ssh public keys on a server with ssh public keys from my github account, so I just had to upload a new key to the github and wait for a few hours.

[–] cmnybo@discuss.tchncs.de 10 points 1 day ago (4 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.

load more comments (4 replies)
[–] uis@lemm.ee 2 points 1 day ago

Average .ml purges

[–] mesamunefire@lemmy.world 9 points 1 day ago

Nice, you get a sticker!

[–] pr06lefs@lemmy.ml 9 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!

[–] maplebar@lemmy.world 5 points 1 day ago

On the bright side, it's never been a better time to switch to an immutable distro...

[–] popekingjoe@lemmy.world 6 points 1 day ago (1 children)

Congratulations OP!

About a year and a half ago I nuked my root partition with sudo rm -rf /*. Fun times.

[–] ohshit604@sh.itjust.works 3 points 1 day ago

That’s just how you unlock the hidden boss fight.

load more comments
view more: next ›