EDIT: Problem solved, i updated from Debian 6.0.6 to 7.0.0, everything works now!
I have a complex problem at booting. Basically, I have a debian apache box, as a music server in my home network. The root, swap and data hard drives are dm_crypted. The booting should look like this:
- GRUB
- Ask root pass phrase
- Setup swap fs(gets random pw at boot)
- Booting continues
- Ask data passphrase
- Booting finishes
- Server is accessible via http & SSH
Some logs:
uname -a returns the following:
Linux linux-server 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64 GNU/Linux
debian version: 6.0.6
Version of cryptsetup: 2:1.1.3-4squeeze2
What I did:
- I ran
update-initramfs -u -k all -v - I can mount the device with
cryptsetup / mountafter boot.
I think the problem is that the external hard drive is not available to the system between step 4 & 5, so cryptsetup fails, mount fails, fschk fails and the boot process switches into emergency mode.
Any help would be appreciated!
EDIT: Problem solved, i updated from Debian 6.0.6 to 7.0.0, everything works now!
set -xat the top of/lib/cryptsetup/cryptdisks.functionsand try again? This should give us a debugging trace, hopefully it'll be easier to understand what's going on. – Gilles Feb 2 at 14:29#at the beginning of the first line of/etc/crypttab, so<name> <device> <pass> <options>is being parsed as an entry, which causes the not-very-robust script to bomb out. I think fixing that should make your script bootable, so I'm voting to close this question as “too localized”. If that's not enough to fix it, post the new trace. – Gilles Feb 2 at 15:27