this post was submitted on 01 Dec 2025
1186 points (98.9% liked)
Programmer Humor
27726 readers
78 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Everyone should know most of the time the data is still there when a file is deleted. If it's important try testdisk or photorec. If it's critical pay for professional recovery.
That's not necessarily the case with SSDs. When trim is enabled, the OS will tell the SSD that the data has been deleted. The controller will then erase the blocks at some point so they will be ready for new data to be written.
Why does anything need to be erased? Why not simply overwrite as needed?
It's not possible to overwrite data on flash memory. The entire block of flash has to be erased before anything can be written to it. Having the SSD controller automatically erase unused blocks improves the write speed quite a bit.