I never could be bothered with manually setting up LUKS, here's an automation script if you don't get it to work:
https://github.com/gitbls/sdm/blob/master/Docs/Disk-Encryption.md
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I never could be bothered with manually setting up LUKS, here's an automation script if you don't get it to work:
https://github.com/gitbls/sdm/blob/master/Docs/Disk-Encryption.md
Thanks @DrDystopia@lemy.lol ! indeed https://github.com/gitbls/sdm/blob/master/Docs/Disk-Encryption.md#the-sdm-cryptconfig-script seem what I need. I'll try
I've used it to encrypt both Pi4's and 5's. I think it's most compatible with Raspberry Pi OS (Bookworm), used it on both Lite and Desktop editions. Remember to use non-AES encryption since only the 5 has hardware enc/decryption. Good luck!
I'm not sure I understood you correctly, is the problem just that you don't know which uuid-s to use where? Cryptdevice corresponds to your sdb2, and root is /dev/mapper/b2open. Otherwise, provide the exact error
I believe my initramfs do not support luks encryption, but the link of @DrDystopia@lemy.lol might work.... 🤞
Depends on the distro. On arch you need to enable a few hooks, for example