当前位置: 首页 > 工具软件 > Grub4DOS > 使用案例 >

linux菜单实例,grub4dos启动菜单示例

谷泳
2023-12-01

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

# This is a sample menu.lst file. You should make some changes to it.

# 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

# utility under DOS/Win9x or Linux.

color blue/green yellow/red white/magenta white/magenta

timeout 30

default /default

#命令行

title commandline

commandline

#重启

title reboot

reboot

#换到Grub1.9

title Link to Grub1.9

find --set-root /boot/grub/core.img

kernel /boot/grub/core.img

#换到Grub2.x

title Link to Grub2.x

find --set-root /boot/grub/x86_64-efi/core.efi

kernel /boot/grub/x86_64-efi/core.efi

#启动ubuntu

title ubuntu 10.04

find --set-root /vmlinuz

kernel /vmlinuz root=/dev/sda7 ro quiet splash vga=869

initrd /initrd.img

#启动ubuuntu ISO

title ubuntu live CD

kernel (hd0,7)/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso locale=zh_CN.UTF-8

initrd (ha0,7)/initrd.lz

#winxp安装光盘ISO

title Winxp install cd

find --set-root /winXP.iso

map --mem /winXP.iso (0xff)

map --hook

chainloader (0xff)

#启动DOS

title Floppy Image

map --mem (hd0,0)/dos.img (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0)

#启动已安装的Winxp

title WinXp

chainloader (hd0,1)+1

 类似资料: