[pkg-cryptsetup-devel] Bug#626738: Bug#626738: cryptsetup fails to read passphrase from stdin

Physicman cb at physicman.net
Mon Jul 4 17:09:35 UTC 2011

Hello Jonas,

Thank you for your reply.

Yes, I'm still being hit by this problem at every boot when trying to
mount my 3 encrypted partitions.

After I enter my passphrase, I've got the following error message:

Cannot read requested amount of data.
device-mapper: rename ioctl failed: No such device or address
Command failed

After a number of unsuccessful attempts I am being dropped into a shell
where I can launch the following cryptsetup command:

cryptsetup -c aes --key-file=- create home /dev/sda9 (for my home
partition, same thing for the 2 others)

After that everything just works fine.

Here is my crypttab:
# <target name>	<source device>		<key file>	<options>
tmp	/dev/sda5	none
home	/dev/sda9	none
data	/dev/sda10	none

And here is my fstab:
# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda2       /               xfs     defaults        0       1
/dev/sda3       /boot           ext3    defaults        0       2
/dev/mapper/tmp	/tmp		xfs	defaults 0      2
/dev/mapper/data /data           xfs    defaults 0	2 
/dev/mapper/home /home           xfs    defaults 0	2 
/dev/sda6       /usr            xfs     defaults 0	2 
/dev/sda8       /usr/local      xfs     defaults 0	2 
/dev/sda7       /var            xfs     defaults 0 2 
/dev/sda1	none            swap    sw 0 0 
/dev/scd0       /media/cdrom0	udf,iso9660 user,noauto 0       0

And I am using a vanilla kernel (I upgraded at some point
thinking it might be a kernel problem. When the problem started I was
using a 2.6.37 kernel).

What else would be helpful to debug this?

Thanks for your help. :)

Best regards,


 ,''`.  Christopher `Physicman' Bodenstein <cb at physicman.net>
 : :' :  Physicman.Net     :   http://www.physicman.net/ 
 `. `'   Debian GNU/Hurd   :   http://www.debian.org/ports/hurd
   `-    Lisez le JIM      :   http://www.lejim.info/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20110704/3639d37c/attachment.pgp>

More information about the pkg-cryptsetup-devel mailing list