this post was submitted on 11 Mar 2025
24 points (92.9% liked)
Linux
51586 readers
364 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 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
then add it to fstab https://wiki.archlinux.org/title/Fstab
Something like
Make sure you use the correct filesystem (e.g. ext4 or other)
If its encrypted, you can also decrypt the drive automatically once booted by adding an entry in
/etc/crypttab
This will make it so you don't have to type the password.
This never worked for me…
For automatically you need to add a keyfile to a slot in the luks device
# openssl genrsa -out /root/keyfile.bin 4096
# cryptsetup luksAddKey /dev/mapper/extra /root/keyfile.bin
The entry in the crypttab would be like this
And technically the key file can just be a plain text password and still work. Just as long as the key file matches the drive's encryption password.