Skip to content

โ›” Trace Erasure โ€‹

๐Ÿšซ Forensic โ€‹

DANGER

  • The best option is to use SSD encryption. However, if you want to add an extra layer of security, you can also erase your SSD beforehand.
  • Erase with /dev/zero: On SSDs, simple overwriting may not erase all blocks due to compression and wear leveling. Using /dev/urandom fills the disk with random data, reducing this risk.

๐Ÿ› ๏ธ Tools โ€‹

๐Ÿง Linux โ€‹

๐ŸชŸ Windows โ€‹

โšก Fast Commands โ€‹

Encrypt SSD quickly.

bash
cryptsetup luksFormat /dev/sdX --key-file <(head -c 64 /dev/urandom)

Some tools for erasing data.

bash
shred -v -n 3 -z /dev/sdX
blkdiscard blkdiscard /dev/sdX
hdparm --user-master u --security-erase NULL /dev/sdX
dd if=/dev/urandom of=/dev/sdX bs=1M status=progress