Contents
Should you edit the boot Grub grub CFG file for startup modifications?
It is strongly recommended that you do not edit the grub. cfg file manually because any direct modifications to the file will be overwritten the next time a new kernel is installed or grub2-mkconfig is run manually.
What is the difference between grub and grub2?
GRUB and GRUB2 are two different versions. GRUB2 is considered as default boot loader of Ubuntu whereas GRUB is generally used in RHEL older versions. When started, GRUB2 mainly presents a menu and waits for some input from users. It generally transfers control to our operating system kernel.
How to edit grub.cfg and save it?
The configuration file is /boot/grub/grub.cfg, but you shouldn’t edit it directly. This file is generated by grub v2’s update-grub (8), based on: To configure grub “v2”, you should edit /etc/default/grub, then run update-grub. Advanced configuration are achieved by modifying the snippets in /etc/grub.d/.
Which is the configuration file for GRUB 2?
The GRUB 2 configuration file is /boot/grub2/grub.cfg. – Do not edit this file directly. Use the grub2-mkconfig command to generate grub.cfg. This command uses the template scripts in /etc/grub.d and menu-configuration settings taken from /etc/default/grub when generating grub.cfg.
Why does Sudo update-grub2 not update grub.cfg?
This matches the tables created when selecting Filesystem: manual partition, which mounts the boot partion at /boot/efi (/dev/sda1). However, sudo update-grub and sudo update-grub2 does not overwrite the grub configuration, instead updating /boot/grub/grub.cfg, i.e. a file not on the boot partition.
What’s the difference between Grub and boot / efi / grub.cfg?
Both computers are UEFI Secure Boot and have same/similar partioning. the different grub.cfg experience the same update behaviour, but on the vmware image, grub respects the file /boot/grub/grub.cfg, on hardware install grub respects the /boot/efi/EFI/ubuntu/grub.cfg.