Tip: how to change the bootstrap loader in a multi-system environment

Source: Internet
Author: User

 

The local system fedora8 + Windows_XP already exists. You can change the boot sequence as follows:

Go to fedora8, first back up the/etc/grub. conf file, and enter:

# Gedit/etc/grub. conf

The content of the file is as follows. The Chinese part is the comment I added.

# Grub. conf generated by anaconda

#

# Note that you do not have to rerun grub after making changes to this file

# NOTICE: You have a/boot partition. This means that

# All kernel and initrd paths are relative to/boot/, eg.

# Root (hd0, 7)

# Kernel/vmlinuz-version ro root =/dev/VolGroup00/LogVol00

# Initrd-version.img/initrd

# Boot =/dev/sda -- the location where GRUB is installed

Default = 2 -- when started, GRUB will start the operating system with the default number of 2, that is, windows _ XP

Timeout = 5 -- the menu wait time at startup, which can be modified by yourself

Splashimage = (hd0, 7)/grub/splash.xpm.gz -- the Starting sequence number increases from 0 in sequence, and Fedora (2.6.24.5-85. fc8) No. 0, Fedora (2.6.23.1-42. fc8) is 1, and Windows_XP is 2. If Windows_XP is placed at the top, its startup sequence number is 0. To enable Windows_XP by default, set default = 2 to default = 0.

Hiddenmenu

Title Fedora (2.6.24.5-85. fc8) -- the title of the ora (2.6.24.5-85. fc8) menu at startup. The boot sequence number is 0.

Root (hd0, 7)

Kernel/vmlinuz-2.6.24.5-85.fc8 ro root =/dev/VolGroup00/LogVol00 rhgb quiet

Initrd/initrd-2.6.24.5-85.fc8.img

Title Fedora (2.6.23.1-42. fc8) -- the title of the Fedora (2.6.23.1-42. fc8) menu. The start sequence number is 1.

Root (hd0, 7)

Kernel/vmlinuz-2.6.23.1-42.fc8 ro root =/dev/VolGroup00/LogVol00 rhgb quiet

Initrd/initrd-2.6.23.1-42.fc8.img

Title Windows_XP -- the title of the menu in Windows_XP system. The start number is 2.

Rootnoverify (hd0, 0)

Chainloader + 1

Therefore, to change the startup sequence, you only need to change the value of default = 2.

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.