Ljunggren.net [Google] *  [FB] *   [ChatGPT]  

Welcome to Ljunggren.net

The time in Sweden is approximately 2025-12-22 23:23:33

Decrypting encrypted partitions

To decrypt multiple partitions in linux during boot with the same password there is a set of keyutils to cache the password for 60 seconds. Add keyutils to your system ``` $ apt-get install keyutils ``` Edit  /etc/crypttab to inform keyutils what to do Add a arbitary tag so that crypt knows which partitions utilize the same passworduse a keyscript to trigger keyutils Example: ``` sda1_crypt UUID=fb154dd0-eb59-42b1-b37b-a322edf70255 main luks,keyscript=decrypt_keyctl sda2_crypt UUID=f93f48f4-4d1f-4df7-ac6e-9cd26c640398 main luks,keyscript=decrypt_keyctl ``` Update your ramfs ``` $ update-initramfs -u ``` Your good to go. **Warning**: You do this at your own risk, don't blame me when you loos all your family photos, your wife leaves you and your toster burn down your house!