[systemd-devel] Can't get systemd-cryptsetup to automount my /home
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Sun Sep 23 05:13:03 PDT 2012
On Sun, Sep 23, 2012 at 01:33:52PM +0200, Dennis Ek wrote:
> First of all: I'm running the latest Arch Linux (complete with the latest
> systemd and everything else) and I've encrypted both my / and /home.
>
> Now, the problem is that I can't get my /home to automount once I've
> mounted my /. My /etc/crypttab looks like this:
> home /dev/sda3 /etc/homepwd
>
> I've created /etc/homepwd using
> echo password > /etc/homepwd
Just guessing here, but "The third field, key file, describes the
file to use as a key for decrypting the data of the source
device. Note that the entire key file will be used as the passphase;
the passphase must not be followed by a newline character."
Does it work with 'echo -n ...'?
Also, you should put something in the fourth field. According to the manpage
the fourth field is mandatory. In the log below it says
that the options used were aes, xts-plain, key size 512 bits. Is that correct?
> And yes, I've entered the correct password.
>
> When I boot I get dropped to a rescue shell because I can't mount /home.
> Here's my journalctl output:
> systemd-cryptsetup[293]: Invalid passphrase.
> systemd-cryptsetup[293]: Set cipher aes, mode xts-plain, key size 512 bits
> for device /dev/sda3.
> systemd-cryptsetup[293]: Invalid passphrase.
> systemd-cryptsetup[293]: Too many attempts.
Zbyszek
More information about the systemd-devel
mailing list