You miss my point. If you'd spend as much time checking similar settings on the mac and replacing drivers, you'd likely have a solution. Whining won't fix the problem, it is likely a hammered piece of code that is causing the problem on both your mac and the Window's folks machines that causes the problem. Maybe even a bit of malicious code somewhere on your machine that has been blocked by security fixes.
You may want to investigate how BSD Unix (which macOS is based upon) handles device drivers. In short, get off your butt and do some investigation. Stop whining like a 2 year old. Another alternative is to pay an independent shop to fix the problem (hopefully one with more know-how than either you or me).
If you want to investigate, instead of pout, you can start here:
Linux folks who have same issue find that disabling power saving features fixes the problem. They are saying that issue results from ill thought out power saving features included in the kernel. If true, this may be why the kill command temporarily seems to fix the issue. Weirdly, my problem started after laptop went to sleep following a VERY long Big Sur update (I'd gone to sleep before it completed). Try the usbd kill command listed by Slartibart (below). I haven't seen problem recently, following several security updates to Big Sur.
Maybe the usb dameon does not get shut down if the machine goes to sleep, and the extra running usbd tasks confuse the USB device driver? If macOS kernel also has this problem, it may be in the Darwin kernel (which incorporates parts of BSD, but (as far as I know) is not shared with Linux or Windows. The different groups may "borrow" design ideas from each other (unfortunately). Interestingly, Microsoft recommends turning off power saving mode on the USB ports (and/or reloading USB drivers).
en.wikipedia.org
Thank you for sharing a few things I- and anyone with this problem, of which there are MANY- can try. I could contribute a very long list of what I've tried, sourced from info all over the web- including Apple's support forum threads about this bug- but none of them lead to an actual solution... presumably because this is not a problem users can resolve without Apple fixing something in macOS.
I am offended by "2 year old/pout/whine" et all. You don't know me, my level of technical competence, my experience with such things and/or what I have or have not tried as a user to resolve this problem.
My original contribution to this thread about "unexpected ejections" by others believing it to be focused on WD drives was in a pure spirit of helping consumer-to-consumer... by letting all know that this is a
COMMON problem with
MANY enclosures/drives, not limited to only WD drives. A simple search of "macOS Monterey Unexpected Ejection" and similar will lead to
many threads all over the web with all kinds of people trying to deal with this. Some of those threads are on Apple's own support forums and some of those have dozens to hundreds of posts.
By letting anyone suffering such issues know that this is a BIG problem affecting many- but not all- enclosures, drives, etc, it can save them from doing what I've already done and you wrongly assumed I had not... which was (getting "off my butt" to) try
EVERY single thing I could find on the web to resolve the issue myself. I put several
DAYS into this, hunting down every "solution" testing it as objectively as I could and finding each wasn't a solution. Often it was simpler than that by reading later posts by those who had proclaimed something as solution to then come back rescinding that claim because the problem resumed for them.
I make my living on Macs and have very likely been using Macs for much longer than you have. This particular big storage is important to regular work flow tasks, so the urgency to "get off my butt" was much greater than average Joe with a comparable problem. I was on this on delivery of Mac Studio, stock, fresh, no migration, and before anything I might install can get some redirection blame. Having tried
EVERYTHING a user can try, I am near fully convinced that
this IS a macOS bug(s) and hoping that it is not a Silicon hardware issue, as those are the only 2 variables that are different in a very simple test:
- remains stably connected on Intel Macs running macOS BEFORE Big Sur,
- will not remain connected for more than about 3 hours on Mac Studio Ultra running latest Monterey.
Same cable, enclosure, drive, power source, etc rechecked now many times by re-attaching to Intel Macs to be sure it wasn't a coincidently "gone bad" scenario... and those 2 bullets absolutely apply. Tested every USB port on the back and front of Studio and even through 3 middleman Thunderbolt enclosures too. I've seen enough posts about this from people with Intel Macs having no issue before "upgrading" to Big Sur or Monterey to mostly rule out the Silicon (hardware) being at fault. Thus, the one variable that remains is macOS versions newer than Catalina.
Intel Macs do not require user Darwin knowledge expansion to yield a stable connection, power saver tweaks, terminal sudo or kill commands, etc. As is, the promise of ANY USB device- including ancient ones- U means
Universal. It's USB not "U*SB." It is supposed to be a "just works," plug & play technology.
I don't recall ANY case where anything USB- at least a few hundred pieces of third party tech- would NOT just plug & play with all of my many Power PC and then Intel Macs over the years. In fact, in trying to objectively diagnose this issue to the limits of my "2 year old" brain, I dug out ancient USB stuff long-since retired for testing. Much of it "just works" including stuff more than 15 years older than the enclosure giving me this problem.
This one will remain connected for up to about 3 hours but it will "unexpectedly eject" regardless of power setting tweaks: I've tried all such options. As a video editing big scratch drive, the primary use is with FCPX. During video work, neither it nor Mac could even get into power saving modes. In some cases, DURING active file transfer from or to it, it will "unexpectedly eject", so no power saving code should be in play during direct & obvious active use between both parts. Yes, I believe power saving code plays some role here but I am confident it is not solely the source of all of this, as active transfer "unexpected ejections" clearly illustrate.
It is a reliable brand enclosure- OWC- known for making quality Mac peripherals. It's hopefully temporary replacement which does "just work" using the
same cable is also from OWC. I've (hopefully temporarily) given up much more storage and speed for the replacement that does remain stably connected. So one from a reliable brand is stable and the other is not... which is common across many threads trying to resolve this same issue. Some USB stuff works with Silicon running Monterey and some does not. Apparently, the only way to know is to just try things and see what happens. That is clearly NOT USB but more like U*SB... until Apple gets around to fixing whatever it is.
All other "2-year olds" "whining" and "sitting on their butts" can chase every rabbit down every hole too- as this toddler
already has- but even in the "solutions" pursuit through thread after thread and YouTube video after video all over the web, most will keep seeing seemingly smart Apple people eventually proclaiming it a bug in Monterey or Big Sur... often
AFTER thinking whatever they tried
THIS time(s) actually resolved it.
This 2-year-old is about 90% confident that if Catalina could run on Mac Studio, my own problem would magically resolve... and hope that Ventura will reflect an Apple macOS team finally getting around to dealing with the bug(s) that is very likely causing this problem.