Home > Questions

How to Enter Password to Mount APFS-encrypted Drive on Mac?

I want a script to show the popup window to ask me for entering the password for unlocking the APFS-encrypted volume. Is it possible? I don't want my APFS-encrypted volume to be automatically mounted every time I log into my Mac.

Best Answered by

Connie Yang

Answered on Tuesday, August 27, 2024

I get what you mean. Your APFS-encrypted drive won't ask you for entering the password to unlock it. It skips this step to automatically mount the drive at the time when you log into your Mac right?

This is similar to my APFS-encrypted external hard drive that doesn't ask for a password when connected to Mac. This issue is most probably caused by that you've saved the password in the keychain. To put it more bluntly, you've checked the box next to "Remember this password in my keychain" on a previous pop-up that asks for a password.

To make the pop-up asking for a password to unlock the APFS-encrypted volume appear again, you don't need to execute a script. You just need to remove the password for unlocking the APFS-encrypted volume from Keychain Access.

Here's how:

  1. Open Launchpad > Other > Keychain Access.
  2. Enter the disk name of your APFS-encrypted drive into the upper search box on the Keychain Access window.
  3. Check if your APFS-encrypted drive is listed there. If it is, right-click on it and choose "Delete" to prevent the keychain from saving the password for unlocking the disk.