How to automatically mount encrypted drives?

I have an internal hard drive with an encrypted partition. I would like my system to automatically mount without requesting additional authentication.

I have:

  • Created an encrypted partition with Gnome Disk Utility
  • Overrode “User Session Defaults” to unlock at system startup with encryption passphrase (see screenshot)

Despite that, I still have to click the disk in Files to mount it. It’ll ask me for my user password (not account password), and then it mounts the disk. What am I missing?

In order to be mounted automatically, without asking for passphrase, there is the option to edit /etc/crypttab and point to the passphrase file, then add an entry for the drive in /etc/fstab (in case you’re fine that the encrypted drive will be mounted for all users on the system).

Make sure to use the nofail flag in /etc/fstab, so that potential issues don’t make the system unbootable.