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
370 stars 50 forks source link

Support to prevent selected disks to not be mounted on connect #77

Open tunttunen opened 1 month ago

tunttunen commented 1 month ago

Hi there,

Would be awesome to be able to define that certain external drives would not be mounted to system, when the drives are connected. The use case is this: when I connect my laptop to my CalDigit dock that has my backup external drive connected to it, becomes connected thus mounted to my system. When I unplug my laptop and go to meeting, the drive gets disconnected unsafely and might corrupt. So, when I really need the drive I would like to mount it via macOS, backup etc. and then unmount it after the backup is completed.

So would be great to have an option to prevent certain drives from mounting automatically on connect.

nielsmouthaan commented 1 month ago

You can uncheck a volume from the menu, which will make Ejectify ignore it.

tunttunen commented 1 month ago

By saying "ignore it" means that Ejectify will literally prevent it from mounting instead of just ignoring it (not doing anything concerning mounting to ignored mountable)?

nielsmouthaan commented 1 month ago

It will simply not unmount the volume when the specified trigger happens and won't (automatically) remount as a result.

tunttunen commented 3 weeks ago

The "ignore it" function does not do what this ticket was about.

When a drive X is ignored in Ejectify settings and I reconnect my dock to the laptop that has the drive X connected, the drive becomes mounted on connection. The request was about the preventing it from mounting every time the drive is being connected. The request is about an option to make a drive to be mounted manually (via the Ejectify app menu) when it is needed. This would ensure that when I connect and disconnect my laptop to/from the dock to e.g. leave to a meeting at the office, the drive will not get suddenly disconnected from the laptop without safe unmount process.

nielsmouthaan commented 3 weeks ago

Aha, I understand. I'm not sure if it's possible to avoid Mac from mounting a volume automatically. If it is, it is likely very low level. I'll mark this an enhancement ticket.