You are not logged in.
First some background info, I'm trying to mount a 2nd luks encrypted HDD, using /etc/crypttab with a typed password. When I boot I am asked to enter the password to unlock the HDD, but systemd keeps going and tries to mount the HDD before I can enter the password. I just switched to full systemd so there may be something I'm missing. I think I could make a "foo.mount" file which checks if the HDD exists in /dev/mapper, but this seems like a poor solution to use at boot. Thanks in advance for your help.
/etc/crypttab
crypt2 UUID=928c97f0-d48f-4a37-b323-ee99406370bf tries=3/etc/fstab
...
UUID=928c97f0-d48f-4a37-b323-ee99406370bf /mnt/crypt2 ext4 defaults,nodiratime,noatime,nofail 0 1`systemctl status mnt-crypt2.mount`
mnt-crypt2.mount - /mnt/crypt2
Loaded: loaded (/etc/fstab)
Active: failed (Result: exit-code) since Fri, 14 Sep 2012 01:03:28 -0500; 4min 43s ago
Where: /mnt/crypt2
What: /dev/disk/by-uuid/928c97f0-d48f-4a37-b323-ee99406370bf
Process: 426 ExecMount=/bin/mount /dev/disk/by-uuid/928c97f0-d48f-4a37-b323-ee99406370bf /mnt/crypt2 -t ext4 -o defaults,nodiratime,noatime,nofail (code=exited, status=32)
CGroup: name=systemd:/system/mnt-crypt2.mount
Sep 14 01:03:28 Arch-x86_64 mount[426]: mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
Sep 14 01:03:28 Arch-x86_64 mount[426]: missing codepage or helper program, or other error
Sep 14 01:03:28 Arch-x86_64 mount[426]: In some cases useful info is found in syslog - try
Sep 14 01:03:28 Arch-x86_64 mount[426]: dmesg | tail or soLast edited by houron102 (2012-09-14 01:19:27)
Offline
See man crypttab. The way I read it, your third field is currently set to an option. You could try with a - as in the example in the man page.
Offline
Well I just figured out that I put the wrong UUID in /etc/fstab. /dev/sdb1 (the disk being unlocked) != /dev/mapper/crypt2 (the unlocked partition). Now everything works as it should.
Last edited by houron102 (2012-09-14 01:19:47)
Offline