this post was submitted on 22 Aug 2026
27 points (100.0% liked)
Linux
67992 readers
739 users here now
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.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If they have the same password you can just unlog them at boot with one password. They SystemD hook for unlocking LUKS drives automatically tries the first provided password on all encrypted drives it's supposed to unlock. Only if that fails it will ask for additional passwords.
Are you saying all this if I use Raid0 like crystalwalrus was saying?
When using the systemd hooks for your initramfs (and using
rd.luks.name=<UUID>=<name>instead ofcryptdevice=UUID=<UUID>:<name>in the kernel parameters) it will try to decrypt all listed drives with the first password typed in, and only ask for additional passwords if that fails. Unlike the "traditional" busybox hooks that will ask for a password for each device. Doesn't matter what you actually do with the drives themselves.So yes, you can for example have partitions/devices
/dev/sda1,/dev/sda2,/dev/sdb1all encrypted with the same password, formatsda1as your classic swap partition,sda2as the first half of your btrfs raid0 root device andsdb1as the second half (let's give them fitting names when decrypting, so/dev/mapper/cryptswap,/dev/mapper/cryptroot-aand/dev/mapper/cryptroot-b), withrd.luks.name=<UUID>=cryptswap rd.luks.name=<UUID>=cryptroot-a rd.luks.name=<UUID>=cryptroot-bin your kernel parameters.And at boot you will be asked for the password only once, which will unlock all three encrypted partitions. (Unless you mistype. Then it will fall back to the default behavior of asking for 3 passwords, one for each.)
(PS: You can also just unlock other encrypted devices via
/etc/crypttablater in the boot process. That's the much easier option and should be prefered unless you really need them early... as in they are your (or part of your) root device, swap etc.)The actual real question if you don't want to figure out everything manually is which options the installer supports.
Thank you very much! I messed with this stuff a little in the past but have since learned more about Linux and the info you give here will really help. I'll definitely check the installer first hoping it'll be easier to setup