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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] mvirts@lemmy.world 125 points 1 week ago (22 children)

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.

[–] cmnybo@discuss.tchncs.de 14 points 1 week ago (4 children)

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.

[–] chunes@lemmy.world 1 points 6 days ago (1 children)

Why does anything need to be erased? Why not simply overwrite as needed?

[–] cmnybo@discuss.tchncs.de 4 points 6 days ago

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.

load more comments (2 replies)
load more comments (19 replies)