无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 5934|回复: 5
打印 上一主题 下一主题

[求助] Grub4dos如何使用grub2内核启动Ubunt

[复制链接]
跳转到指定楼层
1#
发表于 2012-1-4 16:38:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
近日升级到grub4dos-0.4.6a,在menu.lst中使用:
      find --ignore-floppies --ignore-cd --set-root /boot/grub/core.img
      kernel  /boot/grub/core.img
      boot

只一直显示闪烁的光标,不能载入grub2内核从而启动Ubunt(以前可以的),需改为:
      find --ignore-floppies --ignore-cd --set-root /boot/grub/boot.img
      kernel /boot/grub/lnxboot.img
      initrd /boot/grub/core.img
      chainloader /boot/grub/boot.img
      boot
才可以启动Ubunt。
请问新版是否不支持kernel  /boot/grub/core.img直按引导GRUB2内核?
2#
发表于 2012-1-4 16:49:59 | 只看该作者
你是不是搞错了?

用支持的语法不能启动,而用一个根本不支持的语法,反而启动了。怪哉。
回复

使用道具 举报

3#
 楼主| 发表于 2012-1-5 10:01:51 | 只看该作者
原帖由 不点 于 2012-1-4 16:49 发表
你是不是搞错了?

用支持的语法不能启动,而用一个根本不支持的语法,反而启动了。怪哉。

     没有搞错,我以前用kernel  /boot/grub/core.img直按引导GRUB2的(有引导菜单),但昨天升级到grub4dos-0.4.6a后想启动Ubunt,发现只有一直显示闪烁的光标而再没有反应。上网查了一下,改用了chainloader /boot/grub/boot.img就可以启动Ubunt了(有GRUB2引导菜单)。
我的Ubunt是ubuntu-11.10-desktop-amd64,安装在Ext4分区且用了一个Linux swap交换分区。
另用:
      find --set-root /boot/memtest86+.bin
      kernel /boot/vmlinuz-3.0.0-14-generic root=UUID=1480a738-706d-4772-955b-85983d30dd35 ro quiet splash vt.handoff=7 locale=zh_CN.UTF-8
      initrd /boot/initrd.img-3.0.0-14-generic
也可以启动Ubunt但不能用GRUB2引导菜单,请问要用GRUB2引导菜单如何办?
回复

使用道具 举报

4#
 楼主| 发表于 2012-1-5 12:25:30 | 只看该作者
我使用的menu.lst如下:
-------------------------------------------------------------------------------------------------
debug 0
errorcheck off
checkrange 0x21 read 0x8280 && pxe detect NotExist
terminal graphics
graphicsmode -1 640:800
find --set-root --ignore-floppies /grub/unifont.hex.gz
font /grub/unifont.hex.gz
timeout 8
iftitle [if exist (hd1,0)/boot/grub/core.img] ◆ [1] 启动 Ubuntu  64位 ◆ \n 引导内核core.img
      checkrange 0x00 parttype (hd1,0) && reboot
      checkrange 0x05,0x0F,0x85 parttype (hd0,0) || checkrange 0x07 parttype (hd0,0) && hide (hd0,0)
      checkrange 0x05,0x0F,0x85 parttype (hd0,1) || checkrange 0x07 parttype (hd0,1) && hide (hd0,1)
      checkrange 0x05,0x0F,0x85 parttype (hd0,3) || checkrange 0x07 parttype (hd0,3) && hide (hd0,3)
      checkrange 0x07 parttype (hd0,4) && hide (hd0,4)
      checkrange 0x07 parttype (hd0,5) && hide (hd0,5)
      checkrange 0x17 parttype (hd0,6) && unhide (hd0,6)
      checkrange 0x17 parttype (hd0,7) && unhide (hd0,7)
      checkrange 0x07 parttype (hd0,8) && hide (hd0,8)
      checkrange 0x93 parttype (hd0,2) && unhide (hd1,0)
      find --ignore-floppies --ignore-cd --set-root /boot/grub/core.img
      kernel  /boot/grub/core.img
      boot
iftitle [if exist (hd1,0)/boot/grub/boot.img] ◆ [2] 启动 Ubuntu  64位 ◆ \n 引导内核boot.img
      checkrange 0x00 parttype (hd1,0) && reboot
      checkrange 0x05,0x0F,0x85 parttype (hd0,0) || checkrange 0x07 parttype (hd0,0) && hide (hd0,0)
      checkrange 0x05,0x0F,0x85 parttype (hd0,1) || checkrange 0x07 parttype (hd0,1) && hide (hd0,1)
      checkrange 0x05,0x0F,0x85 parttype (hd0,3) || checkrange 0x07 parttype (hd0,3) && hide (hd0,3)
      checkrange 0x07 parttype (hd0,4) && hide (hd0,4)
      checkrange 0x07 parttype (hd0,5) && hide (hd0,5)
      checkrange 0x17 parttype (hd0,6) && unhide (hd0,6)
      checkrange 0x17 parttype (hd0,7) && unhide (hd0,7)
      checkrange 0x07 parttype (hd0,8) && hide (hd0,8)
      checkrange 0x93 parttype (hd0,2) && unhide (hd1,0)
      find --ignore-floppies --ignore-cd --set-root /boot/grub/boot.img
      kernel /boot/grub/lnxboot.img
      initrd /boot/grub/core.img
      chainloader /boot/grub/boot.img
      boot
-------------------------------------------------------------------------------------------------
使用grub4dos-0.4.5b-2011-12-06\chinese及grub4dos-0.4.6a两个版本的Grub4dos测试:
1. grub4dos-0.4.5b-2011-12-06版本,两项菜单均能启动GRUB2引导菜单
2. grub4dos-0.4.6a版本,[1]项只有显示一直闪烁的光标而再没有反应,[2]项能启动GRUB2引导菜单。
请问grub4dos-0.4.6a版本的Grub4dos是否对core.img不支持?

[ 本帖最后由 fsWolfer 于 2012-1-5 12:27 编辑 ]
回复

使用道具 举报

5#
发表于 2012-1-5 14:07:35 | 只看该作者
你可以试试命令行下能否启动,这算是报告 bug。

在菜单中很难说清楚究竟什么地方弄错了。在菜单中,也不知道命令执行后返回的信息,因此,不知道究竟是哪条命令失败了。

另外,根据你的描述,这可能表现出新版在引导 grldr 的过程出现的问题,比如,grldr 未被完整加载,或者加载 grldr 之后,破坏了中断向量表以及 BIOS 数据区。

总之,你看着办,如果可以提供信息,就尽量提供,帮助定位 bug。
回复

使用道具 举报

6#
 楼主| 发表于 2012-1-6 10:21:27 | 只看该作者
原帖由 不点 于 2012-1-5 14:07 发表
你可以试试命令行下能否启动,这算是报告 bug。

在菜单中很难说清楚究竟什么地方弄错了。在菜单中,也不知道命令执行后返回的信息,因此,不知道究竟是哪条命令失败了。

另外,根据你的描述,这可能表现出 ...

请问能否在菜单中加某一命令,从而产生命令执行返回的信息记录文件?
回复

使用道具 举报

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

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-5-13 08:36

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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