• hemko@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    1 day ago

    I don’t think you need to delete the partitions separately, since it’s just a table at the very beginning of which parts of the disk belong to which partition?

    So if you dd zeroes over everything, the first thing that gets deleted is the partitioning table

    I might be wrong here, or maybe it doesn’t apply to every situation, but that’s how I’ve understood it to work

    Also a tip for OP: don’t write zeroes over it, but random data (dd if=/dev/urandom ...). It’s a bit more secure as it makes it harder to see the size and location of the encrypted data on the disk

    • Beacon@fedia.io
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      I’ve found that on some systems and some utility apps, if there are partitions present then doing a zeroing pass only zeros the partition rather than the entire drive itself

        • naeap@sopuli.xyz
          link
          fedilink
          arrow-up
          8
          ·
          1 day ago

          Yeah, dd does as told and doesn’t care about your tears about the stupid typo

        • Beacon@fedia.io
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          Correct, it was the built it disk utility app on Mac. I had a giant drive with a few partitions and clicked to do a zero pass and it finished in a half second. Obviously there was no way it completed that fast. I did some empirical testing based on completion time and sure enough it only zeroes a single partition rather than the entire disk

          • ayyy@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            23 hours ago

            I miss when Disk Utility was good and simple and predictable on MacOS. It’s such steaming shit now.