• Beacon@fedia.io
    link
    fedilink
    arrow-up
    24
    ·
    15 hours ago

    If it’s a spinning disk hard drive then do a low level format i.e. do a security write zeros on the whole disk (be sure to delete all partitions first). This will try to write a zero to every single sector, and any bad sectors will be removed from use.

    • hemko@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      13 hours 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
        ·
        12 hours 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

          • Beacon@fedia.io
            link
            fedilink
            arrow-up
            3
            ·
            7 hours 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
              1
              ·
              3 hours ago

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

          • naeap@sopuli.xyz
            link
            fedilink
            arrow-up
            5
            ·
            8 hours ago

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