无忧启动论坛

标题: grub4dos光盘启动的问题。 [打印本页]

作者: binghe    时间: 2010-5-15 11:06
标题: grub4dos光盘启动的问题。
前段时间弄了一个pe和dos等文件,用grub4dos引导,一直用USB-HDD使用中,今天把他弄成ISO格式的就不行了。我是这样弄的:
把grldr改名为grldr.bin用Ultraiso加载引导,可以启动到menu.lst的菜单选择项,选择pe后,出现


选择maxdos后出现



选择其他的都没有问题。路径检查过了没有错误,因为直接把所有文件拖到U盘上然后用BOOTICE.EXE写引导全部功能都正常。
文件目录:



作者: sratlf    时间: 2010-5-15 11:23
标题: 回复 #1 binghe 的帖子
最主要的区别   做ISO镜像需要配置文件里所有路径名和文件名都大写
作者: binghe    时间: 2010-5-15 11:31
我有设置允许小写。当然,全部大写也有试过,都不行。
作者: yjd    时间: 2010-5-15 13:23
贴你的menu.lst菜单。
作者: wing202255    时间: 2010-5-15 13:45
ISO文件系统把RcokRidge选上

[ 本帖最后由 wing202255 于 2010-5-15 13:51 编辑 ]
作者: renchmin    时间: 2010-5-15 16:21
使用mkisofs.exe来重新制作一下试一试。
作者: xmanweb    时间: 2010-5-15 16:35
可能是你的menu.lst中,对root的定义不清,有的时候需要初始化下cdrom
我的grldr.bin内置的配置文件如下

pxe detect
configfile
default 0
timeout 0
title configfile /Boot/Grub/menu.lst
        errorcheck off
        root (cd) && configfile /Boot/Grub/menu.lst
        root (cd0) && configfile /Boot/Grub/menu.lst
        root (cd1) && configfile /Boot/Grub/menu.lst
        root (cd2) && configfile /Boot/Grub/menu.lst
        root (cd3) && configfile /Boot/Grub/menu.lst
        errorcheck on
        cdrom --init
  map --hook
  errorcheck off
  root (cd) && configfile /Boot/Grub/menu.lst
        root (cd0) && configfile /Boot/Grub/menu.lst
        root (cd1) && configfile /Boot/Grub/menu.lst
        root (cd2) && configfile /Boot/Grub/menu.lst
        root (cd3) && configfile /Boot/Grub/menu.lst
        errorcheck on
        commandline
title commandline
        commandline
title reboot
        reboot
title halt
        halt
作者: hpy7332    时间: 2010-5-15 17:08
文件名、文件的后缀名(包括菜单文件)以及菜单里的文件名、文件的后缀名、路径等必须全部大写,不能有1个字的小写,在ISO的属性里选不选中“允许小写”都一样。
作者: binghe    时间: 2010-5-15 18:16
回4楼:这个是我的菜单文件:
default 0

fontfile /BOOT/fonts.gz
splashimage /BOOT/bj.gz

title ☆<USB设备>系统维护和Ghost工具☆
clear
title ──────────────────────────────────  
clear


title 【1】启动 GHOST 11 手动操作功能 (支持NTFS分区)
kernel /boot/memdisk.gz c=80 h=2 s=36 floppy
initrd /boot/ghost.img

title ──────────────────────────────────
clear

title 【3】启动 WinPE 维护系统
find --set-root /TYPE/SETUPLDR.BIN
chainloader /TYPE/SETUPLDR.BIN (hd0)+1

title 【4】启动 MaxDOS维护工具
kernel /BOOT/MENDISK.GZ c=80 h=2 s=36 floppy
initrd /BOOT/MAXDOS.IMG

