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.

  • Naz@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    3 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.

  • Valmond@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 days ago

    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
      link
      fedilink
      arrow-up
      0
      ·
      3 days ago

      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
        link
        fedilink
        arrow-up
        0
        ·
        3 days ago

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

      • Dumhuvud@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 days ago

        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.

        • Valmond@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          3 days ago

          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.

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    3 days ago

    Honestly, i have the same on XFCE. But if i press the button to force eject, i get some dbus-black-magic-that-failed error and jank it out anyway.

      • DeathsEmbrace@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        3 days ago

        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 actually write it 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.

        • Droechai@piefed.blahaj.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 day ago

          Maybe you know why does my microSD card get corrupted any time its pulled unless “ejected”? I need to either “eject” if its on my computer or completely power down the device to keep it from corrupting. Ive tested in both camera and 3dprinter with same result.

          Is it just a crap card (its kingston 32 GB)?

          • DeathsEmbrace@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            20 hours ago

            From what I learned check to see if the card is set for better performance it makes it write to a cache as consequence but makes it faster on the other hand. I had this problem and this was my answer but other software might be messing with it as well but I always safely eject for good measure anyways.

        • Zanathos@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          2 days 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.

  • ohshit604@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    4 days ago

    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
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 days ago

      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
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        2 days ago

        Windows
        mountvol (drive letter) /p

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

      • Bloefz@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        3 days ago

        I often get situations where umount -f doesn’t even work :( Especially on a full desktop (not server) where some stuff is probably crawling the drive to make thumbnails or whatever.

  • elDalvini@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    4 days ago

    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.

    • zipzoopaboop@lemmynsfw.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 days ago

      Microsoft are giving brilliant at having both a million different equally useless errors and duplicate functionality

    • Zorque@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 days ago

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

      • kazerniel@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        2 days 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
        link
        fedilink
        arrow-up
        0
        ·
        3 days ago

        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

  • floofloof@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    4 days ago

    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.”

      • LonelyWendigo@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        3 days ago

        Moving files to the recycle bin and deleting files should take the same amount of time, both are essentially just a rewrite of the pointer to the data and don’t copy any data at all.

          • over_clox@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            3 days ago

            I take it you don’t filesystem much do you?

            Moving a file is literally just changing a pointer in the filesystem table to basically say ‘hey, these file contents are now stored in this other folder’. Moving a file on the same drive literally never requires rewriting the actual file contents.

            I’m practically certain that what’s slowing Windows down when sending something to the Recycle Bin is the background processing and data compression being performed by System Restore.

            • I take it you don’t filesystem much do you?

              I take it you don’t Windows much?

              Windows moves the file from its current folder to the hidden system folder C:\$Recycle.Bin\. That involves copying file metadata, updating NTFS records, and possibly moving the file across volumes (which becomes a full file copy+delete).

              Large files or folders with many entries take longer because NTFS has to record each move, update security descriptors, and maintain the Recycle Bin’s index.

              If the file is on another drive than the C-drive, the system literally copies it into that drive’s recycle bin folder, then deletes the original.

              Nobody said Windows did this stuff efficiently.

              I’m practically certain that what’s slowing Windows down when sending something to the Recycle Bin is the background processing and data compression being performed by System Restore.

              Windows doesn’t do any recycle bin data compression. And System Restore is a completely separate, unrelated system. So no it doesn’t do any of that.

    • qupada@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      4 days ago

      “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
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 days ago

        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
          link
          fedilink
          arrow-up
          0
          ·
          2 days 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
        link
        fedilink
        arrow-up
        0
        ·
        3 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.

    • fibojoly@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      4 days ago

      Deleting files was an amazing one already. Then I recently discovered the joy of deleting 30k emails from Outlook… T-T

      • brisk@aussie.zone
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        4 days ago

        I literally cannot understand how Outlook is so awful and unpleasant to use. Constant pauses, regular freezes and a search that will show a document I sent to myself five years ago regardless of search terms but won’t surface the perfect match I received yesterday, in the world’s most prominent email client.

        The only worse software I have to interact with on a daily basis is Adobe’s PDF reader, which gives me five popups within one minute of opening it and takes over a minute to do a text search in a five page document.

        • MonkderVierte@lemmy.zip
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          3 days ago

          I literally cannot understand how Outlook is so awful and unpleasant to use.

          Years of hü and hott between different teams, with different goals, not knowing what the other teams did.

      • floofloof@lemmy.ca
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        4 days ago

        I copied 400GB of assorted files in an RDP session today and Windows had to think for a minute or two, then copy them ever so slowly, then stop at 99% done, then crash Explorer and disable the start menu and taskbar and CTRL-ALT-DEL and all ways of getting to the Task Manager, and then freeze the whole machine so that I had to travel to the physical machine and hold down the power button, since when it has been unusably slow because Windows now wants to rebuild the RAID array, which takes days. This was a pretty average Windows session.

        • dan1101@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          3 days ago

          That thinking is so very annoying. This is all time that could be used to copy files.

          • floofloof@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            3 days ago

            The best bit is that if you lose patience and cancel, the “Cancelling…” takes even longer than finishing the job would have done. I really have no idea what’s going on. Journalling file systems in Linux don’t have to do this.

  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    4 days ago

    Dropbox is lying.

    Windows may be lying too, but the only thing certain is that dropbox is lying.

  • [object Object]@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    4 days ago

    I haven’t come across a single program that tells you what is blocking the ejection even in Linux. Sure, if you use the right tools you can find the culprit, but the program that does the ejection task seems to love being vague.