Open the terminal and enter the following command:
Sudo gedit/boot/GRUB/grub. cfg
We can find the following lines startingCode:
### Begin/etc/grub. d/00_header ### <br/> If [-S $ prefix/grubenv]; then <br/> load_env <br/> fi <br/> set default = "0"
TheSet default = "0"
It is to control the default boot sequence. Starting from "0", we set this value based on the actual situation. After I restarted the computer, I found that XP is the eighth boot item, so I should set thisSet default = "7 ".After the restart, we will find that XP is the default to the preferred startup Item.
However, a problem was also found during the use of ubuntu, that is, after each Linux kernel update, the default startup Item will change to Ubuntu. At this time, we need to repeat the above operations.
Ubuntu seems to have used grub2 since 9.10, therefore, you can find the earlier version of sudo gedit/boot/GRUB/menu. the lst command cannot change the startup sequence.