this post was submitted on 31 Oct 2025
774 points (98.3% liked)

Programmer Humor

27175 readers
1523 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
 

I don't fucking know why I can't eject USB hard drives. I installed the SysInternals apps, and best they can tell me is that Dropbox is fucking with the drives. I explicitly told Dropbox to not fuck with USB drives. I don't know who's lying, I just want whoever is fucking with the drives to stop fucking with the drives, OK??? OK.

top 50 comments
sorted by: hot top controversial new old
[–] lolola@lemmy.blahaj.zone 219 points 3 days ago (1 children)
[–] saltesc@lemmy.world 67 points 3 days ago

Restart to find out.

"Couldn't reboot because these programs"

9 of them

"Restart anyway?"

[–] Valmond@lemmy.world 24 points 2 days ago (5 children)

Then you stick a usb key in and invariably get the "windroze has detected a problem with the drive, scan or format?"

Do nothing and the drive works perfectly well.

[–] ChaosMonkey@lemmy.dbzer0.com 15 points 2 days ago (1 children)

There is a dirty bit indicating the disk was not ejected properly. It stays there until you use the "scan and fix" action. It doesn't indicate corruption directly.

[–] kautau@lemmy.world 2 points 1 day ago (1 children)

yeah many linux systems will run fsck on mount as well if that same thing is detected, it's not a windows specific thing

Actually had this occur on a USB NTFS drive I haven't migrated the data to another fs from yet. It mounts at boot so my whole system got hung up until I removed it from the fstab and installed the tools to scan and fix the ntfs filesystem from the aur.

Was like a 20 minute fix, including time to research the tools I needed to fix it.

load more comments (4 replies)
[–] elDalvini@discuss.tchncs.de 119 points 2 days ago (8 children)

Windows has that button, but only if you right-click the drive in file explorer and select "eject". The dialog is very similar, but has the option to continue anyways. That option doesn't appear when ejecting from the taskbar.

Which is weird, because it means that Microsoft went out of their way to make two different, almost identical dialogs. And they made the better one harder to reach.

[–] Zorque@lemmy.world 84 points 2 days ago (4 children)

Either that or they were added at different times by two different teams with two different design philosophies.

[–] kazerniel@lemmy.world 5 points 1 day ago* (last edited 1 day ago)

Reminds me of that story about Windows's format dialog. It's on Xitter, so here's the text:

Dave W Plummer

I wrote [Windows's] Format dialog back on a rainy Thursday morning at Microsoft in late 1994, I think it was.

We were porting the bajillion lines of code from the Windows95 user interface over to NT, and Format was just one of those areas where WindowsNT was different enough from Windows95 that we had to come up with some custom UI.

I got out a piece of paper and wrote down all the options and choices you could make with respect to formatting a disk, like filesystem, label, cluster size, compression, encryption, and so on.

Then I busted out VC++2.0 and used the Resource Editor to lay out a simple vertical stack of all the choices you had to make, in the approximate order you had to make. It wasn't elegant, but it would do until the elegant UI arrived.

That was some 30 years ago, and the dialog is still my temporary one from that Thursday morning, so be careful about checking in "temporary" solutions!

I also had to decide how much "cluster slack" would be too much, and that wound up constraining the format size of a FAT volume to 32GB. That limit was also an arbitrary choice that morning, and one that has stuck with us as a permanent side effect.

So remember... there are no "temporary" checkins :)

[–] kautau@lemmy.world 5 points 1 day ago (1 children)

yeah a fresh windows 11 install has like 20 different control panels, all built at different times by different teams using different UI toolkits. It's basically their philosophy to not unify anything but instead just keep bolting new things to different pieces of the OS, no matter how similar

[–] Scrollone@feddit.it 1 points 1 day ago

It's because they don't want to break compatibility with existing software. Which I understand, because if they broke old software then people could just migrate to Linux as well

[–] Rooster326@programming.dev 1 points 1 day ago* (last edited 1 day ago)

Yes that was the old Microsoft. The new Microsoft has fixed that problem All teams share the same design philosophy. >!Enshitification!<

[–] mobotsar@sh.itjust.works 40 points 2 days ago

It's definitely that one

load more comments (7 replies)
[–] Naz@sh.itjust.works 14 points 2 days ago

Force close Explorer.exe and you'll be able to eject

The USB drives are effectively perma-mounted and the eject command does not work, if even one instance of Explorer is open.

[–] ohshit604@sh.itjust.works 54 points 2 days ago* (last edited 2 days ago) (1 children)

Windows:

Someone else potentially has this file open, would you like to open a read only copy?

Linux:

Someone else potentially has this file open and they may have a newer version than you, would you like to save anyways?


Such a small difference but enough to make Linux superior.

[–] lazynooblet@lazysoci.al 36 points 2 days ago (3 children)

