Nov 10, 2017

Mount encrypted volumes from command line

If you try to mount encrypted volume, you might get the error:
mount: unknown filesystem type 'LVM2_member'
mount: unknown filesystem type 'crypt-luks'
Here's what worked (/dev/sdb5 is the partition on my hard disk marked as crypt-luks):
udisksctl unlock -b /dev/sdb5
udisksctl mount -b /dev/mapper/fedora-root
After entering my encryption passphrase after being prompted on the the first step, I then ended up with:
Mounted /dev/dm-1 at /run/media/f8cf82c0-f0a3-41b3-ab28-1f9d23fcfa72
From there I can access the data.