I have an encrypted partition called keys.img that I have used for years. Here's how I've always decrypted and mounted it:
sudo cryptsetup open --type luks mykeys.img mykeys
sudo mount /dev/mapper/mykeys /mnt/mykeys
I recently restored a backup of this file to a new computer running KDE Neon (which is based on Ubuntu 20.04). When I try the same commands on the new computer I get the following error:
- No key available with this passphrase
The funny thing is, I'm able to decrypt the exact same file on a Debian server running version 10. So I think I'm missing something with the newer OS or kernel.
Here's what I've tried:
- Passwords: I'm not typing the password in either case, I'm copying and pasting it in. That leads me to believe that it's not a password issue.
- Checksum: Both copies of the mykeys.img file have the exact same md5sum hash
- Reboots: I've done that a few times
- initramfs: I saw a few posts stating that this should be regenerated. I therefore ran
sudo update-initramfs -u
and got this output:
W: Possible missing firmware /lib/firmware/i915/skl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/dg1_dmc_ver2_02.bin for module i915
I then rebooted and nothing changed.
Does anyone see what I might be missing?
Here's the debug output when I try to open the mykeys.img
file btw:
Enter passphrase for /home/tom/Pam-Syncthing-Root/vault/images/mykeys.img:
No key available with this passphrase.