this post was submitted on 28 Nov 2026
151 points (96.3% liked)

Programmer Humor

34328 readers
696 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 3 years ago
MODERATORS
 
top 19 comments
sorted by: hot top controversial new old
[–] REDACTED@infosec.pub 1 points 6 hours ago* (last edited 6 hours ago) (2 children)

I thought windows stopped doing the cache thing with some windows 7 updates, making the "unsafe unplug" kind of a myth.

macOS and Linux: These systems generally still use write caching on USB drives by default, so ejecting prevents incomplete writes.

[–] umbraroze@piefed.social 2 points 5 hours ago

Funny thing, I've specifically enabled direct writes on all of these USB hard drives with the Windows drive tool thing. They all behave well.

Except this HDD that I use for Steam games. The external HDD one that I use the most. (Murphy's Law I guess.) I have specified it should write stuff directly. Most of times time I eject the drive, it gives the above error anyway and I have no idea which program is blocking it. (Last I tried one program that was supposed to be able to tell this, it said it was in use by Dropbox, which is stupid, because I explicitly told Dropbox not to screw with USB drives, and by far, it doesn't.) And the infuriating thing is that sometimes it just ejects okay and I have no idea why.

[–] Honytawk@discuss.tchncs.de 1 points 5 hours ago

It is. I've tried to break it in the past, but it is damn hard to do.

Even unplugging while it is actively writing just causes a single corrupted file. You can deleted it and start over.

But I do believe it depends on how it is formatted. There would most likely be a bigger problem if it was FAT32.

Other OSes like Mac do still cache and it can mess up everything if not ejected properly.

[–] QuadratureSurfer@piefed.zip 32 points 1 day ago (2 children)

I wish the tool from Windows PowerToys for figuring out what's holding on to the drive came standard with the OS.

[–] Havatra@lemmy.zip 24 points 1 day ago (1 children)

It definitely should! The message of "close any programs that MIGHT be using this device" is so unhelpful, and it's been like this since at least Windows 2000, I believe.

[–] Valmond@lemmy.dbzer0.com 5 points 1 day ago

Oh, it was the explorer! 😞

[–] AliOski@feddit.nl 3 points 1 day ago (1 children)

Wait what? PowerToys has something like that? What is it called? Since when does that exist?

[–] QuadratureSurfer@piefed.zip 5 points 1 day ago* (last edited 1 day ago) (1 children)

You need to enable "File Locksmith" in PowerToys, then right click on the drive and select "What's using this file?".

Edit: I know it's existed for a few years at least, I'm not sure exactly when it was implemented.

[–] AliOski@feddit.nl 4 points 1 day ago

Aha interesting… I was aware of its existence but I always assumed it had something to do with encryption due to its name…

[–] Susaga@sh.itjust.works 25 points 1 day ago (1 children)

This works great until your computer dies in the battle of Ostagar.

[–] umbraroze@piefed.social 8 points 1 day ago

Ah ha ha! You card! I have already played it! ...oh shit, I've not yet played the Return to Ostagar DLC.

[–] AliOski@feddit.nl 15 points 1 day ago* (last edited 1 day ago)

It is always those damn background processes… especially EA Games has a very annoying background process that takes more than a damn minute after closing the game to finally quit and let you eject your external disk.

[–] RogueBanana@lemmy.zip 10 points 1 day ago (1 children)

Do not let the clanker tell you what you do. Pull that shit out, there definitely won't be any problems and you will not regret it.

[–] dan@upvote.au 6 points 1 day ago

It's usually fine if you were only reading files from the drive. If you were writing files, they may still be in the cache and not fully written to the drive yet, so pulling out the drive can corrupt the files.

[–] ArfArfWoof@europe.pub 4 points 1 day ago (1 children)

if it's using my external drive without my knowledge, it's not important enough. let that mf burn

[–] zerofk@lemmy.zip 12 points 1 day ago

The reason for the warning is that it might corrupt the external drive’s file system. It’s not so much a threat to the application.

[–] sundray@lemmus.org 4 points 1 day ago (1 children)

Get your resmon.exe on son

[–] AliOski@feddit.nl 1 points 1 day ago (1 children)
[–] sundray@lemmus.org 4 points 1 day ago

Windows Resource Monitor, you can use it to find which programs are accessing your USB drive, preventing you from ejecting it.