LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 723|回复: 2

为什么我的两个linux系统不能共存?

[复制链接]
发表于 2005-5-8 00:47:19 | 显示全部楼层 |阅读模式
我有两块硬盘 seagate 40G/ maxtor 40G.
在hdc上装了 gentoo 2005 和window 2000. 在hdd上装了centos 4. 如果从gentoo将grub入mbr ,就引导不了centos; 反之亦然。不过window 2000总能被引导。这究竟应该怎样解决,我是参考了大家的多系统安装方法的。难哦 请看:
/boot/grub/grub.conf>>>

default 0
timeout 30

title=gentoo
root (hd0,0)
kernel (hd0,0)/kernel-2.6.11-gentoo-r3 ro  root=/dev/hdc2


title=CentOS 4.0 (2.6.9-5.0.3.EL)
        root (hd1,0)
        makeactive
        loadchain +1
#kernel (hd1,0)/boot/vmlinuz-2.6.9-5.0.3EL ro root=LABEL=/ rhgb quiet
#initrd (hd1,0)/boot/initrd-2.6.9-.5.0.3EL.img

title window2000
        root (hd0,2)
        makeactive
        chainloader +1
(以上可以引导gentoo window)
或者
default 0
timeout 30

title=CentOS 4.0 (2.6.9-5.0.3.EL)
        root (hd1,0)
kernel (hd1,0)/boot/vmlinuz-2.6.9-5.0.3EL ro root=LABEL=/ rhgb quiet
initrd (hd1,0)/boot/initrd-2.6.9-.5.0.3EL.img

title=gentoo
root (hd0,0)
makeactiv
loadchain +1

title window2000
        root (hd0,2)
        makeactive
        chainloader +1
( 以上可以引导centos window)
请教各位老大, 问题出在那里呢?

谢谢先!
发表于 2005-5-8 03:36:06 | 显示全部楼层
Post by ooxuoo
我有两块硬盘 seagate 40G/ maxtor 40G.
在hdc上装了 gentoo 2005 和window 2000. 在hdd上装了centos 4. 如果从gentoo将grub入mbr ,就引导不了centos; 反之亦然。不过window 2000总能被引导。这究竟应该怎样解决,我是参考了大家的多系统安装方法的。难哦 请看:
/boot/grub/grub.conf>>>

default 0
timeout 30

title=gentoo
root (hd0,0)
kernel (hd0,0)/kernel-2.6.11-gentoo-r3 ro  root=/dev/hdc2


title=CentOS 4.0 (2.6.9-5.0.3.EL)
        root (hd1,0)
        makeactive
        loadchain +1
#kernel (hd1,0)/boot/vmlinuz-2.6.9-5.0.3EL ro root=LABEL=/ rhgb quiet
#initrd (hd1,0)/boot/initrd-2.6.9-.5.0.3EL.img

title window2000
        root (hd0,2)
        makeactive
        chainloader +1
(以上可以引导gentoo window)
或者
default 0
timeout 30

title=CentOS 4.0 (2.6.9-5.0.3.EL)
        root (hd1,0)
kernel (hd1,0)/boot/vmlinuz-2.6.9-5.0.3EL ro root=LABEL=/ rhgb quiet
initrd (hd1,0)/boot/initrd-2.6.9-.5.0.3EL.img


title=gentoo
root (hd0,0)
makeactiv
loadchain +1

title window2000
        root (hd0,2)
        makeactive
        chainloader +1
( 以上可以引导centos window)
请教各位老大, 问题出在那里呢?

谢谢先!





title=CentOS 4.0 (2.6.9-5.0.3.EL)
      map (hd0) (hd1)
      map (hd1) (hd0)  

      root (hd1,0)
      kernel (hd1,0)/boot/vmlinuz-2.6.9-5.0.3EL ro root=LABEL=/ rhgb quiet
      initrd (hd1,0)/boot/initrd-2.6.9-.5.0.3EL.img
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-8 14:16:25 | 显示全部楼层
Thanks a lot cow.
都怪我粗心大意,肯定是什么地方的错误, 现在好了。
default 0
timeout 30

title=gentoo
root (hd0,0)
kernel (hd0,0)/kernel-2.6.11-gentoo-r3 ro  root=/dev/hdc2

#title=CentOS 4.0 (2.6.9-5.0.3.EL)
#map (hd0) (hd1)
# map (hd1) (hd0)
#root (hd1,0)
#kernel (hd1,0)/boot/vmlinuz-2.6.9-5.0.3.EL ro root=/dev/hdd1
#initrd (hd1,0)/boot/initrd-2.6.9-.5.0.3.EL.img

#title=gentoo
#root (hd0,0)
#kernel (hd0,0)/kernel-2.6.11-gentoo-r3 ro  root=/dev/hdc2
#makeactive
#chainloader +1


title=CentOS 4.0 (2.6.9-5.0.3.EL)
       root (hd1,0)
      makeactive
      chainloader +1
#kernel (hd1,0)/boot/vmlinuz-2.6.9-5.0.3.EL ro root=LABEL=/1 rhgb quiet
#initrd (hd1,0)/boot/initrd-2.6.9-.5.0.3.EL.img

title window2000
        root (hd0,2)
        makeactive
        chainloader +1

# 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,0)
#          kernel /boot/vmlinuz-version ro root=/dev/hdd1
#          initrd /boot/initrd-version.img
#boot=/dev/hdd1
default=0
timeout=5
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS 4.0 (2.6.9-5.0.3.EL)
        root (hd1,0)
        kernel /boot/vmlinuz-2.6.9-5.0.3.EL ro root=LABEL=/1
        initrd /boot/initrd-2.6.9-5.0.3.EL.img
title gentoo
        rootnoverify (hd0,0)
        chainloader +1
title Other
        rootnoverify (hd0,2)
        chainloader +1
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表