• lurch (he/him)@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    13
    ·
    6 months 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.

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      6 months 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.