I usually use shred to delete complete hard drives.
But I was wondering if and how tools like shred, wipe or dd verify that the expected bits end up on the hard drive.
Does a hard drive always check after a write? Or is there some magic in how the magnetic storage thing works that always detects unwritable sectors or incorrect results on writing?
I also use badblocks -w
to wipe disks. Sure, it takes really long but what happens is quite transparent and I tend to trust it more.