Encryption

Encryption



Make or choose your partition (read related guides)

lsblk
parted
fdisk -l


Encrypt the partition with a good passphrase

cryptsetup --verbose --verify-passphrase luksFormat /dev/sda1


Open the encrypted device:

cryptsetup luksOpen /dev/sda1 vol_1 #vol_1 can be any name


Create a filesystem:

mkfs.xfs -imaxpct=3 /dev/mapper/vol_1 #Any filesystem is good even LVM!!


Mount:

mkdir /AES_Drive && mount /dev/mapper/vol_1 /AES_Drive 


Umount:

umount /AES_Drive && cryptsetup luksClose /dev/mapper/vol_1


RAID --> LUKS --> LVM --> ext4 #Single Password

RAID --> LVM --> LUKS --> ext4 #Password per LVM