@latest_post
Set up full disk encryption in Linux
Introduction
Let's say that you get a brand new 2TB/4TB/8TB/xTB HDD, and you want to use it
as a safe backup device.
That means you want to encrypt everything you put in it.
So, assuming you've already installed the drive on your computer; let's prepare it for FDE (Full Disk Encryption).
Correctly identify the drive name
Open a terminal and type:
sudo fdisk -l
You'll see a list of storage devices connected to your computer and their partitions ---if any.
You need to identify the one you just connected. It's very easy if your devices are of different sizes, since that can easily indicate the drive you want to work with.
You can also use the lsblk command to see a list of all
block devices and their partitions:
lsblk
Example output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk