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?

  • MrsDoyle@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    41
    ·
    2 months ago

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

  • Xanza@lemm.ee
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    1
    ·
    2 months ago

    (it was nvidia related)

    lel we got 'im, boys. /s

  • ch00f@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    2 months ago

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

  • paradox2011@lemmy.ml
    link
    fedilink
    arrow-up
    13
    ·
    2 months 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.

  • prole@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    2 months ago

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

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    2 months ago

    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.

    • ☂️-@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      2 months 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.

  • verdigris@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    2 months 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.

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    6
    ·
    2 months 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.

  • Dizzy Devil Ducky@lemm.ee
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 months 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.

  • Pope-King Joe@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 months ago

    Congratulations OP!

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

  • pr06lefs@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    2 months 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!