Board logo

标题: 我的menu.lst.我不在学习。请明白的给解释一下 [打印本页]

作者: cci163     时间: 2008-10-22 18:23    标题: 我的menu.lst.我不在学习。请明白的给解释一下

下面是是我的menu.lst.  我不明白中间的命令。哪位大侠给说一说都是什么意思。详细一些最好。










# This is a sample menu.lst file. You should make some changes to it.   这是一个样本menu.lst文件。您应该作出一些改变它。
# The old install method of booting via the stage-files has been removed. 旧的安装方法,通过启动阶段的文件已被删除
# Please install GRLDR boot strap code to MBR with the bootlace.com  请安装GRLDR启动带膜生物反应器代码与bootlace.com
# utility under DOS/Win9x or Linux.    实用下DOS/Win9x或Linux 。

color black/cyan yellow/cyan   设置颜色黑/青  黄色/青色 前景    加亮
timeout 30  等待30秒
default /default     默认

title find and load NTLDR of Windows NT/2K/XP   显示   寻找和载入的NTLDR的Windows NT/2K/XP
fallback 1    后备1
find --set-root /ntldr  在所有分区上查找文件名, 并显示包含该文件的设备。如果设置了参数 --set-root,则在找到第一个匹配后马上停止,并且把该设备设为根。
chainloader /ntldr   加载扇区链式加载器。若使用了--force参数, 则忽略该扇区的启动标识的有效性
savedefault --wait=2  将当前项设置为默认的引导项。

title find and load CMLDR, the Recovery Console of Windows NT/2K/XP   显示 寻找和载入CMLDR ,故障恢复控制台的Windows NT/2K/XP
fallback 2
find --set-root /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2

title find and load IO.SYS of Windows 9x/Me
fallback 3
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2

title find and boot Mandriva with menu.lst already installed
fallback 4
find --set-root /etc/mandriva-release
savedefault --wait=2
configfile /boot/grub/menu.lst

title find and boot Linux with menu.lst already installed
fallback 5
find --set-root /sbin/init
savedefault --wait=2
configfile /boot/grub/menu.lst

title commandline
savedefault --wait=2
commandline

title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2

title back to dos
savedefault --wait=2
quit

title reboot
savedefault --wait=2
reboot

title halt
savedefault --wait=2
halt

title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/sbm.bin (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2

title memdrive based on win98 partition (hd0,6)
map --mem (hd0,6)+1 (hd0)
# map --mem (hd0,0)/win98.gz (hd0)
map --hook
chainloader (hd0)+1
rootnoverify (hd0)
savedefault --wait=2

title Linux System Install
kernel (hd0,0)/vmlinuz
initrd (hd0,0)/initrd.gz

[ Last edited by cci163 on 2008-10-22 at 19:33 ]
作者: lianjiang2004     时间: 2008-10-22 19:05
建议看看grub的官方文档。
作者: cci163     时间: 2008-10-22 19:13
我在看。我在一点点的看。只是想大家能帮一下。能理解的快一些。如果能看给白哪一条给讲一下。我也在看。明白的我会写出来。不对的请告诉我。