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

Add support for NTFS (via Tuxera) volumes #47

Open kolexndr opened 2 years ago

kolexndr commented 2 years ago

Hi, App doesn't list Tuxera NTFS Volumes in its pupup menu and doesn't perform mount/unmount.

Is this behaviour happening especially on my side or is it typical case?

Environment details: Monterey 12.6 macFuse 4.2.5 + NTFS by Tuxera 2021.1

kolexndr commented 2 years ago

I've did some research myself and noticed the problem in ExternalVolume class at line 103 where function fromDisk() trying to obtain UUID for volume:

        guard let name = diskInfo[kDADiskDescriptionVolumeNameKey] as? String,
              let uuid = diskInfo[kDADiskDescriptionVolumeUUIDKey]
        else {
            return nil
        }

the code above is ok, but some debugging show me that diskInfo returned by DADiskCopyDescription() doesn't have UUID for NTFS volume...

i've tried to use console diskutil info command to check if UUID exists, but with no success.

My both external NTFS drives Kingston dongle and External SSD (nvme drive + usb enclosure) behave the same.

I hope this info can be helpfull for killing this issue or at least easier to fight against.

nielsmouthaan commented 2 years ago

Thanks, I'll look into this.