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

iBoysoft author Connie Yang

Connie Yang

Answered on Tuesday, August 5, 2025

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.

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

macOS Tahoe ISO download

macOS Tahoe 26 ISO Download for VMware or VirtualBox

Here's the link to download macOS Tahoe 26 ISO file for VMware or VirtualBox and steps to create a macOS Tahoe ISO file yourself.

Tab key on Mac

What & Where is the Tab Key on Mac? Here're the Answers

This post introduces the Tab key on a Mac and tells you where it is. Moreover, it also provides solutions when the Tab key on your Mac is not working.