grub之 menu.lst 样例


点击进入此menu.lst 下载页面


# NeoSmart NeoGrub Bootloader Configuration File

#
# This is the NeoGrub configuration file, and should be located at I:\NST\menu.lst
# Please see the EasyBCD Documentation for information on how to create/modify entries:
# http://neosmart.net/wiki/display/EBCD/

# 对引导映像要求连续存放,才能成功,easybcd有个整理工具,可以配合使用,也可以使用开源软件ultradefrag。
# 也许可以通过命令blocklist filename 可以得知是否连续存放。
# 当然,可以加mem解决此问题,不过载入时间会长些:map --mem    /ubuntu-9.10-desktop-amd64.iso (hd32)
# 参照http://blog.163.com/soft_share@126/blog/static/429836032011530113812100/

DEFAULT 2
TIMEOUT 20
#splashimage=(hd0,5)/grub/splash.xpm.gz
#grub>md5crypt 取得md5值
#另一法 password --md5  $1$5R.2$OanRg6GT.Tj3uJZzb.hye0

#指定位置法
title know where:boot from solutePE.ISO
map (hd0,0)/boot/solutePE.iso (hd32)
map --hook
chainloader (hd32)
boot

#自动查找法
title auto search: boot from solutePE.iso
#fallback 1
find --set-root /boot/solutePE.iso
 map --mem /boot/solutePE.iso (hd32)
map --hook
chainloader (hd32)
savedefault --wait=2

title know where:boot from wow2189.ISO For Mac OSX 10.8  Pls: -f
map --mem  (hd0,0)/boot/wow2189.iso (hd32)
map --hook
chainloader (hd32)
boot

title Debian 6.07
root (hd0,4)
kernel (hd0,4)/boot/vmlinuz-2.6.32-5-amd64 root=/dev/sda5
initrd (hd0,4)/boot/initrd.img-2.6.32-5-amd64
boot


title find and boot winxp.ISO
fallback 1
find --set-root /winxp.iso
map /winxp.iso (0xff) || map --mem /winxp.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2


ttitle install win7.iso
find --set-root /7600_Ultimate-DVD.iso
map /7600_Ultimate-DVD.iso (0xff) || map --mem /7600_Ultimate-DVD.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title LIVECD linux mint- 64bit
find --set-root /debian-6.0.7-amd64-kde-CD-1.iso
 map --mem /debian-6.0.7-amd64-kde-CD-1.iso (hd32)
map --hook
kernel (hd32)/casper/vmlinuz boot=casper iso-scan/filename=/debian-6.0.7-amd64-kde-CD-1.iso
initrd (hd32)/casper/initrd.lz
boot

title LIVECD linux ubuntu
find --set-root
/ubuntu-11.10-desktop-i386.iso
map    /ubuntu-11.10-desktop-i386.iso (hd32)
map --hook
kernel (hd32)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-11.10-desktop-i386.iso
initrd (hd32)/casper/initrd.lz
boot

title        启动    Ubuntu  8.04
root        (hd1,1)/ubuntu/disks
kernel        /boot/vmlinuz-2.6.24-16-generic root=UUID=3C1E-4147 loop=/ubuntu/disks/root.disk ro quiet splash
initrd        /boot/initrd.img-2.6.24-16-generic

title        启动    Ubuntu 8.04 (recovery mode)
root        (hd1,1)/ubuntu/disks
kernel        /boot/vmlinuz-2.6.24-16-generic root=UUID=3C1E-4147 loop=/ubuntu/disks/root.disk ro single
initrd        /boot/initrd.img-2.6.24-16-generic

title        启动 Ubuntu 8.04, memtest86+
root        (hd1,1)/ubuntu/disks
kernel        /boot/memtest86+.bin

title ──────────────────────────────────  
clear
title  启动  Ghost v11.0
map --mem /boot/load/ghost.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

title ──────────────────────────────────
clear
title  启动本机硬盘的 WINDOWS NT/2003/XP 系统
map (hd0) (hd0)
map (hd0) (hd1)
root (hd0,0)
chainloader (hd0,0)+1
boot
rootnoverify (hd0,0)
chainloader +1
clear

title  启动本机硬盘上 VISTA 系统(如果存在)
find --set-root /bootmgr
chainloader /bootmgr
clear

title  从第二硬盘启动系统
fallback 6
root (hd0,1)
chainloader +1

title  从光驱启动系统
cdrom --init
map --hook
chainloader (cd0)
boot

title ──────────────────────────────────
clear
title  重启计算机 reboot
reboot
clear
title  关闭计算机
halt
title ──────────────────────────────────
clear

猜你喜欢

转载自blog.csdn.net/kurt_wong/article/details/9745361