Windows and linux -- modify the default startup sequence
Windows 7 and Ubantu are installed on the computer. Because Linux is rarely used and the default startup Item is intolerable, you have to change Windows to the default startup Item.
Since the system boot program on the computer is GRUB, the modifications will certainly fall into the Linux system.
Modify/boot/grub. cfg the default boot item in this file (the first one is automatically loaded by default, default = "0 "), this file is important because it backs up the file (cp/boot/grub. cfg/boot/grub. cfg. back)
Five options are selected for boot on the computer, while the options for Windows are exactly 5th. Therefore, you can change the default boot item from 0 to 4 by default.
Before modification (grub. cfg. back is backed up before modification ):
After modification:
Note that the grub. cfg file is a read-only file, so the modification must be forcibly modified by the root user.