LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]GRUB设置问题

[复制链接]
发表于 2006-11-21 16:14:26 | 显示全部楼层 |阅读模式
我是两块IDE硬盘
一块80G hde
一块40G hdg 上面没有操作系统
Xp装在hd(0,0)上,SuSE则装在(hd0,7)
bootloader设置为在/dev/hde的主引导记录上
但安装完成后
不能用GRUB进入XP 提示Error22
但能正常引导SuSE

拔掉40G的硬盘后却又能正常引导Xp了
不知怎么解决 求助

这是  

menu.lst内容

# Modified by YaST2. Last modification on 2006年 11月 21日 星期二 02:38:12 UTC

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,7)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux 10.1
    root (hd0,7)
    kernel /boot/vmlinuz root=/dev/hde8 vga=0x317    resume=/dev/hde7  splash=silent showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: xen###
title XEN
    root (hd0,7)
    kernel /boot/xen.gz
    module /boot/vmlinuz-xen root=/dev/hde8 vga=0x317    resume=/dev/hde7  splash=silent showopts
    module /boot/initrd-xen

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
    chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux 10.1
    root (hd0,7)
    kernel /boot/vmlinuz root=/dev/hde8 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: memtest86###
title Memory Test
    kernel (hd0,7)/boot/memtest.bin
发表于 2006-11-21 18:29:24 | 显示全部楼层
还有 hdg 呀?
两块硬盘?
前几天是几块硬盘??
什么时候发现有这个问题的?
没有问题的时候 距离 现在发现问题有多久??

双硬盘,需不需要设置主从跳线的 ? 是不是没有设过跳线 ?

系统是新装的吧??
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-21 21:36:47 | 显示全部楼层
确切的说是没有正常过

前几天才接触的SuSE10.1
不过和Xp装在不同的硬盘上的
bios默认从装Linux的硬盘启动
那时就不能正常引导Xp
只有拔掉某一块硬盘才能正常进入系统

装了四五次还是解决不了问题我就试试装在同一块硬盘上
结果就出现了上面的问题

现在的问题有了新发现
GRUB不能引导Xp
但关机拔掉令一块硬盘,即上述的hdg
就可以正常引导Xp
之后再接上那块硬盘也可以正常引导
但只要一进入SUSE 正常重启后就又不能正常引导了
问题依旧

我的分区情况如下图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

容易受伤的女人 该用户已被删除
发表于 2006-11-21 21:57:04 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-21 22:04:53 | 显示全部楼层
Post by 容易受伤的女人
贴出/boot/grub/menu.lst看看



# Modified by YaST2. Last modification on 2006年 11月 21日 星期二 02:38:12 UTC

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,7)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux 10.1
root (hd0,7)
kernel /boot/vmlinuz root=/dev/hde8 vga=0x317 resume=/dev/hde7 splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: xen###
title XEN
root (hd0,7)
kernel /boot/xen.gz
module /boot/vmlinuz-xen root=/dev/hde8 vga=0x317 resume=/dev/hde7 splash=silent showopts
module /boot/initrd-xen

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux 10.1
root (hd0,7)
kernel /boot/vmlinuz root=/dev/hde8 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: memtest86###
title Memory Test
kernel (hd0,7)/boot/memtest.bin
回复 支持 反对

使用道具 举报

容易受伤的女人 该用户已被删除
发表于 2006-11-21 22:12:02 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-21 22:16:27 | 显示全部楼层
可不可能是什么主从盘的原因??
回复 支持 反对

使用道具 举报

发表于 2006-11-21 23:23:33 | 显示全部楼层
首先,如果存在 跳线的问题,要把这个跳线弄好。

然后,我想知道安装 Linux 的时候,是挂了一块硬盘,还是挂了两块硬盘 ?? 如果安装时就是是两块硬盘,如果在安装时就能识别这两块硬盘,应该不会有出现这样的问题。

如果有必要,可以将 bios 恢复到默认的设置(注意,不是增强的默认设置)。或者使 跳线帽短接 comms 放电。

上面的个问题排除之后,考虑启动 SuSE Linux 安装向导。在安装选择的地方,选择其它选项,选择引导已安装的系统。试试能不能正常启动 ??

最后就是,可以考虑在挂两块硬盘的情况下,尝试重装 引导装载程序 。仍然使用上面的 安装向导 中的 其它选项 来做。不过这一次不是引导已安装的系统,这一次是选择 修复已安装的系统 。然后就给出修复方案了,看到 引导装载程序 这样的字样后点击一下,一步一步的做。注意:不是选择 修复安装 。
回复 支持 反对

使用道具 举报

容易受伤的女人 该用户已被删除
发表于 2006-11-23 14:28:21 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2006-11-23 21:04:42 | 显示全部楼层
Post by 容易受伤的女人
在/boot/grub/menu.lst中使用map命令。参考下面的例子:

title windows
         map (hd0) (hd1)
         map (hd1) (hd0)
         chainloader(hd1,0)+1



嗯,我的就这样手动修改过。

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
cat /boot/grub/menu.lst
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# Modified by YaST2. Last modification on Sun Oct 29 07:15:22 CST 2006
color white/blue black/light-gray
default 0
timeout 3
password --md5 $1$lDmbW0eq$a*********thsN********dTdK0
gfxmenu (hd0,2)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux Enterprise Server 10
    root (hd0,2)
    kernel /boot/vmlinuz root=/dev/hda3 vga=0x31a resume=/dev/hda9  splash=silent showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: SUSE Linux Enterprise Server 10 (/dev/hda10)###
title SUSE Linux Enterprise Server 10 (/dev/hda10)
    kernel (hd0,9)/boot/vmlinuz root=/dev/hda10 resume=/dev/hda9  splash=silent showopts
    initrd (hd0,9)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: SUSE Linux Enterprise Server 10 (/dev/hda12)###
title SUSE Linux Enterprise Server 10 (/dev/hda12)
    root (hd0,11)
    kernel /boot/vmlinuz root=/dev/hda12 resume=/dev/hda9 splash=silent  showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
    chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader (hd1,0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux Enterprise Server 10
    root (hd0,2)
    kernel /boot/vmlinuz root=/dev/hda3 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd
回复 支持 反对

使用道具 举报

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

本版积分规则

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