Comment on Advice on encrypted storage

constantokra@lemmy.one ⁨9⁩ ⁨months⁩ ago

Encrypt the boot drive, and use dropbear ssh in initramfs to be able to unlock it over ssh during boot. Then set up your data drives however you want, and use a key file on your boot drive to unlock them, once you’ve unlocked it. All drives are encrypted when your machine is off, and you only need one password you can enter remotely to unlock the whole thing.

Here’s a good resource on how to do the initramfs part arminpech.de/…/debian-unlock-luks-root-partition-…

Also, when you update the kernel you have to rebuild the initramfs with sudo update-initramfs -k all -u, or it won’t be able to boot to the new kernel.

I’ve found it to be a super reliable setup.

source
Sort:hotnewtop