I have a LUKS encrypted filesystem on a second internal hard drive that I use as a backup. It was working fine but now, after doing a complete reinstall of Ubuntu Gnome 17.04 (onto the primary hard drive, not onto the encrypted drive) when trying to decrypt the encrypted drive (e.g. using Gnome Disks) I'm getting this error:
Error unlocking encrypted device
Error unlocking /dev/sdb1: Command-line `cryptsetup luksOpen "/dev/sdb1" "luks-..."' exited with non-zero exit status 2: No key available with this pass-phrase
I am definitely typing the pass-phrase in correctly (I've used it successfully hundreds of times). Can anyone help me figure out how to decrypt and mount this?
One thing that I'm worried about is that the Ubuntu Gnome installer might have caused this. I did a complete reinstall of Ubuntu Gnome onto the primary drive,
/dev/sda, it did correctly wipe and install onto sda not sdb, but when the installer finished I was left with an error message, something like: "Failed to install GRUB onto /dev/sdb". Huh?
It gave me an option to re-try the GRUB install onto a drive of my choice, but this kept failing even when selecting the correct drive (sda).
In the end I physically disconnected sdb and re-ran the Ubuntu Gnome installer to force it to try to install GRUB onto sda the first time and it worked, but now after re-connecting sdb and booting into the new Ubuntu Gnome instance on sda I can no longer decrypt the encrypted drive (sdb). I wonder if the Ubuntu Gnome installer's failed attempt to install GRUB onto the wrong drive destroyed the keys.