Software

Encrypted root partition with LUKS

Full-disk encryption for the SD card, from mclbn's 2023 guide to bjornVallem's Trixie/CM5 version that shows the passphrase prompt on the built-in screen.

Compatibility
CM4CM5
Difficulty
Moderate
Status
Available
Author
bjornVallem
Added
Source
ClockworkPi forum

What it takes

  • Software only
  • Config change

Difficulty 2 of 3 — moderate.

Details

mclbn's original guide (November 2023) encrypts the root partition with LUKS2 (XChaCha20-Adiantum, gentler on the CM4 than AES) from a second Linux machine, rebuilds the initramfs with cryptsetup, and warns that the built-in display cannot show the initramfs prompt — you unlock over HDMI. The Bookworm update (February 2025) adds a post-install hook so new kernels rebuild the initramfs and patches the LUKS2 unlock in initramfs.

bjornVallem's Trixie guide (March 2026, tested on a CM5 only) uses AES-XTS-256 with Argon2id, takes about 30 minutes, and includes the display modules and an init script so the passphrase prompt appears on the LCD. warszawa's older thread on encrypting only /home points to fscrypt as the lighter alternative.

Open at Forum thread
  • LUKS
  • encryption
  • security

← Back to Software