免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1502 | 回复: 6
打印 上一主题 下一主题

请教grub启动故障 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-08 15:15 |只看该作者 |倒序浏览
RHEL4Update2系统装在两SATA 80G硬盘做的软raid1,,系统认作sd[c-d] ;外挂一个磁盘阵列,映射到系统是sda,sdb。
关机一次后,系统开机到引导出现grub菜单之前停住了,只出现光标 _  闪烁。
用安装光盘进入rescue模式,chroot /mnt/sysimage,运行grub:
>root (hd2,0)
>setup (hd2)
>quit
没有出现错误信息。
重启还是如上现象不能启动。
请教为何?

论坛徽章:
0
2 [报告]
发表于 2006-03-08 15:20 |只看该作者
先看看grub.conf的配置,然后再一次安装grub看看

论坛徽章:
0
3 [报告]
发表于 2006-03-08 15:27 |只看该作者
grub.conf没有改过:
原配置如下:
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-22.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-22.ELsmp ro root=/dev/md2 rhgb quiet
        initrd /initrd-2.6.9-22.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-22.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-22.EL ro root=/dev/md2 rhgb quiet
        initrd /initrd-2.6.9-22.EL.img

后来把hd0改称hd2,再安装grub,情况还是一样。

论坛徽章:
0
4 [报告]
发表于 2006-03-08 16:22 |只看该作者
RHEL4Update2系统装在两SATA 80G硬盘做的软raid1,,系统认作sd[c-d] ;外挂一个磁盘阵列,映射到系统是sda,sdb。

看看/dev/sd*然后把正确的填回grub.conf

如sda1是激活的磁盘

default=0
timeout=5
splashimage=(sd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-22.ELsmp)
        root (sd0,0)
        kernel /vmlinuz-2.6.9-22.ELsmp ro root=/dev/md2 rhgb quiet
        initrd /initrd-2.6.9-22.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-22.EL)
        root (sd0,0)
        kernel /vmlinuz-2.6.9-22.EL ro root=/dev/md2 rhgb quiet
        initrd /initrd-2.6.9-22.EL.img

论坛徽章:
0
5 [报告]
发表于 2006-03-08 16:35 |只看该作者
还没试,但是有点疑问:
grub不区分IDE和SCSI磁盘,它只按照顺序来编号,在grub中 root( 用tab补全出现的是:
(hd2,0)  
(hd3,0)
所以才把grub.conf文件改成hd2,用sd可行?

manual中的说明:
To help you find out which number specifies a
partition you want, the GRUB command-line (*note Command-line
interface::) options have argument completion. This means that, for
example, you only need to type

     root (

   followed by a <TAB>, and GRUB will display the list of drives,
partitions, or file names. So it should be quite easy to determine the
name of your target partition, even with minimal knowledge of the
syntax.

   Note that GRUB does _not_ distinguish IDE from SCSI - it simply         <<------->>
counts the drive numbers from zero, regardless of their type. Normally,
any IDE drive number is less than any SCSI drive number, although that
is not true if you change the boot sequence by swapping IDE and SCSI
drives in your BIOS.

[ 本帖最后由 cnchin 于 2006-3-8 16:36 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2006-03-08 17:04 |只看该作者
抱歉,刚才看了一下,好象是一样的

http://bbs.chinaunix.net/viewthr ... &highlight=grub

还是分区的问题吧,把分区填正确应该可以了

论坛徽章:
0
7 [报告]
发表于 2006-03-08 18:07 |只看该作者
没头绪了:(
device.map文件早设置过了:
(hd0)  /dev/sda
(hd1)  /dev/sdb
(hd2)  /dev/sdc
(hd3)  /dev/sdd
因为外挂的磁盘阵列有两个raid5区,映射到系统内就是sda,sdb,
OS所在的两个盘顺序下来就是sdc,sdd,
mdstat里面也看到soft raid1是正常的。
之前外挂的磁盘阵列只有一个raid5时添加第二个raid5出现过类似的问题,添加的raid5映射成的sdb抢了os raid1 中的sdb造成grub启动失败,用重写grub的方法解决的。
这次关了一次机,居然就起不来了。。。。。sigh
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP