Bug#355156: [Pkg-cryptsetup-devel] Bug#355156: cryptsetup: luksOpen does not work with readonly media anymore

Jonas Meurer jonas at freesources.org
Sun Mar 12 16:26:02 UTC 2006


On 09/03/2006 Bastian Kleineidam wrote:
> You wrote:
> > Do you have the image still on disk? Can you try to open it via the
> > loopback driver?
> >
> > losetup /dev/loopX image
> > cryptsetup --readonly /dev/loopX _image
> 
> The losetup case works. Everything I do on disk works fine, only on DVD
> it fails.
> I debugged a little and found out that the difference between disk and
> DVD is the lib/utils.c:sector_size() return value: for my disc
> (dev/hdaX), it is 512, on DVD (/dev/hdc) it is 2048. The sector size is
> used in the read_blockwise() function, together with some alignment code
> I don't really grok. Perhaps this is where things go wrong?

i've tried to reproduce this bug, and indeed luksOpen fails for me with
a similar error message. i tried also plain dm-crypt, and discovered
that 'cryptsetup create' doesn't fail. the created device is mountable
and contains all the data which i put into the encrypted iso image.

in other words, the bug must be related to luks, it's not reproducible
when using plain dm-crypt.

just wanted to let you know, in case that you are not already aware of it.

...
 jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20060312/d80696a1/attachment.pgp


More information about the Pkg-cryptsetup-devel mailing list