You are not logged in.
Pages: 1
Issue: As others have faced, I am stuck with a broken system and unable to solve the GRUB issue after following various threads on here.
I am using BTRFS + LUKS Encypt.
Unlock encrypted partition:
sudo cryptsetup open /dev/sda2 mycryptdevice
It’s now available in /dev/mapper/mycryptdevice
Now mount all btrfs subvolumes from the unlocked partition:
sudo mount -o subvol=@ /dev/mapper/mycryptdevice /mnt
sudo mount -o subvol=@log /dev/mapper/mycryptdevice /mnt/var/log
sudo mount -o subvol=@cache /dev/mapper/mycryptdevice /mnt/var/cache
sudo mount -o subvol=@home /dev/mapper/mycryptdevice /mnt/home
Then mount the ESP from /dev/sda1 but I get an error mount: /mnt/boot/efi: mount point does not exist.
Here is output of fdisk -l /dev/sda - https://ibb.co/PwG4kMG
Last edited by MindTheGAAP (2022-09-02 13:27:17)
Offline
The error seems pretty self explanatory. The dir has to exist to mount something there.
Offline
You need to read my reply to your last post as it should give you some information. FWIW if the dir doesn't exist then it's more likely you originally mounted and installed kernels as well as GRUB directly to the ESP by mounting it to /boot, so do that instead.
Offline
Hi. I was able to mount after changing the command to
sudo mount /dev/sda1 /mnt/boot
but when I type grub-install, I get the following error:
error: command failed to execute correctly
Offline
but when I type grub-install, I get …
Because you need to type a little more…
https://wiki.archlinux.org/title/GRUB#Installation_2
Offline
Seth ddin't you mean to link that to https://wiki.archlinux.org/title/GRUB#Installation instead? now we'd land at the MBR/BIOS boot setup which would likely add to the confusion.
Offline
Indeed - I probably got tricked by my own wiki stylesheet (and scrolled away the top of the index table and then picked the wrong installation link … actually it's the wikis fault for having two chapters headed "installation"!
)
Offline
Seth ddin't you mean to link that to https://wiki.archlinux.org/title/GRUB#Installation instead? now we'd land at the MBR/BIOS boot setup which would likely add to the confusion.
Hi, I figured out what caused the issue. I didn't mount the EFI properly first of all. It was
sudo mount /dev/sda1 /mnt/boot
1) chroot into my BTRFS + LUKS
2) grub-mkconfig -o /boot/grub/grub.cfg
3) grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
4) sudo mkinitcpio -P
Offline
Great! Please mark as [SOLVED] by editing the title in your first post.
Offline
Great! Please mark as [SOLVED] by editing the title in your first post.
Done ![]()
Offline
Pages: 1