Ubuntu 24.04: decrypt the root partition with a keyscript
Here is how to decrypt the root partition at boot time automatically on Ubuntu (and Debian-derivatives). Warning: this is not a good security practice. Anyone who can physically access your computer can find the decryption key and therefore access your data. In the example below, the encrypted partition is /dev/vda3, replace it with your own. Find the key size in bits: cryptsetup luksDump /dev/vda3 | grep 'Key:' Key: 512 bits Create a random key of 512 bits or 64 bytes using dd: ...