[pkg-cryptsetup-devel] cryptsetup failed with code 22 invalid argument

Miranda Zhang miranda.zhang at instaclustr.com
Tue Jul 7 02:33:10 BST 2020


Dear Maintainers

I keep getting the "error code 22 invalid arguments" for the seemingly
correct command
sudo cryptsetup open --type luks <device> <dmname> --key-file /root/luks.key
sudo cryptsetup luksOpen <device> <dmname> --key-file /root/luks.key
Package: cryptsetup-bin (2:1.7.3-4)

The command

cryptsetup luksFormat <device> --key-file /root/luks.key -q

output command successful.
Also asked in
https://unix.stackexchange.com/questions/597035/cryptsetup-failed-with-code-22-invalid-argument

Could someone please point me in the right direction? Anything I should
investigate?

Many thanks,
Miranda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20200707/fb00de7e/attachment.html>


More information about the pkg-cryptsetup-devel mailing list