You are not logged in.

#1 2017-03-14 00:20:48

OP
Member
Registered: 2015-11-16
Posts: 9

[solved] cryptsetup: Failed to setup dm-crypt key mapping for device

Unable open encrypted drives after kernel upgrade.

Kernel: 4.9.11-1-ARCH #1 SMP PREEMPT

Error message:

$> cryptsetup open /dev/sda1 a1
device-mapper: reload ioctl on temporary-cryptsetup-14348 failed: Invalid argument
Failed to setup dm-crypt key mapping for device /dev/sda1.
Check that kernel supports aes-xts-plain64 cipher (check syslog for more info). 

journalctl -f output:

localhost kernel: device-mapper: table: 254:1: crypt: unknown target type
localhost kernel: device-mapper: ioctl: error adding target to table

Last edited by OP (2017-03-17 03:25:44)

Offline

#2 2017-03-14 11:13:55

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [solved] cryptsetup: Failed to setup dm-crypt key mapping for device

What is the output of the following

$ uname -a
$ pacman -Q linux

Offline

#3 2017-03-17 03:19:22

OP
Member
Registered: 2015-11-16
Posts: 9

Re: [solved] cryptsetup: Failed to setup dm-crypt key mapping for device

Output:

~$ uname -a
Linux localhost 4.10.1-1-ARCH #1 SMP PREEMPT Sun Feb 26 21:08:53 UTC 2017 x86_64 GNU/Linux
~$ pacman -Q linux
linux 4.10.1-1

Offline

#4 2017-03-17 03:26:37

OP
Member
Registered: 2015-11-16
Posts: 9

Re: [solved] cryptsetup: Failed to setup dm-crypt key mapping for device

updating to latest kernel fixed the issue.

~$ uname -a
Linux localhost 4.10.2-1-ARCH #1 SMP PREEMPT Mon Mar 13 17:13:41 CET 2017 x86_64 GNU/Linux
~$ pacman -Q linux
linux 4.10.2-1

Offline

Board footer

Powered by FluxBB