1. update-grub . The complete command is : sudogrub-mkconfig-o/boot/grub/grub.cfg.
2. conf file : /boot/grub/grub.cfg, each section is clearly delineated with"(### BEGIN)"and references the script in the/etc/grub.ddirectory from which the information was generated.
3. /etc/grub.d/* (note: all the files in this directory must be executable)
00_headerSets initial appearance items such as thegraphics mode, default selection,timeout, etc. These settings are normally importedfrom information from/etc/default/grub. Users normally do not need to make changes to this file.
05_debian_themeThe settings in this file set the GRUB 2background image, text colors, selection highlighting andthemes. In the absence of a splash image, this file sets a monochromatic theme for the initial menu display.
10_linuxIdentifies kernels on theroot device for the operating system in use and creates menu entries.
20_memtest86+Searches for/boot/memtest86+.binand includes it as an option on the GRUB 2 boot menu.
30_os-proberThis script usesos-probertosearch for Linux and other operating systems and place the results in the GRUB 2 menu.
40_customA template foradding custom menu entries which will be inserted intogrub.cfgupon execution of theupdate-grubcommand. The contents of this file, below the "exec tail -n +3 $0" line and the default comments, are imported directly into/boot/grub/grub.cfgwithout any changes.