Ubuntu – Ubuntu 14.04.2 cryptsetup failed on boot

bootencryptionkeyboardpasswordsystem-installation

I decided to reformat my hard drive and install a clean copy of the newly released Ubuntu 14.04.2 with full disk encryption (incl. LVM) and I chose a strong password with special characters which works out fine every single time I play around with it during the Ubuntu installation.

However once the installation was finished and my desktop computer rebooted for the first time, it was all black, not going anywhere passed the motherboard boot screen?

I hit the "reset" button on my case to double check, rebooted once more, only this time I was greeted with an GNU GRUB menu with four options and I chose "Ubuntu", then the much anticipated Ubuntu-logo and a text telling me to "enter passphrase" in order for me to unlock my disk with my chosen encryption password came up; however despite knowing that I had typed the correct password at least a hundred times (checked if caps lock or numpad was causing this, which it wasn’t) it still refuses to decrypt on login with the following error message: "cryptsetup: cryptsetup failed, bad password or options?".

What's going on here? Why is it that my password work every single time when I play around with it during the installation, but whenever I try to actually decrypt and login to Ubuntu it fails?

Are there any characters (super characters) that aren't allowed in the encryption password or could this be a bug because of my Swedish keyboard layout?

Best Answer

Unfortunately, the keyboard layout DOES matter. :(

On bootup, you start with the US Keyboard layout. As your filesystem is decrypted (entering the correct password), any settings changing keyboard layout (such as you changing it to Swedish Keyboard Layout) will be applied.

What I suggest is the following:

  1. Do a fresh install again. (sorry)
  2. When installing Ubuntu, just leave the keyboard layout alone (leave it to US).
  3. AFTER successfully installing Ubuntu and decrypting your filesystem on the first boot, THEN you can change the keyboard layout.

See this Unix Stack Exchange post for more details.

Related Question