sudo: grub2-mkconfig: command not found

5,328

Use sudo grub-mkconfig instead.

The difference between grub-mkconfig and grub2-mkconfig is explained here.

Even though GRUB 2 is installed on your computer, the grub2-mkconfig command may not be available in your favorite Linux distribution. But the grub-mkconfig command may be available in your Linux distribution. There is no difference between grub-mkconfig and grub2-mkconfig if GRUB 2 is installed.

Note that, if you have GRUB legacy installed, then grub-mkconfig and grub2-mkconfig commands will not be the same.

Share:
5,328

Related videos on Youtube

stripeyare
Author by

stripeyare

Updated on September 18, 2022

Comments

  • stripeyare
    stripeyare over 1 year

    When I try perform the command "sudo grub2-mkconfig -o /etc/grub2-efi.cfg", I get an error message stating "sudo: grub2-mkconfig: command not found". I am trying to perform single GPU passthrough by following this guide: https://youtu.be/3BxAaaRDEEw?t=354

    • Admin
      Admin over 3 years
      Try using sudo grub-mkconfig instead
    • Admin
      Admin over 3 years
      That seemed to have worked! Thank you!
    • Admin
      Admin over 2 years
      @stripeyare please give Bernard an opportunity to update his answer and then mark it as solved.