Comment 0 for bug 433051

Revision history for this message
Anton¡o Sch¡fano (skiantoz) wrote :

Binary package hint: cryptsetup

I have setup LUKS to have my encrypted home directory auto mounted when logging in.

After upgrading to Karmic, I noticed that from time to time my home dir would not get mounted. Recently, this has become very annoying: I have to try several time before cryptsetup succeeds in opening my home partition.
Below a typical login session:

--------------------------------------------------
Ubuntu karmic (development branch) ciccetto tty1

ciccetto login: antonio
Password:
Last login: Sat Sep 19 14:51:42 CEST 2009 on tty2
Linux ciccetto 2.6.31-10-generic #34-Ubuntu SMP Wed Sep 16 00:23:19 UTC 2009 i686

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

pam_mount(mount.c:67): Errors from underlying mount program:
pam_mount(mount.c:71): Command failed: No key available with this passphrase.
pam_mount(mount.c:71):
pam_mount(pam_mount.c:543): mount of /dev/sda7 failed
No directory, logging in with HOME=/
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

antonio@ciccetto:/$
---------------------------------------------------

If I log with another user (having non-encrypted home dir) and try to unlock manually the partition with cryptsetup, I have to try several times before eventually succeeding (in the example below, I succeeded at 5th attempt):

---------------------------------------------------
root@ciccetto:~# cryptsetup luksOpen /dev/sda7 _dev_sda7
Enter LUKS passphrase:
Enter LUKS passphrase:
Enter LUKS passphrase:
Command failed: No key available with this passphrase.

root@ciccetto:~# cryptsetup luksOpen /dev/sda7 _dev_sda7
Enter LUKS passphrase:
Enter LUKS passphrase:
key slot 0 unlocked.
Command successful.
root@ciccetto:~#
---------------------------------------------------

ProblemType: Bug
Architecture: i386
Date: Sat Sep 19 15:03:37 2009
DistroRelease: Ubuntu 9.10
Package: cryptsetup 2:1.0.6+20090405.svn49-1ubuntu4
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.34-generic
SourcePackage: cryptsetup
Tags: ubuntu-unr
Uname: Linux 2.6.31-10-generic i686