Block-device encryption without reinstallation
Block-device encryption without reinstallation
Posted Sep 30, 2025 21:30 UTC (Tue) by muase (subscriber, #178466)In reply to: Block-device encryption without reinstallation by geert
Parent article: Managing encrypted filesystems with dirlock
Something like that would definitely be possible; BitLocker (Windows) and FileVault (macOS) have been offering similar functionality for years now; speaking from a technical pov, it's a solved problem.
Going further down that road: As LUKS2 supports detached headers, you could even do interesting shenanigans like simply storing luks-<partuuid>.bin in the boot or EFI partitions itself, and simply add another JSON key dmcrypt-progress to the header file. As AES-XTS is zero-size overhead, now you wouldn't even need to touch and shrink the existing partitions/filesystems anymore and could transparently encrypt block by block.
