I am giving away a shitty 128GB SSD, which was used with LUKS 2 for most of it’s lifetime. As far as I know, it’s good practice to secure-erase it, but I’m too lazy to reinstall the OS on it (I already did it once). Is it really needed?

  • TrollAccount69@lemmy.ml
    link
    fedilink
    arrow-up
    14
    ·
    5 hours ago

    Secure erase just drops the ssd controllers table of where logical blocks are in the physical memory and trims the disk. Which is good and you should do.

    That means a person would have to address the memory directly with flying leads or a bed of nails or something. Or have special software that makes the controller tell them what’s on each physical block and then put that data together into a bunch of files.

    If that worries you, do dd if=/dev/urandom of=/dev/<disk> before you secure erase.

    Then everything on the drive will be random static before the secure erase drops the block table and trims, so even if someone uses magic power to read the block contents directly they just get to see static.

    That has the benefit of speeding up the drive by resetting read fatigue at the expense of one layer of writes which is always worth it.