To be relevant to the post:

Windows

Someone is using the drive, you can't eject 

Linux

$ umount /mnt
unmount failed: device in use 
$ umount -f /mnt
$ 
[–] the_crotch@sh.itjust.works 2 points 1 day ago* (last edited 1 day ago)

Windows
mountvol (drive letter) /p

Just because you don't know the command doesn't mean it's not possible.

[–] Two9A@lemmy.world 21 points 2 days ago

The equivalent long option is --fuck-you

load more comments (1 replies)
[–] floofloof@lemmy.ca 74 points 2 days ago (22 children)

Not 99%. Windows has many usability issues. I'd vote for "dont steal focus and stick windows in front of where I'm typing" and "don't move things just as I go to click on them" for a start, and also "don't somehow take an hour to delete 50 files."

[–] qupada@fedia.io 38 points 2 days ago (6 children)

"Fun" fact: if you think it's slow normally (and to be fair, it is), NTFS seems to have a pathological performance regression when a directory contains more than 10,000 children, any operations on files in that directory slow down by around 95%.

I discovered this on our CCTV system at work (that runs on Windows Server 2022), which creates an inordinate number of small files (each containing at most a few seconds of video). It was causing some of its periodic maintenance tasks to fail, as they'd take longer to run than than the configured interval between them.

Windows also really doesn't like dealing with half-petabyte filesystems, just like... at all.

[–] the_crotch@sh.itjust.works 3 points 1 day ago (1 children)

Have you tried turning off thumbnails? In my experience when it slows down on large directories like that it's either trying to generate thumbnails or index a bunch of new files (which is also a possibility in your use case)

[–] qupada@fedia.io 2 points 1 day ago

A great thought on the thumbnails, but the behavior exhibits even when using command-line tools.

Indexing is off for the entire drive, I can't even begin to imagine what kind of mess that would make if it was on.

[–] hoshikarakitaridia@lemmy.world 10 points 2 days ago

I can also tell you that if you are working with file numbers in the 10,000, windows will notoriously interfere with their built-in services. When copying or moving, msdefender might delay every file copy because it marks the action as suspicious and begins scanning the files beforehand. And also the trkwrks or however that drive observation service is called may block actions on specific files just because.

In short, you are not only fighting drive formats at that point, you are also fighting your built-in system services. Source: I wanna die.

load more comments (4 replies)
load more comments (21 replies)
[–] somerandomperson@lemmy.dbzer0.com 30 points 2 days ago* (last edited 2 days ago) (1 children)

just yank it

fuck whoever is using the drive

[–] AnarchistArtificer@slrpnk.net 23 points 2 days ago (1 children)

I used to do this, because it didn't seem to cause any issues — until it did, and I lost a lot of data.

[–] DeathsEmbrace@lemmy.world 12 points 2 days ago* (last edited 1 day ago) (1 children)

People who say this I'll tell you what actually happens so you can know. When you tell it to safely eject all the volatile memory saved in RAM it actually writes to the permenant storage memory instead of holding it in volatile storage. Every time you yank you're betting that its not in volatile storage anymore and was written to storage. That's what safely eject does, forces the CPU to write to permenant storage.

Edit: the problem comes from whats doing what at what time and you will see why you can lose everything.

[–] Zanathos@lemmy.world 2 points 1 day ago

I simply don't put data I care about on USB drives any more. They are all basically boot drives or a way to transfer firmware files.

[–] stevedice@sh.itjust.works -1 points 1 day ago

Linux has that button and it just causes users to uninstall their desktop environment.

[–] Assassassin@lemmy.dbzer0.com 48 points 3 days ago (1 children)

It's even more fun when you're trying to do something with a file on a network share. There have been so many times where a user goes "it's telling me i can't save this because Suzie is using it", i close Suzie's abandoned session, and the file is still magically in use by Suzie. Why? Because the dialogue is broken and the file is actually open on John's machine. I fucking hate windows.

load more comments (1 replies)
[–] tamlyn@lemmy.zip 29 points 3 days ago (14 children)

How is linux handle such situations, i'm new using it and haven't looked that up yet, well i didn't got in such a situation yet, but i only used a handful of time a external hard drive

[–] umbraroze@piefed.social 34 points 3 days ago (26 children)

Basically, if you, as a regular user, cannot unmount a device, you can usually just go to root shell (sudo -i), see where the thing is mounted (just use mount) and then unmount it (umount /media/blah/floop). If it says the device is still busy, as root you can remount it as read-only and then unmount it (seeking documentation left as an exericise to the reader, as I'm sitting at a Windows system now).

There's also lsof ("list open files") tool, which can be used to see which exact programs are using files on that device, which you can then use to kill those sneaky processes (ps, kill).

load more comments (26 replies)
load more comments (13 replies)
load more comments
view more: next ›