Comment 22 for bug 91405

Revision history for this message
Matej Kovacic (matej-kovacic) wrote : Fails to add passphrase with cryptsetup under Feisty

I have Feisty and cryptsetup-luks 1.0.5.

I can mount encrypted USB through Gnome (Gnome displays "enter password" pop-up window), but when I type:

cryptsetup luksAddKey /dev/sdc3

I get:
  Enter any LUKS passphrase:
  Failed to setup dm-crypt key mapping.
  Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/sdc3 contains at least 133 sectors.
  Failed to read from key storage
  No key available with this passphrase.
  Command failed.

The problem is, this is already mounted partition so the password is correct. I also have loaded the following modules: dm-crypt, dm-mod, aes, sha256.