Re: systemd and encrypted partition (was: grub and encrypted partition problem)
On 2015-08-29 08:23:25 PM, Hans wrote:
> > > It would be nice, if someone could give me a clue, how to initialise the
> > > crypt related configurations.
> >
> > How did you set up your partitions? Do you use cryptsetup? Did you fill
> > out the relevant entries in /etc/cryptab? What happens if you run
> > cryptdists_start?
>
> Yes, I did this command (which I used on all my other computers as well):
>
> cryptsetup -c aes-lrw-benbi -y -s 384 luksFormat /dev/sdaX
>
> then I opened it with "cryptsetup luksOpen /dev/sdaX myname" and at last I
> formatted it with "mkfs.ext4 /dev/mapper/myname".
>
> In /etc/crypttab I got he correct entry
>
> myname UUID=UUID_of_/dev/mapper/mynameblabla none luks,retry=1,cipher=aes-
> lrb-benbi:sha256
The UUID should be the UUID of the encrypted device (/dev/sdaX above),
not the decrypted device (/dev/mapper/myname).
Does running the command cryptdisks_start work? AFAIK that is what gets
called during startup, so you can check your configuration without
rebooting.
Hope this helps,
MM
Reply to: