You are not logged in.

#1 2022-08-31 22:13:24

MindTheGAAP
Member
Registered: 2022-03-16
Posts: 6

[SOLVED] GRUB Update Issue

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

#2 2022-08-31 23:04:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] GRUB Update Issue

The error seems pretty self explanatory. The dir has to exist to mount something there.

Offline

#3 2022-08-31 23:23:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] GRUB Update Issue

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

#4 2022-09-01 01:24:49

MindTheGAAP
Member
Registered: 2022-03-16
Posts: 6

Re: [SOLVED] GRUB Update Issue

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

#5 2022-09-01 06:41:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,486

Re: [SOLVED] GRUB Update Issue

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

#6 2022-09-01 08:01:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] GRUB Update Issue

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

#7 2022-09-01 08:19:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,486

Re: [SOLVED] GRUB Update Issue

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"! tongue)

Offline

#8 2022-09-01 17:43:36

MindTheGAAP
Member
Registered: 2022-03-16
Posts: 6

Re: [SOLVED] GRUB Update Issue

V1del wrote:

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

#9 2022-09-01 20:52:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] GRUB Update Issue

Great! Please mark as [SOLVED] by editing the title in your first post.

Offline

#10 2022-09-02 13:27:29

MindTheGAAP
Member
Registered: 2022-03-16
Posts: 6

Re: [SOLVED] GRUB Update Issue

V1del wrote:

Great! Please mark as [SOLVED] by editing the title in your first post.

Done smile

Offline

Board footer

Powered by FluxBB