CentOS: Encrypted Filesystem
- Pick a volume to encrypt and mount. This should be an empty volume, as this process completely erases all of the content on this volume. For this example, /dev/sda3 is being encrypted and mounted at /mnt/secure.
- Prepare the volume
cryptsetup luksFormat /dev/sda3
- Create the encrypted virtual device. This will be created at /dev/mapper/secure (replace "secure" with whatever you want to call it. This is an arbitrary value)
cryptsetup luksOpen /dev/sda3 secure
- Create a filesystem on this virtual device