nielsmouthaan / ejectify-macos

Ejectify automatically unmounts external volumes when your Mac starts sleeping, and mounts them again after it wakes up.
https://ejectify.app
Other
386 stars 50 forks source link

Possible issue with Mac OS Big Sur #12

Closed garyshell closed 2 years ago

garyshell commented 3 years ago

I recently upgraded to Big Sur and occasionally ejectify is not ejecting my external hard drive when the MacBookPro goes to sleep. At my office the MacBook lives in an upright holder and is attached to a USB-C dock where my TimeMachine drive is plugged in. I put the MacBook to sleep and disconnect the dock each night to take the MacBook home. Normally the next day when I plug things back in, there is no warning. Since the Big Sur upgrade I am occasionally (not every day) seeing the dreaded "DISK NOT EJECTED PROPERLY" notification.

nielsmouthaan commented 3 years ago

Have you tried switching to another "Unmount when" mode, e.g. "Screen is locked"? That option appears to work better in my case.

alpsoy commented 3 years ago

Same issue here. I've just downloaded the app, but it seems it does not work when I put my MBP to sleep. It works when I lock it as @nielsmouthaan suggested tough, but I would expect it to work for sleeping too as it was the main reason why I started using the app. I am on macOS 11.1.

nielsmouthaan commented 3 years ago

@alpsoy How are you putting your MacBook to sleep? And does setting "Unmount when" to "Screen is locked" fully solve your issue? Like I said, this option works better for me too as my screen (that has my drive connected) powers off automatically when macOS instructs my screens to start sleeping. Hence, "System starts sleeping" is too late already.

garyshell commented 3 years ago

My drive is connected directly to my MacBook Pro via a USB-C cable. I have not tired the "screen is locked" option. The app worked fine until I upgraded to Big Sur, and as I initially said this issue is only occasionally happening. Most of the time when I put the machine to sleep, disconnect the MacBook and then take it home and the following day reconnect the drive back at the office and then wake the laptop I see no warning about the disk not being ejected. But once in a while I am seeing that error. Prior to Big Sur I never saw the error after installing ejectify.

alpsoy commented 3 years ago

@alpsoy How are you putting your MacBook to sleep? And does setting "Unmount when" to "Screen is locked" fully solve your issue? Like I said, this option works better for me too as my screen (that has my drive connected) powers off automatically when macOS instructs my screens to start sleeping. Hence, "System starts sleeping" is too late already.

I put it to sleep via Alfred, so it is system command. Actually my external screen never turns off completely, so the external drive has power all the time. I just want it unmounted to prevent from sudden power outages which happens frequently during night time.

nielsmouthaan commented 3 years ago

I put it to sleep via Alfred, so it is system command. Actually my external screen never turns off completely, so the external drive has power all the time. I just want it unmounted to prevent from sudden power outages which happens frequently during night time.

And does it not work at all in your case, or just randomly? In the case of the latter, is there anything you feel could be related?

alpsoy commented 3 years ago

I put it to sleep via Alfred, so it is system command. Actually my external screen never turns off completely, so the external drive has power all the time. I just want it unmounted to prevent from sudden power outages which happens frequently during night time.

And does it not work at all in your case, or just randomly? In the case of the latter, is there anything you feel could be related?

I have made several try outs with different scenarios, like manually ejecting the disk for the night. The problem seems like some kind of weird combination of macOS & my display's power on behaviour, which together mount the disk back. So cannot make sure if there is anything related directly with Ejectify. Thank you for help.

nielsmouthaan commented 3 years ago

The upcoming version will support multi-selecting "Unmount when" options. Perhaps this could solve your issue?

bradycline commented 3 years ago

Not sure if it's the same issue, but I purchased Ejectify, left at default settings and the very first time I let it sleep, I was greeted by this when I opened the lid. This is the type of problem I was trying to avoid by getting Ejectify. Luckily, the drive was still readable. I just got the new version and I'll try some of the options. Screen Shot 2021-04-25 at 2 16 15 PM Big Sur. M1 MacBook Pro. SanDisk Extreme SSD connected by USB-C.

nielsmouthaan commented 3 years ago

That's odd. Ejectify only tries to unmount the volumes (safely, unless you enabled Force unmount) when it detects your system starts sleeping (depending how you configured Unmount when). This might be a volume issue. I would recommend you to verify and repair it via Disk Utility.

volcarock commented 3 years ago

That's odd. Ejectify only tries to unmount the volumes (safely, unless you enabled Force unmount) when it detects your system starts sleeping (depending how you configured Unmount when). This might be a volume issue. I would recommend you to verify and repair it via Disk Utility.

I had the problem, that Ejectify only worked correct with "Force unmount" enabled (Mac Mini M1, USB-C-Hub, Lacie & Seagate SSD) . After repair of the SSDs via Disk Utility, Ejectify works correct without "Force unmount" enabled.

Now my question: do I understand it correctly than when I enable "Force unmount" it is not safe for the hard drives?

nielsmouthaan commented 3 years ago

That's odd. Ejectify only tries to unmount the volumes (safely, unless you enabled Force unmount) when it detects your system starts sleeping (depending how you configured Unmount when). This might be a volume issue. I would recommend you to verify and repair it via Disk Utility.

I had the problem, that Ejectify only worked correct with "Force unmount" enabled (Mac Mini M1, USB-C-Hub, Lacie & Seagate SSD) . After repair of the SSDs via Disk Utility, Ejectify works correct without "Force unmount" enabled.

Now my question: do I understand it correctly than when I enable "Force unmount" it is not safe for the hard drives?

It might corrupt data, which could affect both the app using that data, or the volume entirely. It seems like an app is preventing the volume from getting unmounted properly. Can you take a look at this StackOverflow answer and see if this helps finding the app that causes this?

nielsmouthaan commented 2 years ago

This planned enhancement is a possible solution to this issue. It will disable the notification entirely.