EndeavourOS comes with GRUB pre-installed and in case you don’t what GRUB is, it is one of the first screens that displays the Linux kernels you have installed on the system.
It plays an essential part in booting up your EndeavourOS system but sometimes due to an update or perhaps by you tinkering the system, Grub refuses to boot.
Don’t worry there are a couple of steps to repair GRUB, so you can get into the system as you’re used to.
First you have to Chroot into the system, just follow the steps described in these articles:
Before you proceed, these instructions are made for a standard automatic installation, if you installed the system with a modified manual partition scheme, just ask our community on the forum and make sure you provide them with the needed logs with our log tools.
Repair GRUB on BIOS systems
If you have more than one operating system installed on your machine, run os-prober first before you proceed. This package will scan all your operating systems installed and put them in GRUB. If you only have EndeavourOS installed go directly to step two.
- Mount all the root partitions on your machine as described in the Arch-chroot article above, this will speed up the process. Then type: (as root)
os-prober
2. After this process is finished, enter:
grub-mkconfig -o /boot/grub/grub.cfg
Now reinstall GRUB:
grub-install --target=i386-pc /dev/sdX
Remember, the X must be replaced with the letter that is marked in your situation, for instance /dev/sda
Now GRUB is repaired and you should be able to boot into your system again.
Repair GRUB on EFI/UEFI systems
Before you are going to repair GRUB, you should also check your EFI-boot-settings, this also can be the reason why GRUB isn’t booting. Just check our forum for those settings.
If you have more than one operating system installed on your machine, run os-prober first before you proceed. This package will scan all your operating systems installed and put them in GRUB. If you only have EndeavourOS installed go directly to step two.
Mount all the root partitions on your machine as described in the Arch-chroot article above, this will speed up the process. Then type: (as root)
os-prober
2. After this process is finished, enter:
grub-mkconfig -o /boot/grub/grub.cfg
Now reinstall GRUB:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EndeavourOS-grub
Now GRUB is repaired and you should be able to boot into your system again.
Alternative to GRUB
There is an alternative for using GRUB, its called rEFInd and you can read more about it over here: