Hands-on lab – adding an encrypted partition with LUKS

There may be times when you'll need to either add another encrypted drive to an existing machine or encrypt a portable device, such as a USB memory stick. This procedure works for both scenarios. Follow these steps to add an encrypted partition:

  1. Shut down your CentOS VM and add another virtual drive:

Bump the drive capacity up to 20 GB, which will give you plenty of room to play with:

  1. After rebooting the machine, you'll now have a /dev/sdb drive to play with. The next step is to create ...

Get Mastering Linux Security and Hardening - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.