To begin with manually encrypting directories, perform the following steps:
- Install cryptsetup as shown here, which is a utility used for setting up encrypted filesystems:
apt-get install cryptsetup
The preceding command generates the following output:
- Encrypt your /dev/sdb1 partition, which is a removable device. To encrypt the partition, type the following command:
cryptsetup -y -v luksFormat /dev/sdb1
The preceding command generates the following output:
This command initializes the partition and also sets a passphrase. ...