Modify the default startup sequence of grub
Grub now has two versions, one grub and one grub2, which have different operations.
A friend installed centos may be grub. I installed ubuntu14.04 on my computer, grub2. I will demonstrate the grub2 process.
Modify the default startup sequence of GRUB
Modify the default startup sequence of GRUB2
First, we cd it to the/boot/grub directory of ubuntu. There is a file grub. cfg in this directory, which is the file set to start by default.
Friends who just installed ubuntu may encounter such problems. This is because ubuntu makes this file unwritable.
View the permissions of the grub. cfg file as follows. Read-Only files.
Modify the permission and execute the command sudo chmod a + w./grub. cfg full + write.
Now the File Permission is changed to this.
Below is the grub boot item on my computer. There are 5th Windows systems. Because its first index is 0, the next 5th indexes are 4.
In the grub. cfg file, find set default = "0" and change 0 to the index of your computer's windows System (here I am 4)
Save, restart, OK!