Public bug reported:

Binary package hint: linux-image-2.6.28-11-server

(might be the same as
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/377418)

= High level info =
I have encrypted partitions which I need to be mounted automatically during 
boot.
I have a key file that unlocks the luks devices for those partitions in a USB 
pendrive.
I have an entry in /etc/fstab to mount that pendrive by UUID (so that it isn't 
dependent in the order of recognizing the devices) like this:
    UUID=407F-3264  /etc/dm-keys/mnt   vfat    defaults        0       0
I added an entry in /etc/default/cryptdisks so that this is mounted before 
processing /etc/crypttab like this:
    CRYPTDISKS_MOUNT="/etc/dm-keys/mnt"
Finally, my /etc/crypttab:
    # <target name> <source device> <key file>       <options>
    cryptoswap_a        /dev/sda2             /dev/urandom  
cipher=aes-cbc-essiv:sha256,size=256,hash=sha256,swap
    cryptoswap_b        /dev/sdb2             /dev/urandom  
cipher=aes-cbc-essiv:sha256,size=256,hash=sha256,swap
    cryptosafe             /dev/sda4  /etc/dm-keys/mnt/dm-01.key  
cipher=aes,luks,loud
    cryptobackup        /dev/sdb4  /etc/dm-keys/mnt/dm-01.key  
cipher=aes,luks,loud


== Short story ==
When I boot, cryptosafe and cryptobackup are not mounted.
/etc/dm-keys/mnt isn't mounted either... what's more... I don't see the 
/dev/sd* device at all, so I have to unplug/replug it to be able to mount it 
(after that, I can mount it by simply issuing 'sudo mount /etc/dm-keys/mnt').

== Longer story ==
It had worked before... my guess is that some kernel upgrade broke it, but I 
don't recall which... this used to be an intrepid server... yesterday I 
upgraded to jaunty but the problem is still here (although at one point in 
intrepid it HAD worked fine).

=== Boot errors ===
When booting, the first problem I see is
ata1: softreset failed (device not ready)
ata2: softreset failed (device not ready)
ata3: softreset failed (device not ready)
but IIRC, these were here since I installed the machine... I tried adding 
'all_generic_ide' to the kernel line as explained in a couple of launchpad and 
forum entries, but the errors are still there.

Immediately after that I see the following error which I guess can point to the 
core of the problem:
    modeprobe: FATAL: could not load /lib/modules/2.6.28-11-server/modules.dep: 
No such file or directory
The file IS there, it IS readable (0644) and all the path to it IS traversable 
(0755).
This message I can't find later either in the 'dmesg' output or in any log file 
(/var/log/syslog or /var/log/messages).

After that, I get messages that special device /dev/disk/by-
uuid/407F-3264 doesn't exist so /etc/dm-keys/mnt can't be mounted, and
that cryptosafe and cryptobackup could not be opened since the key file
wasn't found (which is reasonable at this point).

If anyone can point me to a solution or workaround for this problem I'd
be really grateful.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
HalComputerInfo: Error: [Errno 2] No such file or directory
HibernationDevice: RESUME=/dev/sda2
Package: linux-image-2.6.28-11-server 2.6.28-11.42
ProcCmdLine: root=UUID=9eb9e65a-99d4-4ba8-9f9f-9f7c7ea0a1a7 ro quiet splash 
all_generic_ide
ProcEnviron:
 LC_TIME=en_GB.utf-8
 LANGUAGE=en_GB.utf-8
 PATH=(custom, no user)
 LANG=en_GB.utf-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.28-11.42-server
SourcePackage: linux

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
not loading modules early enough so as to have a key-file loaded from a usb 
pendrive
https://bugs.launchpad.net/bugs/378684
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to