title 【6】启动 ADDS 10 DOS中文版
map --mem /BOOT/ADD.IMA (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

title 【7】启动 DGen分区软件DOS版
map --mem /BOOT/DGEN.IMA (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

title ──────────────────────────────────
clear

title 【9】启动本机硬盘的 WINDOWS NT/2003/XP 系统
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
chainloader (hd1,0)+1
boot
rootnoverify (hd1,0)
chainloader +1

title 【10】启动本机硬盘上 Vista/Win7 系统(如果存在)
find --set-root /bootmgr
chainloader /bootmgr

title 【11】重启计算机
reboot

title 【12】关闭计算机
halt
作者: binghe    时间: 2010-5-15 18:18
原帖由 wing202255 于 2010-5-15 13:45 发表
ISO文件系统把RcokRidge选上

把RcokRidge选上了也是一样
作者: binghe    时间: 2010-5-15 18:19
原帖由 renchmin 于 2010-5-15 16:21 发表
使用mkisofs.exe来重新制作一下试一试。

mkisofs.exe不会使用啊。呵呵,google了,没有一个说的比较简单易懂。。
作者: binghe    时间: 2010-5-15 18:21
原帖由 hpy7332 于 2010-5-15 17:08 发表
文件名、文件的后缀名(包括菜单文件)以及菜单里的文件名、文件的后缀名、路径等必须全部大写,不能有1个字的小写,在ISO的属性里选不选中“允许小写”都一样。


大小写在我这里都一样啊,我改成大写也不行。只有pe和maxdos两个不行,其他可以
作者: binghe    时间: 2010-5-15 18:22
原帖由 xmanweb 于 2010-5-15 16:35 发表
可能是你的menu.lst中,对root的定义不清,有的时候需要初始化下cdrom
我的grldr.bin内置的配置文件如下

pxe detect
configfile
default 0
timeout 0
title configfile /Boot/Grub/menu.lst
        e ...


你的菜单和我的差别好大哦。
作者: xmanweb    时间: 2010-5-16 15:18
标题: 回复 #13 binghe 的帖子
我的menu.lst是外置的,grldr.bin内置的配置文件主要能做的就说定义root位置和寻找menu.lst文件作为配置文件。你现在需要做的用grubmenu.exe是检查grldr.bin内置的配置文件关于root的定义


而且我建议你这几个条目这么写

title 【3】启动 WinPE 维护系统
chainloader /TYPE/SETUPLDR.BIN

title 【4】启动 MaxDOS维护工具
map --mem /BOOT/MAXDOS.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

试试吧,呵呵

[ 本帖最后由 xmanweb 于 2010-5-16 15:25 编辑 ]
作者: binghe    时间: 2010-5-17 06:54
多谢16楼,改了以后,maxdos可以使用了。但是pe还是老样子。


grldr导出来是这样的,我看不懂,呵呵:
  1. pxe detect
  2. configfile
  3. default 0
  4. timeout 1

  5. title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
  6.     errorcheck off
  7.     configfile /MENU.LST
  8.     configfile /BOOT/GRUB/MENU.LST
  9.     configfile /GRUB/MENU.LST
  10.     find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst
  11.     find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst
  12.     find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst
  13.     errorcheck on
  14.     commandline

  15. title commandline
  16.     commandline

  17. title reboot
  18.     reboot

  19. title halt
  20.     halt
复制代码

[ 本帖最后由 binghe 于 2010-5-17 06:59 编辑 ]
作者: xmanweb    时间: 2010-5-17 20:02
标题: 回复 #15 binghe 的帖子
说这个我就知道了,你这个问题不在grldr上,而在于/TYPE/SETUPLDR.BIN上,SETUPLDR.BIN中有一个地方是指ntdetect.com位置的,总共有四句,头两句是指明U盘或者硬盘上ntdetect.com的位置的,第四句是指明光盘介质上ntdetect.com的位置的,我做的pe的setupldr.bin就被改成这个样子,用ultraedit打开,如下图:

其中boot\pe\nt 就是我的ntdetect.com,你需要按照你的ntdetect.com名称和路径把选中的那一块给改成和上面前两个一样才行。
作者: qyxbx    时间: 2010-5-18 07:07
文件名、文件的后缀名(包括菜单文件)以及菜单里的文件名、文件的后缀名、路径等必须全部大写,不能有1个字的小写,在ISO的属性里选不选中“允许小写”都一样。

我按这个做 把原来USB HDD 启动的系统 做成USB CDROM 成功了
作者: binghe    时间: 2010-5-18 12:18
标题: 回复 #16 xmanweb 的帖子
多谢,改路径改了还是不行,索性ntdetect.com复制一个到TYPE下,问题解决了。呵呵




欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) Powered by Discuz! X3.3