I have an external HD which I've setup LVM on it and partitioned it to two logical volumes: one which is open, and one which should be encrypted.
LVM works just fine, but trying to setup LUKS on it is failing miserably.
$this->bbcode_second_pass_code('', '# cryptsetup luksFormat /dev/vgroup/lvolume
device-mapper: reload ioctl on failed: No such file or directory
Failed to open temporary keystore device.
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: reload ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address')
dmesg shows this:
$this->bbcode_second_pass_code('', '[ 6835.098030] device-mapper: table: 254:2: crypt: Error allocating crypto tfm
[ 6835.116377] device-mapper: ioctl: error adding target to table
')
This happens no matter which parameters I use for cryptsetup. I've also modprobe'd dm-crypt and dm_mod, no success.
What am I missing? This should be a pretty simple scenario. Thanks!
Forgot to mention, the device is a BeagleBone Black running armv7l, fully updated and upgraded.