cryptsetup luksOpen reporting "Command failed: Invalid offset"

Philippe A. futhark77 at gmail.com
Wed Sep 3 03:41:51 UTC 2008


After rebooting I succeeded to created a luks usb drive as well as a luks
container. Case closed!

2008/9/2 Philippe A. <futhark77 at gmail.com>

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


More information about the fedora-list mailing list