When booting Slackware with encrypted /boot and LVM, it doesnt detects /dev/sda3 (that contains the system) to decrypt
So, im making a Slackware 15 minimal install in my External USB HDD were im going to use GRUB instead of ELILO (because i can boot in other machines more easily) in a UEFI machine, and set up encryption, with LUKS1 in the /boot partition and LUKS2 with argon2id in the partition that contains the LVM with / and /home. But during booting of the system, it doesnt detects that partition that contains the system and doesnt unlock it. So im gonna say what steps im following.
1- Partitioning Code:
/dev/sda1 -> /boot/efi (512MiB, FAT32) 3- Editing /etc/default/grub I add: Code:
GRUB_ENABLE_CRYPTODISK=y Code:
cryptdevice=UUID=<UUID of sda3>:slackware_sys root=/dev/system/root 4- Editing /etc/crypttab Code:
slackware_boot UUID=<UUID of sda2> none luks 5- Editing /etc/fstab I change stuff like /dev/sda1, /dev/mapper/slackware_boot, /dev/system/root and /dev/system/home to its UUIDs counterparts 6- Rebuilding the initrd Using the mkinitrd tool. I rebuild using the following flags Code:
mkinitrd -c -k 5.15.19 -m ext4:usbhid:usb-storage:jbd2:ehci-hcd -f ext4 -r /dev/system/root -C /dev/sda3 -L -l br-abnt2 Code:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable --recheck So, rebooting the machine i can boot and enter the unlocking GRUB phase. Where it has no problems, but after that, when trying to boot at the system and loading the kernel, it says that dont detects /dev/sda3 to decrypt it, so it hangs me to a emergency mode. I followed a lot of guides, blogs and posts to help me making this Slackware install. From the ArchWiki, LinuxQustions.org and some blogs scattered through out the web. Some stuff https://wiki.archlinux.org/title/Dm-...ystem#top-page https://wiki.archlinux.org/title/GRUB#Encrypted_/boot https://www.tumfatig.net/2022/slackw...n-uefi-laptop/ https://linorg.usp.br/slackware/slac...ADME_CRYPT.TXT https://linorg.usp.br/slackware/slac...EADME_UEFI.TXT https://www.youtube.com/watch?v=K7PQS0NEJsQ https://www.linuxquestions.org/quest...fi-4175582667/ |
When I clicked on this thread before answering it comes empty. A few minutes ago there was a post (not this one, as I am not the OP). I am the only one to see that?
|
Quote:
And now my long text disapeared, how cool is that? Now i dont want to rewrite all the text to post it again. Feeling lazy that i waste 15min putting details to, but in the end my entire post disapear And funny thing is, when i enter in My Posts page, it doesnt appear nothing, like if i never posted something WTF |
I good habit to get into with this site is to copy long posts to your clipboard just in case. I've had it happen to me a number of times and yes, it's very frustrating when that happens.
Not just you Didier. Thread was empty here too. Very odd. |
Quote:
Gonna use a Clipboard to these longer texts from now on. I created some will to redo all over the text Im gonna post it again when ready |
The new post
|
All times are GMT -5. The time now is 09:14 PM. |