How To Rebuild GRUB Configuration file

Whenever We change our GRUB configuration, we need to rebuild it:

 

The command to rebuild your GRUB configuration varies. On Fedora and open SUSE, use this command:

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

For Ubuntu, use:

$ sudo grub-mkconfig -o /boot/grub/grub.cfg

Ubuntu Linux also has a script that runs grub-mkconfig, update-grub:

$ sudo update-grub

 

Remember to always verify your correct filenames and paths when you edit your GRUB configuration because they vary on the different platforms of Linux.

Comments

Popular posts from this blog

Linux Indepth #4

DevOps Project Contest.