SUMMARY Linux Mint does that and its very convenient. Once you enter the password and remember it (working with KWallet too) it automatically mounts LUKS drives, making them way easier to use STEPS TO REPRODUCE 1. mount a LUKS encrypted drive 2. enter the password and "remember" it 3. unmount it, mount it again OBSERVED RESULT The password is entered automatically but you need to enter the sudo password twice EXPECTED RESULT Once the password is saved the drives should auto-mount SOFTWARE/OS VERSIONS Operating System: Fedora Linux 37 KDE Plasma Version: 5.27.1 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.1.14-200.fc37.x86_64 (64-bit) Graphics Platform: Wayland
Use case: backup drive, very long password and keyfile stored on Computer
It looks like this feature is already available in Plasma. If you go to System Settings -> Removable Storage -> Removable Devices, there should be an option to mount a drive (or any drive) when it gets attached to the system or when logging into Plasma. Alternatively, you could use crypttab to mount the LUKS drive on boot before reaching the desktop.
Thanks, automount works. Still I find cryptsetup hard to understand, I got to the point of entering "a keyphrase" (my password?) and it didnt work. Automount works perfectly, at least now the drive pops up on start. Still I have to press enter and enter my sudo password. Its a really tiny change, I dont know how entering the sudo password could be avoided (I also think its the fault of the OSTree filesystem)
A part of that would be to allow the user to use udisks without sudo permission. I dont know if this is a security problem. Linux mint allows it, doesnt have to say anything of course.