Encrypting an external device with LUKS
Summary
A practical guide to encrypting an external USB drive on Linux using LUKS2 with dm-crypt, including wiping, encryption, keyfile-based auto-opening, and optional automount integration with udiskie. The post also provides a ready-to-use script to automate the process and discusses security tradeoffs and threat models.