Grub2

Last modified on July 24, 2026 • 1 min read • 93 words
Grub2 has been the default boot loader for Ubuntu for more then 10 years now.
Grub2
Image by Michael Jeltsch

Grub2 has been the default boot loader for Ubuntu for more then 10 years now. Its configuration file is nowadays /boot/grub/grub.cfg, but you MUST NOT edit /boot/grub/grub.cfg in order to modify the Grub boot menu. Instead, you need to add your own entries to the file /etc/grub.d/40_custom. Some general preferences are also set in the the file /etc/default/grub and any file under /etc/default/grub.d/.

In order to apply the changes that you have done, you need to execute sudo update-grub. Don’t forget that files in the /etc/grub.d directory need to be executable (chmod +x)!