You are not logged in.

#1 2024-10-12 10:48:21

shayan99999
Member
Registered: 2022-07-02
Posts: 35

Arch requires GRUB reinstallation to boot every time [SOLVED]

I made the following post a little while ago: https://bbs.archlinux.org/viewtopic.php?id=299955

The problem was that Arch couldn't boot and it was eventually solved by reinstalling GRUB by arch-chroot from an install USB. But the same problem is re-occurring each time I boot the system. It is solved simply by reinstalling GRUB from an install USB every single boot but a permanent solution would be preferable.

Last edited by shayan99999 (2024-10-12 12:22:12)

Offline

#2 2024-10-12 11:00:54

cryptearth
Member
Registered: 2024-02-03
Posts: 1,024

Re: Arch requires GRUB reinstallation to boot every time [SOLVED]

as I already mentioned this seems to be an issue with your ESP and it's mounting point

anyway

a possible option could be that the OEM of your laptop designed and tested it with windows in mind and that the uefi is buggy and doesn't like an entry for grub - to get around this you can try to install grub in portable mode:

grub-install --efi-directory=<mountpoint of ESP> --boot-directory=<path where ./grub/grub.cfg can be found when different to /boot> --no-nvram --removable

this installs grub into <esp>/EFI/BOOT/BOOTX64.EFI which should make it look like a removable media and by this auto-found by the uefi at startup
the --boot-directory parameter is optional and only required if you want to place your grub.cfg somewhere different than the usual /boot/grub/grub.cfg - otherwise grub expects its config found at that path and its corresponding mountpoint

this might be a solution to resolve the symptom you describe but it doesn't solve tge actual root cause which is likely a messed up esp

Offline

#3 2024-10-12 11:04:35

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,345
Website

Re: Arch requires GRUB reinstallation to boot every time [SOLVED]

@cryptearth: the --removable option does not create an NVRAM entry so --no-nvram is not needed wink

@OP: this is all covered in the wiki: https://wiki.archlinux.org/title/GRUB#D … _boot_path


Para todos todo, para nosotros nada

Offline

#4 2024-10-12 12:21:52

shayan99999
Member
Registered: 2022-07-02
Posts: 35

Re: Arch requires GRUB reinstallation to boot every time [SOLVED]

Using the --removable option, I managed to boot the system as per usual. And the laptop booted without issue after I restarted it again to test it. I don't know why this worked. A regular grub installation worked just fine since 2022 for this laptop. But at least it works now so I'll mark it solved.

Offline

#5 2024-10-12 13:04:16

cryptearth
Member
Registered: 2024-02-03
Posts: 1,024

Re: Arch requires GRUB reinstallation to boot every time [SOLVED]

Head_on_a_Stick wrote:

@cryptearth: the --removable option does not create an NVRAM entry so --no-nvram is not needed wink

just copied it from OVH as thier documentation for how to setup a server is quite bad (found a better solution since): https://github.com/ovh/bringyourownlinu … ootable.sh
wasn't aware about the specifics of --no-nvram and --removeable so thought they have to be used in combination

Offline

Board footer

Powered by FluxBB