Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Grub troubles (Read 1332 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Grub troubles

Yesterday I have successfully installed Artix on my laptop. It could boot, hibernate and resume from hibernation. I have a GPT/UEFI setup. My boot partition used the FAT32 file system, but I was wondering if I could have a boot partition formatted in the ext4 file system, as you suggest in your wiki. So today I tried it. I deleted my boot partition and created a now one, (of type EFI System), then formatted it in ext4: mkfs.ext4 /dev/sda1.

Later it turned out that I could not run grub-install. It complained that my boot partition does not look like an EFI boot partition. So I reformatted it again with mkfs.fat -F32 and tried to redo certain parts of the installation procedure to fill the boot partition with usable data again. But now it does not boot anymore. Instead of the Grub boot menu I used to have I get a grub console.

Here is more or less what I have now and I have no clue why this is not booting:

blkid
Spoiler (click to show/hide)

lsblk -f
Spoiler (click to show/hide)

fstabgen -L /mnt > /mnt/etc/fstab
Spoiler (click to show/hide)


The following snippets are from the phase after artools-chroot /mnt

/etc/default/grub
Spoiler (click to show/hide)

With grub, os-prober, efibootmgr already installed:
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
grub-mkconfig -o /boot/grub/grub.cfg
cat /boot/grub/grub.cfg
Spoiler (click to show/hide)

tree /boot
Spoiler (click to show/hide)

Can you see why this is not booting?

One thing I noticed is that the Arch-Wiki writes that "grub-install also tries to create an entry in the firmware boot manager" and in the article about efibootmgr they mention that there should be some refind directory in my /boot/EFI after running the command create the boot entry manually. But as you can see in my tree /boot listing, there is none such thing for me. I've always relied on the automatic boot entry generation by running grub-install.

Re: Grub troubles

Reply #1
Maybe try installing grub again then kernel

There should be no refind dir unless you are using the rEFInd boot manager

 

Re: Grub troubles

Reply #2
Thanks for the tip. After reinstalling grub and then kernel, I noticed that the /boot partition contains these files which were absent in my previous tries:

tree /boot
Spoiler (click to show/hide)

Then I installed and configured grub again. Now it actually had some more output:
grub-mkconfig -o /boot/grub/grub.cfg
Spoiler (click to show/hide)

Thanks a lot for your quick assistance. This solved my problem. I can boot again.