You are not logged in.

#1 2012-08-23 11:09:13

bib
Member
Registered: 2012-08-23
Posts: 1

dm-crypt home after installation

Hi,

I would like encrypt /home (or other partition) after installation.

I have made some try with other partition, everything is ok but my passphrase is no ask on boot.

I have made this with a small partition :
cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda6
cryptsetup luksOpen /dev/sda6 storage
mkfs.btrfs /dev/mapper/storage
mount /dev/mapper/storage /storage

so /storage is mount

A have add this on /etc/fstab :
/dev/mapper/storage /storage btrfs defaults,nodev,nosuid,noexec 0 1

and this on /etc/cryttab :
storage /dev/mapper/storage  none

How could I do for my laptop ask me the passphrase for /storage during boot ?

Offline

#2 2012-08-23 11:30:32

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: dm-crypt home after installation

you have to use the encrypted device itself in /etc/crypttab, not the mapped device ( /dev/mapper/storage -> /dev/sda6 ).

Offline

Board footer

Powered by FluxBB