Oriel — AI & technology worth noticing, every day.

Full Disk Encryption on Fedora with TPM2

Web page · https://apalrd.net/posts/2026/ent_luks

First seen by Oriel on .

AI summary

This tutorial explains how to configure LUKS2 full-disk encryption on Fedora with TPM2-bound automatic unlocking, optional PIN protection, and recovery keys.

  • It demonstrates creating a LUKS2 partition, opening it through a device-mapper volume, formatting it as ext4, mounting it, and safely closing it.
  • LUKS key-slot operations include header backup and restoration, adding passphrases or keyfiles, testing credentials, changing passphrases, and removing keys.
  • systemd-cryptenroll can generate a recovery key and enroll TPM-bound keys using PCR 7, optionally requiring a PIN.
  • Automatic unlocking uses a crypttab entry with tpm2-device=auto; Fedora encrypted-root installations also require rebuilding initramfs with dracut and the tpm2-tss module.

#luks2 #tpm2 #fedora #disk encryption

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 29, latest observation ; +24 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 44, latest observation ; +43 over observed period since

Aliases

SourceExternal IDURL
Hacker News50194602https://www.apalrd.net/posts/2026/ent_luks/ Read discussion