Ubuntu7.10, Fedora, and other Linux methods for changing the default startup sequence

Source: Internet
Author: User
1. Ubuntu7.10 go to Ubuntu7.10 and enter sudocp/boot/grub/menu on the terminal. lst/boot/grub/menu. lst. baksudogedit/boot/grub/menu. lst note: the first statement is used for backup. After you press enter and enter the password, the hacker will display some information, find default0, and then look down to find the operating system you want to start by default! Modify d

1. Ubuntu 7.10

Enter the Ubuntu 7.10 system and enter

Sudo cp/boot/grub/menu. lst/boot/grub/menu. lst. bak

Sudo gedit/boot/grub/menu. lst

Note: The first statement is used for backup.

Press enter, enter the password, and then press Enter.

Default 0

Next, look for the operating system you want to start by default! Modify the number next to the default value. 0 corresponds to the first value and 1 corresponds to the second value!

The default value is ubuntu! Change 0 to 4!

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, kernel BRL. 15-23-386

Title Ubuntu, kernel 2.6.15-23-386 (recovery mode)

Title Ubuntu, memtest86 +

Title Other operating systems:

Title Microsoft Windows XP 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 it's okay to change 0 to 4. By default, it's 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.

In addition, you can change the default wait time by modifying the value of timeout.

2. Fedora Core 7

You only need to log on as root and modify the/boot/grub. conf file. The content of the grub. conf file installed by default is as follows:

# Boot =/dev/sda

Default = 0

Timeout = 5

Splashimage = (hd0, 7)/grub/splash.xpm.gz

Hiddenmenu

Title Fedora Core (2.6.15-1.2054_FC5)

Root (hd0, 7)

Kernel/vmlinuz-2.6.15-1.2054_FC5 ro root =/dev/VolGroup00/LogVol00 rhgb quiet

Initrd/initrd-2.6.15-1.2054_FC5.img

Title Other

Rootnoverify (hd0, 0)

Chainloader + 1

Change default = 0 to default = 1, that is, the second item, Other operating system, is started by default. Tilte Other here, the content after tilte is displayed in the boot menu, that is, the options displayed in the boot menu. We can change the Other to another tag, for example, to Windows XP, the configuration is completed after saving and exiting.

After restarting, try to see if it has taken effect. You can also change the time of the Start menu and change the number after timeout = 5 to the time you need.

3. Other Linux versions such as RedHat and SUSE

Currently, grub is widely used for startup, so:

Vi/boot/grub. conf

The location of grub. conf in linux may be different. Open it with vi

Modify the default value to change the system's default startup sequence. For more information, see step 1.

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.