• @lurch
    link
    English
    131 month ago

    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.

    • @[email protected]
      link
      fedilink
      English
      8
      edit-2
      1 month ago

      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.