Skip to content

cryptsetup Failure to create MD device on encrypted disks #13

@Poocka

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
....

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