无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 4252|回复: 4
打印 上一主题 下一主题

关于BURG引导IMG文件的方法

[复制链接]
跳转到指定楼层
1#
发表于 2011-11-27 10:51:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
感觉坛子里有关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 结束 ####
2#
发表于 2011-12-23 16:17:13 | 只看该作者
支持下。收藏了,很有用的菜单
回复

使用道具 举报

3#
发表于 2011-12-23 20:15:48 | 只看该作者
没有那么复杂吧,不需要c/s/h参数。

menuentry " 运行可见区WIN7PE " --class windows {
search -s -f /UDDIY/WIN7PE.ISO (相当于find,写全路径可不要该句)
map  --set /UDDIY/WIN7PE.ISO (cd96)
cdload --image=0 ($root)或者 cdload --image=0 (map224)二选一。
boot
}

menuentry " 运行 MAXDOS工具箱 " --class windows {

map --mem --set (boot)/boot/imgs/maxdos.img (fd0)

chainloader +1
}

注:burg没有ud区的概念。(boot)即启动分区。FB的盘,相当于(ud)
蓝色字体为注释。


[ 本帖最后由 幸运的草 于 2011-12-23 20:17 编辑 ]
回复

使用道具 举报

4#
发表于 2011-12-24 15:30:18 | 只看该作者
为什么弄过颠倒的名字。好好玩的样子
回复

使用道具 举报

5#
发表于 2011-12-24 16:21:42 | 只看该作者
看上去好复杂,还是用g4d省心!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-9-22 17:31

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表