|
回复 #665 zhaohj 的帖子
测试:
菜单版的菜单修改好了 先map --mem 镜像再进f6 然后启动menu cd 成功
但是顺便又用了一下无菜单版,用老大你的写法
map --mem %wiso% (0xff) && map --hook
(hd0,0)/SRS/SRSF6N (hd0,0)/SRS
chainloader (0xff)
出现蓝屏 应该是识别磁盘驱动出问题。
建议老大还是在菜单版中加入仿真光盘启动、硬盘启动等菜单吧,更实用一些。无菜单版的智能识别能力好像不够强。
所以我认为菜单版更收欢迎吧。
自己改菜单虽然也简单,但是不注意修改字节大小的话就会出错,呵呵
上传我修改了内置菜单的srsf6文件,供大家使用,省却自己修改。
菜单见下:只添加仿真光盘启动和第一硬盘启动两项,其余不变
#terminal console
debug off
color white/blue blue/yellow light-red/blue 10
delmod wenv
delmod fat
delmod chkpci
delmod inifile
map --unmap=3
map --rehook
endlocal @
endlocal
default 0
timeout 50
title [0] Return GRUB4DOS Boot Menu \n Return first boot menu
clear
checkrange 0x21 read 0x8280 && pxe detect
configfile (md)4+8
title [1] Bootable virtual CDROM
rootnoverify (0xff)
chainloader (0xff)
title [2] Bootable HD0
rootnoverify (hd0)
chainloader (hd0)+1
title [3] Bootable CD\nLoad (CDx)
errorcheck off
chainloader (cd) && boot
chainloader (cd0) && boot
chainloader (cd1) && boot
errorcheck on
cdrom --init
map --hook
errorcheck off
chainloader (cd) && boot
chainloader (cd0) && boot
chainloader (cd1) && boot
title [4] With ISO file(mem or no mem) install windows xp/2003 \n A or B floppy must have FIRADISK driver \n Example: /win03.iso
set iso=/MYISO.ISO
find --set-root %iso% || set /p /u iso=please input windows install ISO_file:
find --set-root %iso% || pause Not Find ISO file && configfile (fd1)/DISK || configfile (fd0)/DISK
map %iso% (0xff) || map --mem %iso% (0xff)
map --mem (md)0x800+4 (99)
map --hook
echo [FiraDisk] > (99)+1
echo StartOptions=cdrom,vmem=find:%iso%; >> (99)+1
chainloader (0xff)
title [5] Continue With ISO file(mem or no mem) install windows xp/2003 \n A or B floppy must have FIRADISK driver \n Example: /win03.iso
set iso=/MYISO.ISO
find --set-root %iso% || set /p /u iso=please input windows install ISO_file:
find --set-root %iso% || pause Not Find ISO file && configfile (fd1)/DISK || configfile (fd0)/DISK
map %iso% (0xff) || map --mem %iso% (0xff)
map --mem (md)0x800+4 (99)
map --hook
echo [FiraDisk] > (99)+1
echo StartOptions=cdrom,vmem=find:%iso%; >> (99)+1
rootnoverify (hd0,0)
chainloader (hd0)+1
title [6] switch (hd0) (hd1)
debug off
clear
checkrange 2:-1 calc *0x475&0xff && map (hd0) (hd1) && map (hd1) (hd0) && map --hook && uuid && echo && geometry (hd0) && echo && ls (hd0,0)/ && echo && echo && pause (hd0) (hd1) Has switched
kernel || clear
title [7] /I386/SETUPLDR.BIN Loader\nLoad /I386/SETUPLDR.BIN
find --set-root /I386/SETUPLDR.BIN
chainloader --force /I386/SETUPLDR.BIN
title [8] /WIN_NT$.~BT/SETUPLDR.BIN Loader\nLoad /$WIN_NT$.~BT/setupldr.bin
find --set-root --ignore-floppies /WIN_NT$.~BT/SETUPLDR.BIN
chainloader --force /WIN_NT$.~BT/SETUPLDR.BIN
title [9] /$LDR$ Loader\nLoad /$ldr$
find --set-root --ignore-floppies /$LDR$
chainloader --force /$LDR$
title [10] Grub4Dos CommandLine
commandline
title [11] Unmap All\nUnmap all virtual floppies, hard drives and cdroms.
map --unmap=0:0xff
map --rehook
clear
pause All virtual floppies, hard drives and cdroms has been unmapped. Press any key to countinue...
kernel || clear
title [12] Reboot
reboot
title [13] halt
halt
SRSF6.rar
(132.49 KB, 下载次数: 26)
[ 本帖最后由 tingyue-wu 于 2011-8-16 12:16 编辑 ] |
|