无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 2922|回复: 1
打印 上一主题 下一主题

帮忙看看GRUB4DOS的MENU是否正确。

[复制链接]
跳转到指定楼层
1#
发表于 2010-6-28 10:12:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
最近,学习用GRUB4DOS做光盘引导,请各位帮忙看看下面是否正确。

内置MENU
  1. pxe detect
  2. configfile
  3. default 0
  4. timeout 1

  5. title grub4dos cd menu
  6. errorcheck off
  7. configfile (cd)/GRUB/MENU.LST
  8. find --set-root (cd)/grub/menu.lst && configfile (cd)/grub/menu.lst
  9. errorcheck on
  10. commandline

  11. title commandline
  12. commandline

  13. title reboot
  14. reboot

  15. title halt
  16. halt
复制代码
外置MENU
  1. color white/black yellow/red white/black white/black
  2. timeout 20
  3. default 6

  4. title [0] Microsoft Windows 7
  5. chainloader (cd)/BOOTMGR

  6. title [1] Microsoft Windows XP
  7. configfile (cd)/GRUB/WINXP.LST

  8. title [2] Microsoft Windows PE
  9. find --set-root /ISO/WINPE.ISO
  10. map /ISO/WINPE.ISO (0xff) || map --mem /ISO/WINPE.ISO (0xff)
  11. map --hook
  12. chainloader (0xff)
  13. savedefault --wait=2

  14. title [3] Backup & Partition
  15. configfile (cd)/GRUB/BACKUP.LST

  16. title [4] Memtest86+ (Memory Testing Tool)
  17. find --set-root /ISO/MEMTEST86.ISO
  18. map /ISO/MEMTEST86.ISO (hd32)
  19. map --hook
  20. root (hd32)
  21. chainloader (hd32)

  22. title [5] Goto EasyBoot Boot Menu
  23. find --set-root --ignore-floppies /EZBOOT/LOADER.BIN
  24. chainloader --force (cd)/EZBOOT/LOADER.BIN

  25. title Boot From First Hard Disk
  26. rootnoverify (hd0)
  27. chainloader +1

  28. title Reboot
  29. reboot

  30. title Shutdown
  31. halt
复制代码
BACKUP.LST
  1. color white/black yellow/red white/black white/black
  2. timeout 20
  3. default 5

  4. title [0] Acronis Backup & Recovery
  5. find --set-root /ISO/ATI.ISO
  6. map /ISO/ATI.ISO (hd32)
  7. map --hook
  8. root (hd32)
  9. chainloader (hd32)

  10. title [1] Acronis Disk Director Home
  11. find --set-root /ISO/ADD.ISO
  12. map /ISO/ADD.ISO (hd32)
  13. map --hook
  14. root (hd32)
  15. chainloader (hd32)

  16. title [2] Symantec Ghost
  17. find --set-root --ignore-floppies /ISO/GHOST.IMG
  18. map --mem /ISO/GHOST.IMG (fd0)
  19. map --hook
  20. chainloader (fd0)+1
  21. rootnoverify (fd0)

  22. title [3] Paragon Hard Disk Manager Pro
  23. root (cd)
  24. kernel /ISO/PARAGON/VMLINUZP splash=silent quiet root=/dev/ram0 eng_ver vga=788
  25. initrd /ISO/PARAGON/INITRD.GZ

  26. title [4] EASEUS Partition Master
  27. root (cd)
  28. kernel /ISO/EASEUS/BZIMAGE root=/dev/ram0 rw easeus_mode=1
  29. initrd /ISO/EASEUS/INITRD.IMG

  30. title Back To Main Menu
  31. configfile (cd)/GRUB/MENU.LST
复制代码
WINXP.LST
  1. color white/black yellow/red white/black white/black
  2. timeout 20
  3. default 10

  4. title [0] Microsoft Windows XP [VOL]
  5. cdrom --init
  6. map --hook
  7. root (cd)
  8. chainloader --force (cd)/ISO/XPBOOT/XPVL.BIN
  9. boot

  10. title [1] Microsoft Windows XP [ACER]
  11. cdrom --init
  12. map --hook
  13. root (cd)
  14. chainloader --force (cd)/ISO/XPBOOT/XPAC.BIN
  15. boot

  16. title [2] Microsoft Windows XP [ASUS]
  17. cdrom --init
  18. map --hook
  19. root (cd)
  20. chainloader --force (cd)/ISO/XPBOOT/XPAS.BIN
  21. boot

  22. title Next
  23. configfile (cd)/GRUB/WINXP2.LST

  24. title Back To Main Menu
  25. configfile (cd)/GRUB/MENU.LST
复制代码

[ 本帖最后由 sbjcf 于 2010-6-28 10:34 编辑 ]
2#
发表于 2010-6-28 11:26:39 | 只看该作者
没仔细看,这句find --set-root (cd)/grub/menu.lst && configfile (cd)/grub/menu.lst
find不能指定盘符,如果要指定盘符,可以这样
判断这个文件是否存在,存在就...
cat --length=0 (cd)/grub/menu.lst && configfile (cd)/grub/menu.lst
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2025-8-26 17:58

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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