cryptsetup fails to open LUKS partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cryptsetup
I have set up 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 times 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://
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/
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
pam_mount(
pam_mount(
pam_mount(
pam_mount(
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+
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: cryptsetup
Tags: ubuntu-unr
Uname: Linux 2.6.31-10-generic i686
Changed in cryptsetup (Ubuntu): | |
status: | New → Confirmed |
I have encountered this same bug after installing Ubuntu 9.10 beta desktop on my Asus EEE (i386).
I used the alternate installer, and encrypted the root partition. Thus far, the root partition has always mounted successfully at boot. However, when I try to "cryptsetup luksOpen" my SD card, it does not accept the password.
Perhaps this is just a problem with LUKS encrypted disks that were created with previous versions of Ubuntu? (Of course, that is still a serious issue as LUKS should be forward compatible.)
Eventually, "cryptsetup luksOpen" (run as root from the command line) will succeed. It seems that if I log in to Gnome (instead of on the console), and then insert the SD card, Gnome detects the LUKS SD card, and ask me for a password. Gnome then fails to mount it, but(!) the next time I try to mount the SD card in the console as root, I succeed. However, I have only used this workaround twice, so maybe something else is going on.
If I discover any more information, I will post it here.