[Pkg-cryptsetup-devel] Bug#355156: cryptsetup: luksOpen does not
work with readonly media anymore
Bastian Kleineidam
calvin at users.sourceforge.net
Thu Mar 9 22:54:17 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
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
>
> Does this fail?
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?
Regards,
Bastian
- --
,''`. Bastian Kleineidam
: :' : GnuPG Schlüssel
`. `' gpg --keyserver wwwkeys.pgp.net --recv-keys 32EC6F3E
`-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEELIZeBwlBDLsbz4RAnZSAJ96pQ7jxVIHpuE81+LTeB+yBJemAgCeJF8v
qj1Jf+9MAWqmKQY5NOcT1Ok=
=ebHj
-----END PGP SIGNATURE-----
More information about the Pkg-cryptsetup-devel
mailing list