You are not logged in.

#1 2025-09-28 11:51:36

fffyraczka
Member
Registered: 2025-09-28
Posts: 1

grub installation issues

about me (irrelevant):
hii!! i have been using linux for the past 2 years (not taking into account my childhood), and i have been using arch for the past one and a half years. i have installed arch countless times, and have assisted my friends with it, but i am new to arch forums, and dont know how to format messages. i have tried to search for similar issues, and even asking a llm, but have not got anything reasonable. sorry for my english. thanks in advance!!

how it all started:
well, i have updated my uefi, but after that grub has started falling into rescue giving an error "unknown filesystem". and have been giving me this error when i tried to run ls on any of my partitions.

what i have tried to do:
i have booted into live, reinstalled grub, and now i get a new error "file /GRUB/X86_64-EFI/x86_64-efi/normal.mod not found".
(notice that double x86_64-efi.)
after i run "set prefix=/grub", then i am able to load and run normal. but after that my root variable is (hd0,gpt2), but it actually should be (hd2,gpt2).
after i set prefix, insert normal module, and set root in boot entry script, my system finally boots.

my assumptions:
i have probably installed grub incorrectly, and maybe after uefi update something weird happened with disks enumeration.
the exact command i have run is
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --removable
i have generated config, and it have not created efi entries, so i created them manually.
note that it have installed not in /boot/efi/grub, but in /boot/grub for some reason.

about my setup:
i have my efi partition on sda2 (mount point /boot), my root on sda8 (ext4).

Offline

#2 2025-09-28 18:48:10

jonno2002
Member
Registered: 2016-11-21
Posts: 811

Re: grub installation issues

it sounds like when you updated your uefi that drive assignments may have changed that dont match your initial grub installation and each time youve re-installed it you havent correctly mounted/chrooted etc so you still have your original config, this is purely a guess based on info given.

you say your efi partition is mounted to /boot which is fine as long as you know that your grub/linux/initramfs are all there and not on your root partition so you MUST remember to mount this everytime you boot into live and chroot, and also make sure your fstab is correct also.

this SHOULD fix your issue:
-boot from arch iso or similar
-mount your root parition to /mnt
-check to see if any files are in /mnt/boot, if they are youve done somthing wrong in the past and need to remove these via "rm -rf /mnt/boot/*"
-mount your efi partition to /mnt/boot and just for the sake of starting fresh run "rm -rf /mnt/boot/*"
-run "arch-chroot /mnt"
-run "grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB --removable"
-run "grub-mkconfig -o /boot/grub/grub.cfg"
-run "mkinitcpio -p linux"
-reboot and everything SHOULD work

Offline

Board footer

Powered by FluxBB