<div dir="ltr">My attempts to open a luks container fail with the following messages:<br><br>sudo cryptsetup luksOpen /dev/loop2 test.crypted<br>Enter LUKS passphrase for /dev/loop2:<br>key slot 0 unlocked.<br>Command failed: Invalid offset<br>
<br>As a result, the mapper never gets created in /dev/mapper.<br><br>
The commands I am using to create my container are the following:<br><br>dd if=/dev/urandom of=test.crypted bs=1M count=256<br>sudo losetup -d /dev/loop2<br>sudo losetup /dev/loop2 /phil/test.crypted<br>sudo cryptsetup -c twofish -s 256 luksFormat /dev/loop2<br>
<br>The resulting container appears to be valid as shown by cryptsetup luksDump:<br>
<br>LUKS header information for /dev/loop2<br><br>Version:        1<br>Cipher name:    twofish<br>Cipher mode:    cbc-plain<br>Hash spec:      sha1<br>[snip]<br><br>
However, no mapper after the luksOpen.<br>
<br>
I have a non-luks 'vanilla' container that works.  Can anyone help me figure what I'm missing?<br>
<br>
Thanks!</div>