Update Grub

Hello everyone,

I have searched around but can’t get a straight answer!

How do I update grub?

Any help would me much appreciated.

As root:

grub2-mkconfig -o /boot/grub2/grub.cfg

(edit) the command “update-bootloader” probably works too.

Thank you for the reply but I get this outcome -

grub2-mkconfig: command not found

I also tried -

bash: grub-mkconfig -o /boot/grub2/grub.cfg

I ran os-prober which found everything.

But grub-mkconfig -o /boot/grub2/grub.cfg

still says -

grub2-mkconfig: command not found

I worked it out!

Typed -su (for root)

Then ran -



Thank you very much for the help.

I’m glad to hear that.

It is one of those commands that is not on the standard path for normal users. But once you use “su -” to become root, it is on the path.


Just want to say thank you.
I’ve just had the same problem.
used exactly your commands:

Typed -su (for root)
Then ran:

It worked for me too.
Many thanks,