this post was submitted on 01 Dec 2025
1281 points (99.0% liked)

Programmer Humor

27690 readers
506 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Buddahriffic@lemmy.world 9 points 5 days ago (1 children)

Is that still the case with SSDs? I understood it to be a property of magnetic disks, and only possible because the drives can be disassembled and then read with a more sensitive reading head. I can't think of a way to do that with flash circuitry unless it's already designed to do that.

[–] RobertoOberto@sh.itjust.works 5 points 5 days ago (1 children)
[–] Buddahriffic@lemmy.world 7 points 5 days ago

Oh yeah, the bit where SSDs move sectors around for wear evening is important. Because of that, it's possible to completely fill up an SSD after deleting files and still have those files recoverable from the flash chips themselves. Without that secure erase, as I understand it, if a sector gets marked "bad", whatever data is there might stay there forever (or at least as long as the cells hold a charge).

So there's no benefit to writing multiple passes over deleted data on SSDs as far as the flash is concerned, but multiple passes might make it more likely for the controler to actually direct those extra writes to a sector actually storing the data (though the odds might be low unless you're overwriting all free space, though even that depends on how much space is free vs how many "spare" sectors there are, and even then it might be impossible to get it to write to a sector marked "bad").