Ubuntu has been guided by Grub2 since 9.10. We may encounter the following two different problems. to prevent windows startup from being damaged, if grub is not loaded to mbr, grub4dos can no longer be smoothly guided to grub2 by simply installing grub4dos to drive C. A menu needs to be created under drive C. the lst file whose content is timeout3default0titlegrub2find -- set-r.
Ubuntu has been guided by Grub2 since 9.10. without mentioning the advantages of grub2, we may encounter the following two different problems:
1. to prevent windows startup from being damaged, if grub is not loaded to mbr, grub4dos can no longer be smoothly guided to grub2 by simply installing grub4dos to drive C. A menu needs to be created under drive C. lst file with the following content:
Timeout 3
Default 0
Title grub2
Find -- set-root/grub/core. img
Kernel/grub/core. img
2. You cannot modify the startup configuration by modifying the menu. lst file in ubuntu. grub2 mainly contains
1./boot/grub. cfg file
2./etc/grub. d/folder
3./etc/default/grub File
Grub. cfg is the configuration option, similar to menu. lst, but we cannot modify the configuration directly by modifying this file. Instead, we need to modify the configuration in Items 2 and 3 and execute the update-grub command to enable/boot/grub. cfg automatic update
Take the simplest and most commonly used default sequence for enabling startup items and select the waiting time as an example.
1. sudo gedit/etc/default/grub
2. Change the numbers after the GRUB_DEFAULT = and GRUB_TIMEOUT = strings to what we want and save and close them.
3. sudo update-grub