Comments (5)
I would expect macOS to ask for a password, similar to how it would work when you manually mount the volume. Obviously, this is annoying so you probably want to store the password in the keychain so it won't ask you for a password (anymore).
from ejectify-macos.
I have an encrypted drive attached to my Mac, which I use for Time Machine backups. The password is stored in my keychain; when I plug the machine in, it mounts the drive without prompting.
When I put the machine to sleep, Ejectify correctly unmounts it (hooray!).
However, when I wake the machine up, it doesn't get remounted properly. Poking about in Console.app, I see messages like:
default 15:56:18.507698+0200 authd Succeeded authorizing right 'system.volume.external.mount' by client '/Applications/Ejectify.app' [516] for authorization created by '/Applications/Ejectify.app' [516] (13,0) (engine 663)
default 15:56:18.543385+0200 authd Succeeded authorizing right 'system.volume.external.mount' by client '/usr/libexec/diskarbitrationd' [88] for authorization created by '/Applications/Ejectify.app' [516] (2,0) (engine 664)
default 15:56:18.768773+0200 kernel nx_kernel_mount:1134: disk3 initializing cache w/hash_size 8192 and cache size 32768
default 15:56:18.918466+0200 kernel nx_kernel_mount:1402: disk3 checkpoint search: largest xid 63145, best xid 63145 @ 254
default 15:56:18.919792+0200 kernel apfs_mount:24470: Failed to unwrap metadata crypto state: 22
default 15:56:18.919871+0200 kernel apfs_vfsop_mount:1894: apfs_mount failed, err: 1
default 15:56:18.919872+0200 kernel apfs_vfsop_mount:2180: apfs_vfsop_mount failed, err: 1
default 15:56:19.104686+0200 kernel spaceman_iterate_free_extents_internal:2942: disk3 nx_unmount detected while processing dev=0 cib=1 out of 30 cibs
default 15:56:29.227507+0200 kernel nx_kernel_mount:1134: disk3 initializing cache w/hash_size 8192 and cache size 32768
default 15:56:29.364609+0200 kernel nx_kernel_mount:1402: disk3 checkpoint search: largest xid 63145, best xid 63145 @ 254
default 15:56:29.368252+0200 diskarbitrationd unable to mount /dev/disk3s2 (status code 0x0000004D).
error 15:56:29.368268+0200 diskarbitrationd unable to mount /dev/disk3s2 (status code 0x0000004D).
That certainly looks as though Ejectify is trying to mount it, but it's running into some sort of error because it can't “unwrap metadata crypto state”. I'm not prompted for a password or anything like that; the drive simply doesn't get mounted.
If I head over to Disk Utility and click the “mount” button on the relevant volume, it immediately mounts, with no errors appearing in the Console and no password prompt appearing on screen.
I'm not really sure how to debug that — any suggestions much appreciated!
from ejectify-macos.
Sounds odd indeed. Have you tried verifying & repairing the volume?
from ejectify-macos.
Volume verified fine and didn't need repairing.
After a bit more experimenting, I realised I see the same log message (“Failed to unwrap metadata crypto state: 22”) when I tried to use diskutil mount
in the terminal, but that diskutil apfs unlockVolume
works fine (after prompting for a passphrase). Maybe that implies that there's some other API call needed for an encrypted APFS volume?
from ejectify-macos.
Duplicate of this planned enhancement issue.
from ejectify-macos.
Related Issues (20)
- Add support for internal volumes (SD cards, images, etc.) HOT 6
- Hide icon in menu bar
- Still getting 'Disk not ejected properly' on Monterey HOT 22
- Manually unmount all volumes HOT 1
- Mute notifications
- Settings are unclear (to me) HOT 2
- Eject disk when power source switch from AC to battery HOT 10
- Compatibility with Ventura HOT 3
- Check Mount Point of Drive HOT 4
- When re-mount add drive to Spotfire ignore list again HOT 1
- Add support for NTFS (via Tuxera) volumes HOT 2
- link is dead, where to download Ejectify? HOT 1
- Time Machine volume not automatically remounting HOT 8
- Remount HOT 1
- Option to close/reopen application that is using a given drive that you need to unmount HOT 2
- Ejectify seems to fail working with non-admin accounts HOT 7
- Custom eject scenarios HOT 3
- Don't show Ejectify running in Activity Monitor after reboot?? HOT 3
- Option to Mount Disks on Click HOT 3
- Notification when disks have been ejected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ejectify-macos.