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 | # It must be UTF-8 encoding for multi-lingual support. Font lines can be
|
---|
7 | # appended to the file. The font lines should be in the unifont.hex format.
|
---|
8 |
|
---|
9 | color blue/green yellow/red white/magenta white/magenta
|
---|
10 | timeout 30
|
---|
11 | ## menu border color
|
---|
12 | color border=0xEEFFEE
|
---|
13 | ## set vbe mode
|
---|
14 | graphicsmode -1 640:800 480:600 24:32 || graphicsmode -1 -1 -1 24:32
|
---|
15 | ## loading splashimage
|
---|
16 | splashimage /boot/grub/splashimage.xpm || splashimage /boot/grub/splashimage.bmp
|
---|
17 | default /default
|
---|
18 | ## Menu AutoNumber
|
---|
19 | write 0x8274 0x2001
|
---|
20 |
|
---|
21 | title find and load NTLDR of Windows NT/2K/XP\n find and load NTLDR of Windows NT/2K/XP
|
---|
22 | fallback +1
|
---|
23 | find --set-root --ignore-floppies --ignore-cd /ntldr
|
---|
24 | map () (hd0)
|
---|
25 | map (hd0) ()
|
---|
26 | map --rehook
|
---|
27 | find --set-root --ignore-floppies --ignore-cd /ntldr
|
---|
28 | chainloader /ntldr
|
---|
29 | savedefault --wait=2
|
---|
30 |
|
---|
31 | #iftitle only show when command in [] returns true
|
---|
32 | # set a variable named bootmgr where /bootmgr is found.
|
---|
33 | iftitle [find --set-root --devices=h /bootmgr && call set bootmgr=%@root^%] load BOOTMGR of Windows VISTA/WIN7/WIN2008 on %bootmgr%
|
---|
34 | fallback +1
|
---|
35 | chainloader %bootmgr%/bootmgr
|
---|
36 | savedefault --wait=2
|
---|
37 |
|
---|
38 | title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
|
---|
39 | fallback +1
|
---|
40 | find --set-root --ignore-floppies --ignore-cd /cmldr
|
---|
41 | map () (hd0)
|
---|
42 | map (hd0) ()
|
---|
43 | map --rehook
|
---|
44 | find --set-root --ignore-floppies --ignore-cd /cmldr
|
---|
45 | chainloader /cmldr
|
---|
46 | #####################################################################
|
---|
47 | # write string "cmdcons" to memory 0000:7C03 in 2 steps:
|
---|
48 | #####################################################################
|
---|
49 | # step 1. Write 4 chars "cmdc" at 0000:7C03
|
---|
50 | #write 0x7C03 0x63646D63
|
---|
51 | # step 2. Write 3 chars "ons" and an ending null at 0000:7C07
|
---|
52 | #write 0x7C07 0x00736E6F
|
---|
53 |
|
---|
54 | # or.
|
---|
55 | #write --offset=3 (md)0x3e+1 cmdcons\0
|
---|
56 | # or
|
---|
57 | calc *0x7c03=0x00736E6F63646D63
|
---|
58 |
|
---|
59 | savedefault --wait=2
|
---|
60 |
|
---|
61 | title Chainload IO.SYS for booting MS-DOS/Windows 9x/Me
|
---|
62 | fallback +1
|
---|
63 | find --set-root --ignore-floppies --ignore-cd /io.sys
|
---|
64 | chainloader /io.sys
|
---|
65 | savedefault --wait=2
|
---|
66 | #
|
---|
67 | # Or in this way:
|
---|
68 | #
|
---|
69 | # find --set-root --ignore-floppies --ignore-cd chainloader /io.sys
|
---|
70 | # boot
|
---|
71 | #
|
---|
72 | # The above boot command is needed in this case.
|
---|
73 | # See "Delimitors or comments between titles" in grub4dos_readme.txt.
|
---|
74 |
|
---|
75 | title find /boot/grub/menu.lst for booting Linux (Mageia, Mandriva, etc)
|
---|
76 | fallback +1
|
---|
77 | find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst
|
---|
78 | configfile /boot/grub/menu.lst
|
---|
79 |
|
---|
80 | title Switch to GRUB2 core.img for booting Linux (Ubuntu, etc)
|
---|
81 | fallback +1
|
---|
82 | find --set-root --ignore-floppies --ignore-cd /boot/grub/i386-pc/core.img
|
---|
83 | kernel /boot/grub/i386-pc/core.img
|
---|
84 |
|
---|
85 | title commandline
|
---|
86 | commandline
|
---|
87 |
|
---|
88 | title 0PE LiveISO
|
---|
89 | find --set-root --ignore-floppies --ignore-cd /0PE.ISO
|
---|
90 | map /0PE.ISO (0xff)
|
---|
91 | map --hook
|
---|
92 | chainloader (0xff)
|
---|
93 | savedefault --wait=2
|
---|
94 |
|
---|
95 | title MicroPE LiveISO
|
---|
96 | find --set-root --ignore-floppies --ignore-cd /boot/MicroPE.ISO
|
---|
97 | map /boot/MicroPE.ISO (0xff)
|
---|
98 | map --hook
|
---|
99 | chainloader (0xff)
|
---|
100 | savedefault --wait=2
|
---|
101 |
|
---|
102 | title Parted Magic LiveISO
|
---|
103 | find --set-root --ignore-floppies --ignore-cd /pmagic.iso
|
---|
104 | map /pmagic.iso (0xff)
|
---|
105 | map --hook
|
---|
106 | chainloader (0xff)
|
---|
107 | savedefault --wait=2
|
---|
108 |
|
---|
109 | title Ultimate Boot CD LiveISO
|
---|
110 | find --set-root --ignore-floppies --ignore-cd /ubcd.iso
|
---|
111 | map /ubcd.iso (0xff)
|
---|
112 | map --hook
|
---|
113 | chainloader (0xff)
|
---|
114 | savedefault --wait=2
|
---|
115 |
|
---|
116 | title SliTaz LiveISO
|
---|
117 | find --set-root --ignore-floppies --ignore-cd /slitaz.iso
|
---|
118 | map /slitaz.iso (0xff)
|
---|
119 | map --hook
|
---|
120 | chainloader (0xff)
|
---|
121 |
|
---|
122 | title Mageia Installation ISO
|
---|
123 | find --set-root --ignore-floppies --ignore-cd /Mageia-2-x86_64-DVD.iso
|
---|
124 | map /Mageia-2-x86_64-DVD.iso (0xff)
|
---|
125 | map --hook
|
---|
126 | chainloader (0xff)
|
---|
127 |
|
---|
128 | title reboot (重启)
|
---|
129 | reboot
|
---|
130 |
|
---|
131 | title halt (关机)
|
---|
132 | halt
|
---|
133 |
|
---|
134 | title MAXDOS.IMG
|
---|
135 | find --set-root --ignore-floppies --ignore-cd /boot/MAXDOS.IMG
|
---|
136 | map --mem /boot/MAXDOS.IMG (fd0)
|
---|
137 | map --hook
|
---|
138 | chainloader (fd0)+1
|
---|
139 | rootnoverify (fd0)
|
---|
140 |
|
---|
141 | # In the end, font lines for unicode chars in unifont.hex format.
|
---|
142 | # It should include all unicode chars used in the above menu code.
|
---|
143 | # Surely normal ASCII chars are not necessary to be included here.
|
---|
144 |
|
---|
145 | 5173:10100810082000003FF8010001000100FFFE010002800280044008203018C006
|
---|
146 | 542F:010000801FFC1004100410041FFC10001000100017FC24042404440487FC0404
|
---|
147 | 673A:100011F011101110FD10111031103910551055109110111211121212120E1400
|
---|
148 | 91CD:001000F83F000100FFFE01001FF011101FF011101FF001003FF80100FFFE0000
|
---|
149 |
|
---|
150 |
|
---|
151 |
|
---|