The default boot sequence of XP on Ubuntu is set.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.