I am running CentOS 7.6 with the Mate desktop from epel. When I plug in a USB device such as a flash drive or hard drive which is encrypted with cryptsetup/LUKS I am presented with a dialog "Enter a passphrase to unlock the volume." This is cool except...
As part of my backup scheme I am archiving important files to an encrypted hard drive. I have a script which will:
1 - unlock the encrypted file system using a key-file
2 - mount the now unlocked file system located at /dev/mapper/backup
3 - perform various housekeeping and backup tasks
4 - unmount the backup file system
5 - relock the encrypted file system
6 - (will add this step) power down the USB drive to allow it to be disconnected
This works OK except that when the "Enter a passphrase..." dialog is present and I run the script I get a notification window "Unable to mount (file system label) - Operation was cancelled." However, the file system was in fact unlocked, mounted etc. The problem is that I have two unnecessary dialogs which I need to respond to/windows to close.
If I use dconfeditor and navigate to org/mate/desktop/media-handling/ and disable automount the above described issue is resolved. BUT... now the OS will not automount non-encrypted flash drives etc. I am not sure which is more of a pain
What I am looking for is a way to disable just the passphrase dialog. Any ideas?
TIA,
Ken