After Windows and Ubuntu are installed, adjust the Grub startup sequence.

Source: Internet
Author: User
Many people say that they should change the/boot/grub. conf file and change default0 to defualt1. I am not sure whether this method is correct in linux, but I know it is incorrect in ubuntu because you cannot find this file in ubuntu. My machine is installed with Ubuntu6.06 and windows XP, and windows is installed first. many people in ubu say that the change/boot/grub. conf file, change default = 0 to defualt = 1. I am not sure whether this method is correct in linux, but I know it is incorrect in ubuntu because you cannot find this file in ubuntu.

My machine is installed with Ubuntu 6.06 and windows XP. windows is installed first and ubuntu is installed later. After ubuntu is installed, the startup sequence is automatically changed to the first choice. Therefore, ubuntu is started by default. It is estimated that, like me, windows has a lot of time to use. if you want to use windows by default, let's talk about how to change the startup sequence, you will find it quite simple.

The system startup file in ubuntu is/boot/grub/menu. list.

Go to the ubuntu system and enter sudo gedit/boot/grub/menu. list on the terminal (you can also modify it with vi) to modify the file. After you press enter, enter the password, and then press Enter:
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module...
Creating backend...
Loading socket FrontEnd module...
Starting SCIM as daemon...
GTK Panel of SCIM 1.4.4

Then, in the edit window of menu. list, the file content is long, but most of them belong to the annotation line with #, which is less useful.

Find the line starting with title (note: Do not handle the line starting with #). There are 5 lines in my file, which are:
Title Ubuntu, kernelbrl. 15-23-386
Title Ubuntu, kernel2.6.15-23-386 (recovery mode)
Title Ubuntu, memtest86 +
Title Other operatingsystems:
Title Microsoft WindowsXP Professional

These lines are not connected like this, and they are scattered in files. We write these five lines together to make it clearer. In fact, if you are careful enough, you will find that, except for the title in front of each line, these five lines are the boot menu items that appear when you start the system, therefore, the system reads the file at startup.
We can see that windows is in the last line, the row number is 4 (starting from 0), while ubuntu is in the first line, and the row number is 0. When the system starts, it reads the menu. list file and determines which of the five options is entered by default based on an important parameter setting of the file. This parameter is default.

In the menu. list file, the row without # for the first time should be the row where default is located. If no modification has been made, it should be as follows:
Default 0
It means to start the 0th-line system by default, that is, the first item in the first 5 rows: ubuntu system. Now you know what to do. Yes, it is OK to change 0 to 4. by default, it is selected for windows. After modification, remember to save the modification.

If the row number of your windows system is not 4, you can modify the row number as well.

Related Article

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.