When I unmount a LUKS partition using Nautilus, it gets unmounted and locked.
Using the command-line, I have to:
sudo cryptsetup luksClose encrypted_volume
after unmount, otherwise, re-mounting the unlocked volume is possible.
Can I make the locking automatic when unmounted?
I wonder how the system keeps the data accessible. Where is the password stored after it is unlocked, and what does it mean to forget the password after unlocking? How can the data be available if the system forgets the password?