QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 782|回复: 13

关于grub的新手问题(补充)刚才没有写完整对不起哈

[复制链接]
发表于 2005-11-29 16:46:43 | 显示全部楼层 |阅读模式
我3个硬盘
hda 40G
hdb 20G
linux和win2000装在hdb上 并且设为启动盘
现在 装了个80G的sata硬盘 装的winxp系统应该 在 grub里怎么加才能启动
主要是硬盘的 编号应该是 什么hd2 还是 sd0
我用的是redhat9.0
发表于 2005-11-29 16:59:53 | 显示全部楼层
xp? 在sd0
回复

使用道具 举报

 楼主| 发表于 2005-11-29 17:01:26 | 显示全部楼层
title Red HatEnterprise Linux ES (2.4.21-9.EL)
        root (hd0,5)
title WIN2000
        rootnoverify (hd0,0)
                chainloader +1

下面应该怎么填我的 我的主板认的串口磁盘 是第3磁盘通道
回复

使用道具 举报

发表于 2005-11-29 17:04:49 | 显示全部楼层
你原来的/boot/grub/grub.conf呢?
回复

使用道具 举报

 楼主| 发表于 2005-11-29 17:04:49 | 显示全部楼层
那应该是多少  在xwindows里 挂硬盘我就用的/sda 现在简直搞晕咯本来是挂的u盘 结果没有插u盘就变成了挂 串口硬盘的第一个分区咯
回复

使用道具 举报

 楼主| 发表于 2005-11-29 17:05:20 | 显示全部楼层
# 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,5)
#          kernel /vmlinuz-version ro root=/dev/hdb7
#          initrd /initrd-version.img
#boot=/dev/hdb
default=0
timeout=20
splashimage=(hd0,5)/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.21-9.EL)
        root (hd0,5)
        kernel /vmlinuz-2.4.21-9.EL ro root=LABEL=/
        initrd /initrd-2.4.21-9.EL.img
title WIN2000
        rootnoverify (hd0,0)
        chainloader +1
回复

使用道具 举报

发表于 2005-11-29 17:06:19 | 显示全部楼层
fdisk -l  结果贴来.

xp是在主分区吗?
回复

使用道具 举报

 楼主| 发表于 2005-11-29 17:07:42 | 显示全部楼层
是的在 80g串口的第一个分区  我现在在winxp系统里
回复

使用道具 举报

 楼主| 发表于 2005-11-29 17:09:20 | 显示全部楼层
我在 硬件浏览器里看到的是 80G是sda
我试了hd1 hd2都不行
回复

使用道具 举报

发表于 2005-11-29 17:11:40 | 显示全部楼层
title XP
rootnoverify (sd0,0)
chainloader +1
回复

使用道具 举报

发表于 2005-11-29 17:12:56 | 显示全部楼层
应该还一样。如果你bios里的启动顺序还是原来的那个有linux的硬盘,应该是一样的。
root (hd0,5)
回复

使用道具 举报

 楼主| 发表于 2005-11-29 17:24:38 | 显示全部楼层
[quote:9745de06f3="hew"]title XP
rootnoverify (sd0,0)
chainloader +1[/quote]

我试了不可以
回复

使用道具 举报

 楼主| 发表于 2005-11-29 17:26:24 | 显示全部楼层
[quote:a7bdedf906="月下刀客"]应该还一样。如果你bios里的启动顺序还是原来的那个有linux的硬盘,应该是一样的。
root (hd0,5)[/quote]
不是 redhat的 系统盘,吗?
回复

使用道具 举报

发表于 2005-11-29 18:01:36 | 显示全部楼层
加一组map 指令

map(hd0) (sd0)
map(sd0) (hd0)

看样子你的linux 和win2k 应该是在hda 啊.
你的bios 设置是从hda还是hdb 启动?

我试了不可以

什么提示?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-23 21:30 , Processed in 0.041837 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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