shamelessly stolen from nixCraft on mastodon

    • AccountMaker@slrpnk.net
      link
      fedilink
      arrow-up
      19
      ·
      1 year ago

      I actually did this once. My USB was on /dev/sda instead of sdb and I didn’t bother to check. It took me like 2 days to fix it because you can’t just delete partitions and start over normally, it changes some flags on your drive that you need to manually reset for them to be usable again. Fun times.

      • psion1369@lemmy.world
        link
        fedilink
        arrow-up
        14
        ·
        1 year ago

        I once mistyped and didn’t realize until it was done that I wrote a Fedora ISO to the home partition. I didn’t even realize what I did until everything was done and wiped out.

    • kbotc@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      5
      ·
      1 year ago

      Disk Duplicator is a destroyer? Man, I used to image so many drives with DD back in my helpdesk days…

      • Affine Connection@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        1 year ago

        dd does not stand for “disk duplicator”. That’s a modern backronymization that doesn’t reflect the original general usage of the command which is to “convert and copy”. Efficiently (with respect to I/O) copying raw data is only one of its intended purposes; it also converts text encodings.

    • bzLem0n@lemmy.ca
      link
      fedilink
      arrow-up
      14
      ·
      1 year ago

      It’s even easier to prevent confusion if you use /dev/disk/by-id/ id’s, it only took a few times of overwriting the wrong disk to figure that out.

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

        When I accidentally decimated my external hard drive, it had NTFS cause there were a few windows machines I would plug it in. Then I reformatted the disk but then I thought to myself, should I have another partition for my Linux machine because that drive gets corrupted and then I need to plug to a Windows machine to repair it once in a while. Then I created an ext4 partition on the disk. Then a few days after I shrinked the NTFS partition and extended the ext4 to the whole disk. Now that disk only has one partition called sda2. Which is kinda weird but makes it easier to distinguish from others disks on the system.

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

      I just make use of my paranoia, so I triple and quadruple check. Then get a coffee and quadruple check again. Never messed up once

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

      Even if it’s similar names I’d normally plug in USB, do dmesg, then issue a command with latest device name.

  • foyrkopp@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    1 year ago

    Anyone who hits enter on a dd command without triple-checking it gets exactly what they deserve.

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

    I always prefer the bulkier /dev/disk/by-id/ symlinks because of this