How to reset the “default” GRUB after removing grub-customizer
- Remove
grub-customizer
sudo mv /etc/grub.d /etc/grub.d.old
sudo rm -rf /etc/grub-customizer
- Reinstall
grub
sudo update-grub
- reboot
- If it works fine, then you can delete the old directory
/etc/grub.d.old
.
If you want to change grub menu, then:
- Create new backup of the file
grub.cf
sudo cp /boot/grub/grub.cfg /boot/grub/grub.cfg.backup
- Edit this file:
sudo nano /boot/grub/grub.cfg
You can change, move or delete codeblocks of grub entrymenuentry '...'
, what you want.
menuentry 'Windows 10' --class windows ..... {
....
}
menuentry 'Manjaro Linux' --class manjaro .... {
...
}
It works for me.
If the editing of grub.cfg
went wrong, you can run sudo update-grub
or sudo grub-mkconfig
that automatically regenerates grub.cfg
.
If grub menu is empty or boot error, you need boot into a Manjaro LIVE ISO on USB to fix your system. Run the command:
sudo manjaro-chroot [mount with your system partition]
Password: manjaro
Run sudo update-grub
or sudo grub-mkconfig
It is easy for me.