• owenfromcanada@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    They call it disk destroyer for a reason. You gotta alias that shit.

    alias dd='echo Did you triple check which device you picked? Of course not, dipshit. Check again'

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 months ago

      They call it disk destroyer for a reason.

      There’s nothing specially destructive about dd. It’s just a program that opens a file, and if you tell it to open a device file and it’s got permission to write to it, it’ll write to it.

      You can just as easily overwrite a disk’s contents with anything else that will open a file and write to it.

      # cp /dev/urandom /dev/sda
      

      will wipe your drive with random data in the same way that

      # dd if=/dev/urandom of=/dev/sda
      

      will.

      • kettuli@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        mkfs.ntfs is the silent killer, other mkfs don’t allow writing over the root partition but summoning this kind of Windows magic will happily fuck up your shit.