Welcome to the Linux Foundation Forum!

Lab 10.1 device-mapper: reload ioctl on temporary-cryptsetup-2318 failed: Invalid Argument

Androidrh Posts: 1
edited May 2017 in LFS201 Class Forum

When running sudo cryptsetup luksFormat / dev / sda4

I get the following error

Device-mapper: reload ioctl on temporary-cryptsetup-2318 failed: Invalid argument

Could not set dm-crypt key assignment to device / dev / sda4

Verify that the kernel supports the aes-xts-plain64 encryption algorithm (see syslog for more information)

This is in opensuse, in the official virtualized image of the course.

With the dmesg command the following appears:

Table: 252: 0 crypt: unknown target type

Ioctl: error adding target to table


  • luisviveropena
    luisviveropena Posts: 1,101
    edited May 2017


    Please check if the module with name dm_crypt is loaded. If not, please load it with 'modprobe dm_crypt'.




Upcoming Training