Data privacy ( LUKS )

3-lukscryptsetup luksFormat /dev/vdb1 ( insert password )
cryptsetup luksOpen /dev/vdb1 crypdisk

now you can format the device pointing the dev mapper :

mkfs -t ext4 /dev/mapper/vdb1

mkdir /secret ; mount /dev/mapper/cryptdisk /secret

vi /etc/passfile

<password>

adding the config to crypttab :

cryptdisk /dev/mapper/vdb1   /etc/passfile

adding the config to fstab :

/dev/mapper/vdb1     /secret      ext4    defaults 0 0

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s