<div dir="ltr"><div>Dear <span style="color:black;font-family:sans-serif;font-size:1em">Maintainers</span></div><div><br></div><div>I keep getting the "error code 22 invalid arguments" for the seemingly correct command</div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div>sudo cryptsetup open --type luks <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">device</span><span style="color:rgb(128,128,128)">></span> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">dmname</span><span style="color:rgb(128,128,128)">></span> --key-file /root/luks.key</div><div><div style="line-height:18px"><div>sudo cryptsetup luksOpen <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">device</span><span style="color:rgb(128,128,128)">></span> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">dmname</span><span style="color:rgb(128,128,128)">></span> --key-file /root/luks.key</div></div></div><div><div style="line-height:18px"><div></div></div></div></div></div>Package: cryptsetup-bin (2:1.7.3-4)<div><br></div><div>The command</div><div><pre style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit">cryptsetup luksFormat <device> --key-file /root/luks.key -q
</code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">output command successful.</p><div>Also asked in</div><a href="https://unix.stackexchange.com/questions/597035/cryptsetup-failed-with-code-22-invalid-argument">https://unix.stackexchange.com/questions/597035/cryptsetup-failed-with-code-22-invalid-argument</a><br><div><br></div><div>Could someone please point me in the right direction? Anything I should investigate?</div><div><br></div><div>Many thanks,</div><div>Miranda</div></div></div>