How to modify Grub boot in dual hard drive and Dual System

Source: Internet
Author: User
For the problem of modifying Grub boot in dual hard drive and dual system-general Linux technology-Linux technology and application information, see the following for details. If there are two hard disks, my machine has three hard disks. linux is installed in hd0 and windows is installed in hd1. The two systems do not affect each other,
However, by default, grub cannot start windows. After several attempts, it finally solved the problem and added two lines in grub.

Title WINDOWS server 2003
Map (hd1) (hd0)
Map (hd0) (hd1)

This solves the problem of dual hard disk startup, and does not need to change the bios default boot hard disk.

The following is my grub. conf for your reference.

# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a/boot partition. This means that
# All kernel and initrd paths are relative to/, eg.
# Root (hd0, 0)
# Kernel/boot/vmlinuz-version ro root =/dev/sda1
# Initrd/boot/initrd-version.img
# Boot =/dev/sda
Default = 0
Timeout = 1000
Splashimage = (hd0, 0)/boot/grub/splash.xpm.gz
Hiddenmenu
Password -- md5 $1 $ 0t5znogn $/NkIpZK4EdR2hoYIxkhKc.
Title Red Hat Enterprise Linux AS (2.6.9-55. ELsmp)
Root (hd0, 0)
Kernel/boot/vmlinuz-2.6.9-55.ELsmp ro root = LABEL =/1 rhgb quiet
Initrd/boot/initrd-2.6.9-55.ELsmp.img
# Title Red Hat Enterprise Linux AS-up (2.6.9-55.EL)
# Root (hd0, 0)
# Kernel/boot/vmlinuz-2.6.9-55.EL ro root = LABEL =/1 rhgb quiet
# Initrd/boot/initrd-2.6.9-55.EL.img
Title WINDOWS
Map (hd1) (hd0)
Map (hd0) (hd1)
Rootnoverify (hd1, 0)
Chainloader + 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.