I prefer to encrypt all my external hard drives and usb sticks. One way to do this is with cryptsetup. Below I added instructions how to encrypt your drive. Suppose you have a partition on your drive at
- Install cryptosetup, in ubuntu run
sudo apt install cryptsetup.
- Encrypt the partition:
sudo cryptsetup -v --verify-passphrase luksFormat /dev/sdb1
- Open then encrypted partition:
sudo cryptsetup luksOpen /dev/sdb1 crypted-partition
The partition can be found in
- Create your favorite filesystem on the the encrypted partition. I install the ext4 filesystem.
sudo mkfs.ext4 -L label-name /dev/mapper/encrypted-partition
- Close the encrypted partition:
sudo cryptsetup luksClose /dev/mapper/encrypted-partition