System frezes after fscking root
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: mountall
I have both / and /home on seperate luks encrypted partitions. / is decrypted using my passkey by the initramfs and /home is decrypted using a keyfile stored on / by the init scripts.
After upgrading from mountall 0.1.8 to 0.2.0 my system foze at boot. The last things it does before freezing is loading apparmor, fscking /boot and fscking /. It never gives any output related to decrypring or fscking /home.
After some trial and error I found a workaround:
In grub I replaced "ro quiet splash" with "text rw init=/bin/bash". I don't know if "text" is nessesary in the final version of the workaround, but during some previous trials I got a hung X with no ability to switch to text console.
Then I entered my passphrase for / as usual.
After I while I got a root prompt and issuedd the following commands:
mkdir /dev/shm /dev/pts # Don't know if this was nessesary, but df errored out becouse they was missing
cryptsetup luksOpen /dev/sdb2 faolain-home # This is my home partition
mount -a
mount -o remount,ro / # As the system otherwise hangs while fscking root
exec init
At this point the boot sequence resumes. First it fscks / (but not /boot or /home), then it tries to decrypt my three luks partions (/, swap and /home), but ofcourse / and /home fails (as they are already decrypted), and then the rest of the init scripts run and I get a login prompt (textual as that is what I requested in grub).
At this point I downloaded the mountall 0.1.8 deb using wget and installed it using dpkg -i, and after the next reboot it started working again.
I havn't quite figgured out what exactly caused the problem, but I think mountall tried to fsck /dev/mapper/
=======
My /etc/crypttab
=======
faolain-root UUID=3443152a-
faolain-swap UUID=576ca4ba-
faolain-home UUID=a230afe6-
=======
=======
My /etc/fstab
=======
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
LABEL=faolain-swap none swap sw 0 0
LABEL=faolain-boot /boot ext2 relatime,
LABEL=faolain-root / ext3 relatime,
LABEL=faolain-home /home ext3 relatime,
tmpfs /tmp tmpfs nosuid,
tmpfs /var/tmp tmpfs nosuid,
=======
ProblemType: Bug
Architecture: i386
Date: Sat Oct 10 08:16:36 2009
DistroRelease: Ubuntu 9.10
Package: mountall 0.1.8
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
LANG=sv_SE.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: mountall
Uname: Linux 2.6.31-13-generic i686
it sounds like mountall is simply waiting for the encrypted disk to appear, and that you didn't get prompted for a passphrase means this is a cryptsetup issue