Skip to main content

Create and Mount an Encrypted Block Device Using dm-crypt

Hands-On Lab


Photo of

Training Architect





In this lab you will create an encrypted block device using dm-crypt and LUKS. Then you will open the encrypted device and create a filesystem on it.

You are working as a System Administrator at a large financial institution and have been tasked with enabling whole-disk encryption on a portable drive. The portable drive is attached as /dev/loop0 to the user's workstation, which is running the CentOS Linux 7.7 operating system.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.