Ubuntu modifies grub, modifies boot sequence, and configures grub boot sequence
Method 1:
1. Open the terminal after entering the Ubuntu system
two。 Enter the following command in the terminal
Sudo gedit / boot/grub/grub.cfg
3. Find the configuration of Windows and cut it to the front of Ubuntu
Put the bottom
# BEGIN / etc/grub.d/30_os-prober #
Menuentry 'Windows 7 (loader) (on / dev/sda1)'-- class windows-- class os $menuentry_id_option 'osprober-chain-D4C4BF7AC4BF5E04' {
Insmod part_msdos
Insmod ntfs
Set root='hd0,msdos1'
If [x$feature_platform_search_hint = xy]; then
Search-no-floppy-fs-uuid-set=root-hint-bios=hd0,msdos1-hint-efi=hd0,msdos1-hint-baremetal=ahci0,msdos1 D4C4BF7AC4BF5E04
Else
Search-no-floppy-fs-uuid-set=root D4C4BF7AC4BF5E04
Fi
Parttool ${root} hidden-
Chainloader + 1
}
Set timeout_style=menu
If ["${timeout}" = 0]; then
Set timeout=10
Fi
# END / etc/grub.d/30_os-prober #
Before copying to # BEGIN / etc/grub.d/10_linux # de qianmian
Method 2:
1. Enter sudo gedit / etc/default/grub in the terminal
two。 Set up default-set=4