News for hackers. Stuff that matters.
Re:On overwriting disks (on OpenBSD 7.0-current) by projektfu on Thursday March 03, 2022 @10:38PM (#30550409)
Why is Secure Erase never mentioned in these articles? Not every drive supports it but it is a more secure way to erase SSDs and a faster way to erase self-encrypting disks. Also, for disks that require a full overwrite, it puts the disk into a mode that will continue running to completion even after a power failure.

On spinning disks, it might be good to cover your deletions as you go with random data, but you can’t use dd to do that. You’d need a filesystem-aware tool. On SSDs, the TRIM function may help you approach that.

https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase

Re:On overwriting disks (on OpenBSD 7.0-current) by tedunangst on Thursday March 03, 2022 @11:19PM (#30550657)
Personally, I would never trust the drive to implement secure erase in a secure manner.
Re:On overwriting disks (on OpenBSD 7.0-current) by scrapheap on Friday March 04, 2022 @03:29AM (#30552105)
Secure Erase is a very good method of erasing drives. However, this article wasn't looking at how to erase the content of the drive, it was looking at how to fill a drive/partition with randomness in preparation for using an encrypted file system on it (the randomness of the data the partition is filled with is important to help hinder cryptanalysis attempts).