Re-install Grub
If you ever get into a situation were you lost grub, due to installing another OS that went wrong or just lost the Grub for KaOS, since another OS installed it’s own version, here are some steps to recover.
If you completely lost Grub
Section titled “If you completely lost Grub”Then first follow the instructions to chroot into your KaOS install:
Once you have come to the step of Perform System Maintenance, follow these steps:
sudo pacman -Syusudo pacman -S grub os-prober mtoolsWith those packages in place, it is time to install grub in the /boot section of the used partition for KaOS. You can open kpartitionmanager to see what the name/number of the used partition is, in this example, we’ll presume there is only one disc in use, so the device used will be sda, adjust to whatever disc you actually installed KaOS to.
sudo grub-install /dev/sdaNext make sure a correct grub.cfg is generated (having os-prober installed, will add any other OS to it):
sudo grub-mkconfig -o /boot/grub/grub.cfgAfter this, use the chroot tutorial again to properly close the chroot, and rebooting should offer you the correct grub again.
If you just lost the grub from KaOS
Section titled “If you just lost the grub from KaOS”But still can boot into it and would like to have the grub running from KaOS, then the steps are much simpler, just the 2 commands:
sudo grub-install /dev/sdaand
sudo grub-mkconfig -o /boot/grub/grub.cfgAre needed, again, make sure to use the correct partition for sda.