From the course: Ubuntu Linux: Essential Commands and System Administration

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Create and mount an encrypted partition

Create and mount an encrypted partition

On a Linux system, we can encrypt whole partitions of disks in order to protect them from unauthorized access. There's no such thing as perfect security, but protecting data with encryption and a password is certainly better than nothing if you have sensitive information to safeguard. To encrypt a partition or volume, we'll use LUKS, which stands for Linux Unified Key Setup. The tools we need are available in the package called cryptsetup. So the first thing I'll do is make sure that's installed from the repository. I'll type apt install cryptsetup. While there are tools to convert an existing partition to an encrypted one, they put that data at risk of loss. So in this video, we'll create a brand new empty encrypted partition to start using. If you have data you need to protect, that needs to be copied off somewhere else and then put back on the encrypted partition after it's been created. I'll clear the screen. I'm going to replace the partition that I've been working with and…

Contents