Skip to content

cryptsetup Failure to create MD device on encrypted disks #13

Description

@Poocka

Due to not enabled in Kernel ( # CONFIG_DM_CRYPT is not set )

root@starfive:~# cryptsetup luksOpen /dev/sda1 testDev
Enter passphrase for /dev/sda1:
device-mapper: reload ioctl on testDev (253:0) failed: Invalid argument

Compiling Kernel with shown below config makes it work
...

CONFIG_MD=y
# CONFIG_BLK_DEV_MD is not set
# CONFIG_BCACHE is not set
CONFIG_BLK_DEV_DM_BUILTIN=y
CONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not set
# CONFIG_DM_UNSTRIPED is not set
CONFIG_DM_CRYPT=y
....

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions