免费注册 查看新帖 |

Chinaunix

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

【求助】32位和64位RHEL AS 4双引导 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-05 09:15 |只看该作者 |倒序浏览
我在同一块硬盘上同时安装了RHEL AS4 U2 的32位和RHEL AS4 U4 的64位版本,先装的32位,后装的64位,用GRUB引导启动。不过后装的64位会冲掉32位的引导菜单,所以装好64位后进root,手工把/boot/grub/grub.conf修改了一下。

原文件如下(节选,其他的均未动):
RHEL AS4 U4 64-bit (2.6.9-42.ELsmp)
  root (hd1,5)
  kernel /vmliunz-2.6.9-42.ELsmp ro root=LABEL=/1 rhgb quiet
  initrd /initrd-2.6.9-42.ELsmp.img
RHEL AS4 U4 64-bit-up (2.6.9-42.EL)
  root (hd1,5)
  kernel /vmliunz-2.6.9-42.EL ro root=LABEL=/1 rhgb quiet
  initrd /initrd-2.6.9-42.EL.img

手工改写后(节选,其他的均未动):
RHEL AS4 U4 64-bit (2.6.9-42.ELsmp)
  root (hd1,5)
  kernel /vmliunz-2.6.9-42.ELsmp ro root=LABEL=/1 rhgb quiet
  initrd /initrd-2.6.9-42.ELsmp.img
RHEL AS4 U4 64-bit-up (2.6.9-42.EL)
  root (hd1,5)
  kernel /vmliunz-2.6.9-42.EL ro root=LABEL=/1 rhgb quiet
  initrd /initrd-2.6.9-42.EL.img
RHEL AS4 U2 32-bit (2.6.9-22.ELsmp)
  root (hd1,0)
  kernel /vmliunz-2.6.9-22.ELsmp ro root=LABEL=/ rhgb quiet
  initrd /initrd-2.6.9-42.ELsmp.img
RHEL AS4 U2 32-bit-up (2.6.9-22.EL)
  root (hd1,0)
  kernel /vmliunz-2.6.9-22.EL ro root=LABEL=/ rhgb quiet
  initrd /initrd-2.6.9-22.EL.img

修改完成后,重启机器。选择引导"RHEL AS4 U2 32-bit (2.6.9-22.ELsmp)",但系统提示:
  request_module: runaway loop modprobe binfmt-464c
   request_module: runaway loop modprobe binfmt-464c
   request_module: runaway loop modprobe binfmt-464c
   request_module: runaway loop modprobe binfmt-464c
之后系统就挂起了。

查了查资料,有人说是因为32位和64位的word大小不一样,导致引导内核失败。(英文解释原文:That usually signals a mismatch between the word size of the kernel and the userspace modprobe (one is 32bit and one is 64bit).) 请问各位高人,有没有办法解决呢?因为业务需要,我就是想装32位和64位双引导。恳求帮忙!!!

不过奇怪的是,同样有两台一模一样的机器,安装的顺序也是一样的。那一台手工修改一下grub.conf就可以双引导了。引导不起来的这台的grub.conf就是从那台照抄过来的。难道是那台运气好?

[ 本帖最后由 shawnee 于 2007-1-5 09:17 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-01-05 10:46 |只看该作者
楼主的想法非常不错。。。说真的

我也想这样做

顶一下///

高手过来帮忙啊

论坛徽章:
0
3 [报告]
发表于 2007-01-10 08:24 |只看该作者
被我自己稀里糊涂地解决了。但是我也说不上为什么。
没出问题的那台机器的grub.conf如下:
default=2
timeout=5
splashimage=(hd1,5)/grub/splash.xpm.gz
hiddenmenu
title RHEL AS 4 U4 64-bit (2.6.9-42.ELsmp)
        root (hd1,5)
        kernel /vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/1 rhgb quiet
        initrd /initrd-2.6.9-42.ELsmp.img
title RHEL AS 4 U4 64-bit-up (2.6.9-42.EL)
        root (hd1,5)
        kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/1 rhgb quiet
        initrd /initrd-2.6.9-42.EL.img
title RHEL AS 4 U2 32-bit (2.6.9-22.ELsmp)
        root (hd1,0)
        kernel /vmlinuz-2.6.9-22.ELsmp ro root=LABEL=/
        initrd /initrd-2.6.9-22.ELsmp.img
title RHEL AS 4 U2 32-bit-up (2.6.9-22.EL)
        root (hd1,0)
        kernel /vmlinuz-2.6.9-22.EL ro root=LABEL=/
        initrd /initrd-2.6.9-22.EL.img
title Windows XP Pro
        rootnoverify (hd0,0)
        chainloader +1

先前有问题,后被调整好的那台机器的grub.conf如下:
default=1
timeout=5
splashimage=(hd1,5)/grub/splash.xpm.gz
hiddenmenu
title RHEL AS 4 U4 64-bit (2.6.9-42.ELsmp)
        root (hd1,5)
        kernel /vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/1 rhgb quiet
        initrd /initrd-2.6.9-42.ELsmp.img
#title RHEL AS 4 U4 64-bit-up (2.6.9-42.EL)
#        root (hd1,5)
#        kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/1 rhgb quiet
#        initrd /initrd-2.6.9-42.EL.img
title RHEL AS 4 U2 32-bit (2.6.9-22.ELsmp)
        root (hd1,0)
        kernel /vmlinuz-2.6.9-22.ELsmp ro root=LABEL=/
        initrd /initrd-2.6.9-22.ELsmp.img
#title RHEL AS 4 U2 32-bit-up (2.6.9-22.EL)
#        root (hd1,0)
#        kernel /vmlinuz-2.6.9-22.EL ro root=LABEL=/
#        initrd /initrd-2.6.9-22.EL.img
title Windows XP Pro
        rootnoverify (hd0,0)
        chainloader +1

其实区别就是,我把出问题的那台机器的grob.conf中64位的up和32位的up封掉了。不过不封掉就是引导不起32位的版本,就是把32位的引导菜单提到最前面也不行。好像这里的菜单项挺讲究顺序的。次序乱了不行,多一个少一个也不行。呵呵,不知道为什么。

盼高手给解释解释...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP