From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Encrypted filesystems

Encrypted filesystems - Linux Tutorial

From the course: Linux Tips

Encrypted filesystems

- [Instructor] We can encrypt entire filesystems with LUKS. While we can encrypt individual files with other tools, an encrypted filesystem helps us make sure that our files are protected at rest, when the filesystem isn't being used. To use an encrypted filesystem, we need to supply a password to mount it, and if someone doesn't have the password, the files are effectively out of their reach. Many systems now use full-disk encryption for exactly this reason. In this episode, let's take a look at creating and managing an encrypted filesystem. I have a flash drive attached to my system, and I'll create an encrypted filesystem on it to secure my files. I can see the device here with lsblock, and I'll use fdisk to make sure it has a partition on it. Mine already does, but yours may not. I'll write fdisk /dev/sdb. Delete any of the existing partitions, make sure there aren't any partitions left, and create a new partition. And then I'll write that partition table to the disk. I can create…

Contents