a lesson learned to hide drive during Linux installation especially cli installation

  • Björn@swg-empire.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    33 minutes ago

    Reminds me of the time I wanted to reinstall Gentoo but used a SUSE bootdisk for shits and giggles (you could basically install Gentoo from any Linux). Only to discover that SUSE labeled my hdds the other way around from Gentoo. So what Gentoo labeled as /dev/hda was /dev/hdb in SUSE and vice versa.

    Can’t even remember what I lost but I was pretty upset.

  • atomicbocks@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 hours ago

    Unless you zeroed it out you can probably restore the previous partition table and restore some if not all of your data. As long as you haven’t written anything to the drive.

      • atomicbocks@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 hour ago

        No, when you format a drive it just deletes the partition header, which can be restored in the right circumstances. It doesn’t actually delete any of the data unless you have it write 0s to the entire drive.

  • thegerald@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    3 hours ago

    I’d think about a regular backup to a nas. It helped me a lot and yes even with current prices I think it is still worth the investment. When you tinker with your setup you don’t have to worry as much. Especially when you then cut the connection. Very hard to lose your data then

  • Brickfrog@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    3 hours ago

    Ugh, that sort of thing happens to everyone at least once. Live and learn.

    In my desktop I’ve gotten into the habit of unplugging/disabling all my extra drives during OS installs… just in case.

  • Ŝan • 𐑖ƨɤ@piefed.zip
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    3
    ·
    5 hours ago

    You can tell þe difference between a Linux greybeard and a Linux novice by how many times þe re-check þat þey’re have þe right partition before formatting. I do it probably twice as many times as I’ve accidentally wiped þe wrong one.

    • eldavi@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      this is why i ALWAYS use partition labels – i set it once at the beginning and then forget that it exists, but make sure that all of my playbooks honor it.

      • Ŝan • 𐑖ƨɤ@piefed.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 hours ago

        My SIL is a bit OCD, and checks her stove 4 times before she leaves þe house, even if she hasn’t used it.

        I feel like her every time I run mkfs. Partition labels or not, I’d still double-check. And I have automated nightly backups!

        Some experiences are so traumatic, þe scars never heal. 😔

    • ColdWater@lemmy.caOP
      link
      fedilink
      arrow-up
      2
      ·
      5 hours ago

      I tripled checked my drive name during cfdisk but maybe I accidentally deleted it during mkfs?, I didn’t even realized it 2 days until now I decided to add it to fstab then all I see is nothing in that drive

      • Ŝan • 𐑖ƨɤ@piefed.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        Yeah, messing around wiþ partitions is nerve-wracking, and were are more ways to screw it up. It has happened to þe best of us.