红联Linux门户
Linux帮助

双硬盘安装linux

发布时间:2006-10-16 16:18:32来源:红联作者:yinzelei
先安装windows xp 在第二块硬盘,在安装fedora 4 到第一块硬盘(均为120G 金钻,IDE),采用默认Grub引导系统,启动windows无法自动启动。修改 Fedora中/boot/grub.conf文件,在windows引导处为:

[code]title window xp

root (hd1,0) %% 注意这里所有hd1需要换成window所在盘

chainloader (hd1,0) +1

makeactive

map (hd0, hd1)

map (hd1,hd0)

boot[/code]

[code]# 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 (hd1,5)
# kernel /boot/vmlinuz-version ro root=/dev/hdb7
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=2
timeout=5
splashimage=(hd1,5)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.17-1.2139_FC5)
root (hd1,5)
kernel /boot/vmlinuz-2.6.17-1.2139_FC5 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.17-1.2139_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd1,5)
kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.15-1.2054_FC5.img
title Windows XP
rootnoverify (hd0,1)
chainloader +1[/code]
文章评论

共有 2 条评论

  1. mh169 于 2006-10-24 09:38:52发表:

    :tioe:2 不错

  2. snqyss 于 2006-10-23 15:17:36发表:

    学习了