|
感觉坛子里有关BURG的贴子很少啊!前些天把BURG引导IMG文件的方式摸索出来了,想要用BURG引导IMG首先要知道IMG文件的CHS参数,下面给出我自己摸索出来的BURG.CFG菜单:
#
#
#
#
set theme_name=ubuntu
set gfxmode=800x600
if [ -s $prefix/burgenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function select_menu {
if menu_popup -t template_popup theme_menu ; then
free_config template_popup template_subitem menu class screen
load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
save_env theme_name
menu_refresh
fi
}
function toggle_fold {
if test -z $theme_fold ; then
set theme_fold=1
else
set theme_fold=
fi
save_env theme_fold
menu_refresh
}
function select_resolution {
if menu_popup -t template_popup resolution_menu ; then
menu_reload_mode
save_env gfxmode
fi
}
if test -f ${prefix}/themes/${theme_name}/theme ; then
insmod coreui
menu_region.text
load_string '+theme_menu { -阿拉伯自由风格 { command="set theme_name=arabic_and_freedom" }}'
load_string '+theme_menu { -黑白风格 { command="set theme_name=black_and_white" }}'
load_string '+theme_menu { -burg风格 { command="set theme_name=burg" }}'
load_string '+theme_menu { -中国风格 { command="set theme_name=chiva" }}'
load_string '+theme_menu { -咖啡风格 { command="set theme_name=coffee" }}'
load_string '+theme_menu { -debian风格 { command="set theme_name=debian" }}'
load_string '+theme_menu { -minimum风格 { command="set theme_name=minimum" }}'
load_string '+theme_menu { -原始风格 { command="set theme_name=proto" }}'
load_string '+theme_menu { -光芒风格 { command="set theme_name=radiance" }}'
load_string '+theme_menu { -光芒风格带文字 { command="set theme_name=radiancetext" }}'
load_string '+theme_menu { -refit { command="set theme_name=refit" }}'
load_string '+theme_menu { -索拉风格 { command="set theme_name=sora" }}'
load_string '+theme_menu { -索拉风格不带文字 { command="set theme_name=sora_clean" }}'
load_string '+theme_menu { -索拉风格扩展 { command="set theme_name=sora_extended" }}'
load_string '+theme_menu { -乌班图风格 { command="set theme_name=ubuntu" }}'
load_string '+theme_menu { -乌班图风格2 { command="set theme_name=ubuntu2" }}'
load_string '+theme_menu { -冬季风格 { command="set theme_name=winter" }}'
load_string '+theme_menu { -winly风格 { command="set theme_name=winly" }}'
load_string '+theme_menu { -mint风格 { command="set theme_name=mint" }}'
load_string '+theme_menu { -vitruvio风格 { command="set theme_name=vitruvio" }}'
load_string '+theme_menu { -秋雅风格 { command="set theme_name=autumn_refined" }}'
load_string '+theme_menu { -财富风格 { command="set theme_name=fortune" }}'
load_config ${prefix}/themes/conf.d/10_hotkey
load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
insmod vbe
insmod png
insmod jpeg
set gfxfont="Unifont Regular 16"
menu_region.gfx
vmenu resolution_menu
controller.ext
fi
insmod ntfs
set root='(hd0,1)'
set locale_dir=($root)/burg/locale
set lang=zh
insmod gettext
set timeout=25
### END header ###
### 菜单 0 开始 #### 宝 Storage 宝####
menuentry "启动 Windows PE 1.0 系统" --class windows {
search -s -f /axpe/ntldr
ntldr /axpe/ntldr
}
### 菜单 0 结束 ####
### 菜单 1 开始 ####
menuentry "启动 Windows PE 3.0 系统" --class linux {
search -s -f /boot/bootmgr
ntldr /boot/bootmgr
}
### 菜单 1 结束 ####
### 菜单 2 开始 ####
menuentry "启动 本机 Windows NT5.0 系统" --class gentoo {
insmod ntfs
insmod fat
search --set -f /ntldr
drivemap -s (hd0) ${root}
chainloader +1
}
### 菜单 2 结束 ####
### 菜单 3 开始 ####
menuentry "启动 本机 Windows NT6.0 系统" --class freebsd {
insmod ntfs
insmod fat
search --set -f /bootmgr
chainloader +1
}
### 菜单 3 结束 ####
### 菜单 4 开始 ####
menuentry "启动 深山红叶 DOS 工具箱" --class redhat {
linux16 /Burg/memdisk c=63 h=8 s=36
initrd16 /IMG/dos98.img
}
### 菜单 4 结束 ####
### 菜单 5 开始 ####
menuentry "启动 DM 10 分区工具" --class ubuntu {
linux16 /Burg/memdisk c=80 h=2 s=36
initrd16 /IMG/dm10.img
}
### 菜单 5 结束 ####
### 菜单 6 开始 ####
menuentry "启动 Ghost11.02 备份还原程式" --class puppy {
linux16 /Burg/memdisk c=80 h=2 s=36
initrd16 /IMG/GHOST.IMG
}
### 菜单 6 结束 ####
### 菜单 7 开始 ####
menuentry "NT5.0 系统密码破解" --class suse {
linux16 /Burg/memdisk c=80 h=2 s=9
initrd16 /IMG/PASSWORD.IMG
}
### 菜单 7 结束 ####
### 菜单 8 开始 ####
menuentry "NT6.0 系统密码破解" --class centos {
linux16 /Burg/memdisk c=80 h=2 s=18
initrd16 /IMG/xpvista.IMA
}
### 菜单 8 结束 ####
### 菜单 9 开始 ####
menuentry "Open SATA Detection" --class sabayon {
linux16 /Burg/memdisk c=80 h=2 s=18
initrd16 /IMG/DOS981.IMA
}
### 菜单 9 结束 ####
### 菜单 10 开始 ####
menuentry "启动 GRUB 4 DOS 菜单" --class arch {
set root=(hd0,1)
ntldr /F6/F6
}
### 菜单 10 结束 #### |
|