<div dir="ltr">After rebooting I succeeded to created a luks usb drive as well as a luks container. Case closed!<br><br><div class="gmail_quote">2008/9/2 Philippe A. <span dir="ltr"><<a href="mailto:futhark77@gmail.com">futhark77@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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>
</blockquote></div><br></div>