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).
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