[dm-crypt] Basics

Mike Nagie promike1987 at gmail.com
Wed Sep 30 14:16:26 CEST 2015

Why is this happening? I'm trying to create encrypted luks partition 
with a keyfile.

cryptsetup luksFormat /dev/sda2 /dev/sdb1

This will overwrite data on /dev/sda2 irrevocably.

Are you sure? (Type uppercase yes): YES
Maximum keyfile size exceeded.
cryptsetup luksFormat /dev/sda2 /dev/sdb1 10.54s user 4.55s system 83% 
cpu 18.1

(and sometimes: command failed with code 22 invalid argument)

cryptsetup open --type luks /dev/sda2 home -d /dev/sdb1
Maximum keyfile size exceeded.
cryptsetup open --type luks /dev/sda2 home -d /dev/sdb1  10.43s user 
4.64s system 99% cpu 15.103 total
You are so lucky!

More information about the dm-crypt mailing list