I just discovered something I did so idiotic I need a stronger adjective that what is in my name.

For one of my installs, I accidentally overwrote my 1TB HDD. A few minutes ago I wanted to put back some files… and all I saw was a distro.

It confused me because I was not sure if I was on my solid state drive or the HDD.

So, those files are gone. A lot is gone. Nothing too precious, I think… It might be a tremendous fuck up.

See kids, this is why you back up. Off the computer. Oh well.

EDIT: Recovering files using Photorec. Everyone who recommended this to me is a hero. Also a hero is the person who recommended FTK, but I was too eager to use something now than to sign up to download. I still should though…

  • Chais@sh.itjust.works
    link
    fedilink
    arrow-up
    52
    ·
    edit-2
    1 year ago

    Accidentally flashed a live image (PCBSD, IIRC) onto my 1TB external HDD instead of the thumb drive. Lost years of collected music and movies that night. I learned two things:

    1. Don’t do this sort of thing in the middle of the night, when you’re tired and should be sleeping.
    2. dd is nicknamed ‘disk destroyer’ for good reason.
  • RiderExMachina@lemmy.ml
    link
    fedilink
    English
    arrow-up
    43
    ·
    edit-2
    1 year ago

    Before you perform another task on that hard drive, try photorec. You might be able to get a majority of your files back if they’re important

  • mateomaui@reddthat.com
    link
    fedilink
    English
    arrow-up
    33
    arrow-down
    1
    ·
    1 year ago

    I remember shortly after college I was living with a couple of people and one day we all heard “NOOOOOOOOOO!” and went running to see what tragedy happened. He had started formatting the one porn drive he had been collecting on over the last few years.

      • mateomaui@reddthat.com
        link
        fedilink
        English
        arrow-up
        10
        ·
        1 year ago

        I’ll never forget that scream, I thought a sound like that was reserved for when the cat ran behind the couch and stepped on the surge protector button, corrupting the hard drive as you were almost finished writing your graduate thesis, which wasn’t backed up yet.

  • mesamune@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    I accidentally formatted a drive with a Bitcoin wallet on it. Back a number of years ago. Fun times.

      • Pantherina@feddit.de
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Its possible using homedir backup etc. Or on Fedora Atomic simply switching desktops. But yeah Desktops are all over the place, having a ~/.kde folder where EVERYTHING is stored would be great.

        • DidacticDumbass@lemmy.oneOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Oh, I am on Fedora Silverblue with Gnome. If it is easy to switch, I think I will give KDE a try!

          I like Gnome, and I definitely need to tweak some behavior I find annoying, but I feel I never gave KDE a proper chance because I seem to mess up the panel whenever I look at it wrong, and have no idea how to get back to default.

          • Pantherina@feddit.de
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Yeeah that panel. The only problem is opening the start menu with “super” though. You can always add a “default” panel.

            Maybe do it like this: create a keyboard shortcut ctrl+alt+t for konsole, whyever it is not default. Then remove all panels and run qdbus org.kde.ksmserver /KSMServer 0 0 1 (alias that to “logout” in your .bashrc, its a horrible command).

            Then remove all panels and logout. Log back in, add a default panel and maybe you are already good. Maybe log out again. The only default panel normally always gets the correct start menu. Its a bit messed up.

            To switch between silverblue and kinoite you can just rebase, but make sure to backup all your “dotfiles” (the hidden configs for all the apps) and start plain, as you dont want to mix these.

            There is a youtube video on exactly that somewhere.

            • DidacticDumbass@lemmy.oneOP
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 year ago

              Ah, thank you for the write up. I will actually do that because KDE something I know I will like and enjoy more than GNOME once I get past some of the weirdness. Mostly, I want to customize it in certain ways, and while GNOME surely is customizable, it is not as easy as KDE.

              Yeah, rebasing feels like some scifi future tech and I am ready to play. It is like resleeving ala Altered Carbon.

              • Pantherina@feddit.de
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                1 year ago

                I am not sure. KDE is very customizable and I like the… regular way apps work, trays work, decorations work and all that. Also GNOME is like the anti-poweruser desktop. I like its style, but its like “use a terminal or nothing”. Needing extra apps for every small thing and all…

                The downside maybe is stability… and Gnome does some things well, like quicksettings and all.

                I also like that GTK is easier to develop for probably, with Gnome Builder and similar tooling. But at the same time, the UI would be pretty much unusable for complex apps like Dolphin.

                I tried Gimp 3.x prerelease and well, GTK3 is weird, its already this step away from the more similar styles.

                Well rebasing is pretty nice, its swapping out the foundation while keeping the top intact. For things like Kinoite->Ublue-kinoite-main its just a reboot.

                • DidacticDumbass@lemmy.oneOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 year ago

                  Do you need to pin the last working ostree before rebasing? I guess I want an easy way to switch between working environments without a lot of rebasing.

    • DidacticDumbass@lemmy.oneOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      The differences do seem enormous when one first encounters linux. They shrink every install though, but it takes some time for the magic to wear off.

  • IninewCrow@lemmy.ca
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year ago

    I got started in Linux about 15 years ago. I’m not skilled nor a techie but knowledgeable enough to make things work. After running endless cracked windows machines I switched to Linux and started distro hopping. But I didn’t have enough money at the time to afford a lot of hard drive space.

    I remember going from one distro to another while trying to transfer a couple of GBs worth of work on the same drive. Two GB of data was a big deal to me at the time. At one point late one night after about the tenth distro attempt, I wiped an entire drive worth of my unbacked up work. Worst moment of digital loss I ever had.

    I’ve kept double triple and quadruple backups since then … and I still worry about losing data.

    • DidacticDumbass@lemmy.oneOP
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      That is haunting.

      I tend to be pretty cavalier with my data, because only recently have I started amassing anything of value (starting to be the adult I needed to be 10 years ago).

      Yes… I have some storage shopping to do.

      It was waaay past midnight when I made my mistake. I should have been sleeping at least 3 hours before.

  • Starbuck@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    It sounds like you need to learn about disk forensics before you go any further. Check out FTK

      • Starbuck@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        Unless it was encrypted, it prob doesn’t matter. The partition table is just the road map that points to the houses (files). A tool like FTK or PhotoRec goes byte by byte to find the files and figure out what they are. You won’t have file names, but the data might still be there.

        • DidacticDumbass@lemmy.oneOP
          link
          fedilink
          English
          arrow-up
          6
          ·
          1 year ago

          I got it running now! I did not have that much to recovery, so everything will fit in home. Mostly word files, PDFs, and pictures. Few movies and music.

      • static-dragon@lemmy.zip
        cake
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        Oh, I’ve nuked partitions in the past before, and was able to recover using photorec, when doing it, just make sure you don’t save the files to the drive you’re running recovery on

      • Starbuck@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Also, all of us have done things because we didn’t know better. The only dumb thing to do here is to not learn how to fix this. Try and fail, so next time you know how it works and can do better.

        • DidacticDumbass@lemmy.oneOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Thank you! This is just my way of laughing at the situation. I am definitely learning some new skills like data recovery and critical thinking.

      • BolexForSoup@kbin.social
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Appreciate the good humor on your part! I’m just being a bit tongue in cheek but PSA: everyone should follow 3-2-1 backup protocol! You’ll never lose your data again!

        3 backups
        2 formats
        1 off-site

        So I recommend everyone get 2 decent HDD’s (2nd is clone of 1st) and 1TB of cloud storage. Most services are under $100/yr and let me tell you, you’ll want to spend 5x that to save half of what you lose without it. It’s easier and cheaper than ever to follow this system.

        • DidacticDumbass@lemmy.oneOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I may or may not have a OneDrive account that I was paying 2 bucks for but cancelled when it charged full price. I may actually have a lot of the important stuff on there!

          Alas, none of the newer stuff like my upated password manager key and anything else after I ended my brief return to Windows.

          Yeah, cloud storage is not the monster after all.

  • pixelscript@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    I put my home directory on another partition, because I heard very early on that it can better facilitate distro hopping. That is not the stupid part, that’s actually good advice.

    The stupid part was assuming that Linux users are identified by name, and that as long as I create a user with the same name as the one on my previous install, things would Just Work.

    Im reality, Linux users are integer IDs under the hood. And in my original system, my current user at the time was not the first user I had created on that system. Thus, when I set up my new OS, mounted the home partition, and set the first user to have the same name, I was immediately unable to log in. The name match meant I was trying to read my home dir, but the UID mismatch was telling me I had no permission to read it. I was feeling ballsy with the install and elected to not enable the root user, so I had an effectively bricked OS right out of the box.

    I’m sure there was some voodoo I could have done to recover it on that attempt, but I just said screw it and reinstalled.

    • hperrin@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      There is a way to recover it. You can use a root shell aka recovery shell (usually available through your GRUB menu) to change the permissions on your home directory. But just reinstalling was probably easier anyway.

    • jcg@halubilo.social
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 year ago

      All you really would’ve need to do is update the ownership via root user, which you can actually do from the installer. Kinda funny cause you already went through the process of mounting and running the installer, so you were already there.

  • Lunya \ she/it@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    I wiped my drive with a lot of non-backed-up data on it intentionally because the Fedora installer was too confusing. Lost among other things my Celeste and Minecraft saves, a lot of images, and other stuff with sentimental value.

    • DidacticDumbass@lemmy.oneOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Damn. I am sorry for that loss. I agree, I am always boggled every time I use the Fedora installer. I don’t know how I clicked the wrong disk. I didn’t read close enough, or I don’t know.

      I hope the new things you make are better than what was wiped.

      • Lunya \ she/it@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Tbh I don’t even remember much of the stuff that I lost anymore. I had a lot of images, a legally downloaded series, a good amount of legally downloaded music that I keep forgetting I don’t have on my phone, the aforementioned game saves, and I don’t remember more rn. I was luckily more creative during school so the more important stuff (Siberian sniper crocodile) was on another device.

        • DidacticDumbass@lemmy.oneOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Lucky me most of the important stuff are things I have on another computer, or can redownload from email or whatever service that needed it.

          But my new passwords… oh well. Recovery is typically easy.

          What sucks is losing things you did not know you would need or miss until much later.

    • DidacticDumbass@lemmy.oneOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I think I have done that a couple of times intentionally. Seems like one of those cognitive dangers that is harmful because you know it.

  • Pope-King Joe@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    I once nuked a 6TB drive full of Steam games. Started a full format of the drive. Didn’t realize until it was too late.

    • DidacticDumbass@lemmy.oneOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Wow. If I could teleport you some cake I would invite you to take it. That is a lot. I cannot imagine how long it took to redownload.