[Bug 1299557] Re: cryptsetup luksFormat fails with -s <keysize>
mpb
mpb.mail at gmail.com
Thu Jun 18 16:08:30 UTC 2015
I ran into this problem again today and found my old bug report. I
downloaded the source code for cryptsetup-1.6.7, and built it manually.
Version 1.6.7 gives me a more informative error message.
$ sudo ./cryptsetup -y -s 128 luksFormat /dev/sdd1
WARNING!
========
This will overwrite data on /dev/sdd1 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
Failed to setup dm-crypt key mapping for device /dev/sdd1.
Check that kernel supports aes-xts-plain64 cipher (check syslog for more info).
Key size in XTS mode must be 256 or 512 bits.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/1299557
Title:
cryptsetup luksFormat fails with -s <keysize>
Status in cryptsetup package in Ubuntu:
Confirmed
Bug description:
I installed beta2 of 14.04 yesterday. Today, I am trying to manually
create an encrypted partition. If I specify a key size to cryptsetup
with -s, cryptsetup fails as follows.
root at slab:~# cryptsetup -y -s 128 luksFormat /dev/sda6
WARNING!
========
This will overwrite data on /dev/sda6 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
device-mapper: reload ioctl on failed: Invalid argument
Failed to open temporary keystore device.
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: reload ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
After the above, luksDump shows all 8 key slots as DISABLED.
Without -s, cryptsetup will succeed, as follows.
root at slab:~# cryptsetup -y luksFormat /dev/sda6
WARNING!
========
This will overwrite data on /dev/sda6 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
root at slab:~#
Other info:
root at slab:~# lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
root at slab:~# apt-cache policy cryptsetup
cryptsetup:
Installed: 2:1.6.1-1ubuntu1
Candidate: 2:1.6.1-1ubuntu1
Version table:
*** 2:1.6.1-1ubuntu1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1299557/+subscriptions
More information about the foundations-bugs
mailing list