https://drive.google.com/file/d/1ixaTJisfMEYjuNN7bmfzE8niYlMCjfOg/view?usp=sharing

1. Understanding LUKS (Linux Unified Key Setup)

Key Concepts

⚠️ Critical Warning:

Lost passphrase = permanently lost data! Always backup keys.


2. Installing LUKS Tools

Prerequisites

# Enable repositories
sudo dnf repolist all

# Install cryptsetup (RHEL/CentOS 8+)
sudo dnf install cryptsetup -y

# Verify
cryptsetup --version

💡 Note:

Package name is cryptsetup (not crypsetup).


3. Creating LUKS Encrypted Volume

Encrypt Raw Disk

# WARNING: This erases ALL data on /dev/sdb!
sudo cryptsetup luksFormat /dev/sdb

# Confirm with "YES" (uppercase)
# Enter passphrase twice (min 8 chars)

⚠️ Critical:

Open Encrypted Volume