Sample Header Ad - 728x90

How to truly securely erase a nvme disk?

1 vote
4 answers
1061 views
I was trying to securely erase my disk, and realized this is a much more difficult task than I expected, and even the first link of stackexchange is not really updated, and quite dangerous indeed https://unix.stackexchange.com/questions/593181/is-shred-bad-for-erasing-ssds I was going to use shred from live linux usb, but it appears it is not safe for SSD (and nvme?) so I should used blkdiscard -s but it says my device is not supported blkdiscard: /dev/nvme0n1: BLKSECDISCARD ioctl failed: Operation not supported The other question is quite dangerous because it says they are not worried with advanced data recovery methods, but this is not my case, and the first result in google shouldn't make people do dangerous things. I also discovered this ATA Secure Erase from the linux kernel but even they say this is outdated I am looking for what is truly the most secure method for erasing data in a device, like if your life depends on it, short of burning the disk to ashes or something. So based on my research what we should do is blkdiscard -s if supported, also blkdiscard -v and then also just to be sure shred -v Tear of the hardware is not a concern at all, but can we even trust that software solutions can be 100% safe those days?
Asked by Freedo (1384 rep)
Dec 4, 2024, 04:23 AM
Last activity: Dec 4, 2024, 06:19 PM