• lurch (he/him)English
    arrow-up
    13
    arrow-down
    0
    ·
    5 months ago
    link
    fedilink

    the shred command in Linux tries to do this, but it may not work if the hardware moves rewritten data blocks around to mitigate wear.

    • talEnglish
      arrow-up
      8
      arrow-down
      0
      ·
      5 months ago
      edit-2
      5 months ago
      link
      fedilink

      shred doesn’t even necessarily work at the OS level. If you use something like ext3 and I assume ext4, normally when you overwrite data in a file, you’re not overwriting data even at the logical level in the block device. Journalling entails that you commit data to somewhere else on the disk, then update the metadata atomically to reference the new data.

      It was more-practical in an era of older filesystems.