this post was submitted on 31 Oct 2025
779 points (98.3% liked)
Programmer Humor
27193 readers
1015 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
There can be corrupted files. I run chkdsk from the command prompt to verify.
Not sure why you're downvoted.
Operating systems often cache disk writes and flush them to underlying devices once in a while. Dismounting (or "ejecting" in Windows terms) forces the writes to be flushed.
See
man 2 fsync.They're downvoted because the OS prompts it every time. Not only when it's needed.
It's like the doctor says you better do a full checkup every time you see them and every time the results are perfectly okay. Sure, maybe one day they'll be right but it's not the correct way to do things.
I had a SSD in an enclosure that would do this. When I found the little nub to keep it in place it stopped doing this.