[Bug 1299557] [NEW] cryptsetup luksFormat fails with -s <keysize>
mpb
mpb.mail at gmail.com
Sat Mar 29 19:34:16 UTC 2014
Public bug reported:
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
** Affects: cryptsetup (Ubuntu)
Importance: Undecided
Status: New
--
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:
New
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