[d89a58f] | 1 | # This is a sample menu.lst file. You should make some changes to it. |
---|
| 2 | # The old install method of booting via the stage-files has been removed. |
---|
| 3 | # Please install GRLDR boot strap code to MBR with the bootlace.com |
---|
| 4 | # utility under DOS/Win9x or Linux. |
---|
| 5 | |
---|
| 6 | color blue/green yellow/red white/magenta white/magenta |
---|
| 7 | timeout 30 |
---|
| 8 | ## menu border color |
---|
| 9 | color border=0xEEFFEE |
---|
| 10 | ## set vbe mode |
---|
| 11 | graphicsmode -1 640 480:800 |
---|
| 12 | ## loading splashimage |
---|
| 13 | splashimage /boot/grub/splashimage.xpm || splashimage /boot/grub/splashimage.bmp |
---|
| 14 | default /default |
---|
| 15 | ## Menu AutoNumber |
---|
| 16 | write 0x8274 0x2001 |
---|
| 17 | |
---|
| 18 | title find and load NTLDR of Windows NT/2K/XP\n find and load NTLDR of Windows NT/2K/XP |
---|
| 19 | fallback 1 |
---|
| 20 | find --set-root --ignore-floppies --ignore-cd /ntldr |
---|
| 21 | map () (hd0) |
---|
| 22 | map (hd0) () |
---|
| 23 | map --rehook |
---|
| 24 | find --set-root --ignore-floppies --ignore-cd /ntldr |
---|
| 25 | chainloader /ntldr |
---|
| 26 | savedefault --wait=2 |
---|
| 27 | |
---|
| 28 | #iftitle only show when command in [] returns true |
---|
| 29 | # set a variable named bootmgr where /bootmgr is found. |
---|
| 30 | iftitle [find --set-root --devices=h /bootmgr && call set bootmgr=%@root^%] load BOOTMGR of Windows VISTA/WIN7/WIN2008 on %bootmgr% |
---|
| 31 | chainloader %bootmgr%/bootmgr |
---|
| 32 | savedefault --wait=2 |
---|
| 33 | |
---|
| 34 | title find and load CMLDR, the Recovery Console of Windows NT/2K/XP |
---|
| 35 | fallback 3 |
---|
| 36 | find --set-root --ignore-floppies --ignore-cd /cmldr |
---|
| 37 | map () (hd0) |
---|
| 38 | map (hd0) () |
---|
| 39 | map --rehook |
---|
| 40 | find --set-root --ignore-floppies --ignore-cd /cmldr |
---|
| 41 | chainloader /cmldr |
---|
| 42 | ##################################################################### |
---|
| 43 | # write string "cmdcons" to memory 0000:7C03 in 2 steps: |
---|
| 44 | ##################################################################### |
---|
| 45 | # step 1. Write 4 chars "cmdc" at 0000:7C03 |
---|
| 46 | #write 0x7C03 0x63646D63 |
---|
| 47 | # step 2. Write 3 chars "ons" and an ending null at 0000:7C07 |
---|
| 48 | #write 0x7C07 0x00736E6F |
---|
| 49 | |
---|
| 50 | # or. |
---|
| 51 | #write --offset=3 (md)0x3e+1 cmdcons |
---|
| 52 | # or |
---|
| 53 | calc *0x7c03=0x00736E6F63646D63 |
---|
| 54 | |
---|
| 55 | savedefault --wait=2 |
---|
| 56 | |
---|
| 57 | title find and load IO.SYS of Windows 9x/Me |
---|
| 58 | fallback 4 |
---|
| 59 | find --set-root /io.sys |
---|
| 60 | chainloader /io.sys |
---|
| 61 | savedefault --wait=2 |
---|
| 62 | # you can also use below commands. |
---|
| 63 | # find --set-root chainloader /io.sys |
---|
| 64 | # boot |
---|
| 65 | # the boot is necessary, |
---|
| 66 | # please see "Delimitors or comments between titles" in grub4dos_readme.txt. |
---|
| 67 | |
---|
| 68 | title find and boot 0PE.ISO |
---|
| 69 | fallback 5 |
---|
| 70 | find --set-root /0PE/0PE.ISO |
---|
| 71 | map /0PE/0PE.ISO (0xff) || map --mem /0PE/0PE.ISO (0xff) |
---|
| 72 | map --hook |
---|
| 73 | chainloader (0xff) |
---|
| 74 | savedefault --wait=2 |
---|
| 75 | |
---|
| 76 | title find and boot MicroPE.ISO |
---|
| 77 | fallback 6 |
---|
| 78 | find --set-root /boot/MicroPE.ISO |
---|
| 79 | map /boot/MicroPE.ISO (0xff) || map --mem /boot/MicroPE.ISO (0xff) |
---|
| 80 | map --hook |
---|
| 81 | chainloader (0xff) |
---|
| 82 | savedefault --wait=2 |
---|
| 83 | |
---|
| 84 | title Parted Magic ISO |
---|
| 85 | fallback 7 |
---|
| 86 | find --set-root /pmagic.iso |
---|
| 87 | map /pmagic.iso (0xff) || map --mem /pmagic.iso (0xff) |
---|
| 88 | map --hook |
---|
| 89 | chainloader (0xff) |
---|
| 90 | savedefault --wait=2 |
---|
| 91 | |
---|
| 92 | title Ultimate Boot CD ISO |
---|
| 93 | fallback 8 |
---|
| 94 | find --set-root /ubcd.iso |
---|
| 95 | map /ubcd.iso (0xff) || map --mem /ubcd.iso (0xff) |
---|
| 96 | map --hook |
---|
| 97 | chainloader (0xff) |
---|
| 98 | savedefault --wait=2 |
---|
| 99 | |
---|
| 100 | title SliTaz ISO |
---|
| 101 | find --set-root /slitaz.iso |
---|
| 102 | map /slitaz.iso (0xff) || map --mem /slitaz.iso (0xff) |
---|
| 103 | map --hook |
---|
| 104 | chainloader (0xff) |
---|
| 105 | |
---|
| 106 | title commandline |
---|
| 107 | commandline |
---|
| 108 | |
---|
| 109 | title floppy (fd0) |
---|
| 110 | chainloader (fd0)+1 |
---|
| 111 | rootnoverify (fd0) |
---|
| 112 | # or use below commands. |
---|
| 113 | # rootnoverify (fd0) |
---|
| 114 | # chainloader +1 |
---|
| 115 | |
---|
| 116 | title back to dos |
---|
| 117 | quit |
---|
| 118 | |
---|
| 119 | title reboot |
---|
| 120 | reboot |
---|
| 121 | |
---|
| 122 | title halt |
---|
| 123 | halt |
---|
| 124 | |
---|
| 125 | title MAXDOS.IMG |
---|
| 126 | find --set-root --ignore-floppies /boot/MAXDOS.IMG |
---|
| 127 | map --mem /boot/MAXDOS.IMG (fd0) |
---|
| 128 | map --hook |
---|
| 129 | chainloader (fd0)+1 |
---|
| 130 | rootnoverify (fd0) |
---|
| 131 | |
---|
| 132 | |
---|