GRUB2 装载 SYSLINUX /GRUB4DOS 和SYSLINUX 装载 GRUB2/GRUB4DOS 菜单
本帖最后由 ali88home 于 2014-2-27 11:13 编辑我的制作方法:下面的相关资料就是我修改的部分
把grubold资料COPY到您先前制作的双启动U盘,再更改GRUB4DOS 菜单~H3_GR2HD.LST(例子下面有)装载GRUB2,就可以了。
UEFI启动制作,把UEFI档案COPY到您先前制作的双启动U盘,就可以了。当然计算机要有支持EFI的。
EFI菜单要跟GRUB2-(msdos1)菜单区别使用
这里有现成的,拿来用。
【2014-01-29】hhh333的多模多启PE发布
http://bbs.wuyou.net/forum.php?m ... &fromuid=156496
(出处: 无忧启动论坛)
2014-01-30 (新春发布繁体中文不喜勿入)UEFI/BIOS双启动维护专用随身碟方式PE
http://bbs.wuyou.net/forum.php?m ... &fromuid=156496
(出处: 无忧启动论坛)
1.有上面启动U盘之一的,可以下载UEFI+BIOS完整资料,copy就好了。
2.有其他双启动U盘的,也可以下载UEFI+BIOS完整资料,copy就好了,再更改GRUB4DOS 菜单~*.LST。
2.没有的,请参考下面制作:再copy就好了。
Grub4dos中文化+Syslinux中文化+U盘双启动制作-ali88home
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=257156&fromuid=156496
(出处: 无忧启动论坛)
看到几篇GRUB2菜单介绍,心动自个试试制作这个菜单,大家看看吧!
GRUB2 for DOS/UEFI/ISO/PXE项目(winly)正式启动(含制作教程及源码)
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=308011&fromuid=156496
(出处: 无忧启动论坛)
【给PE制作者们献礼!】PE多重启动模版(grub2-2.00)教程及源码
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=308893&fromuid=156496
(出处: 无忧启动论坛)
在windows多系统中安装grub2-2.00启动器
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=308026&fromuid=156496
(出处: 无忧启动论坛)
总算把H3-PE加载进入GRUB2菜单里面成功,呵呵...
menuentry "启动(bootmgr)的windowsPE系统" --class windows --class os {
insmod fat
insmod part_msdos
insmod ext2
insmod ntfs
set root=(hd0,msdos1)
ntldr /bootmgr
}
DOS工具集
......
menuentry "启动puppy linux系统" --class windows --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
linux /vmlinuz root=/dev/ram0 PMEDIA=usbflash pfix=copy
initrd /initrd.gz
}
menuentry "装载 SYSLINUX 菜单" {
recordfail
insmod part_msdos
insmod fat
set root='(hd0,msdos1)'
chainloader +1
}
menuentry "GRUB2引导光盘中的GRUB4DOS 菜单" {
search -f /grub.exe --set=root
linux /grub.exe --config-file=(cd)/menu.lst
#search -f /grub/grub.exe --set=root
#linux /grub/grub.exe --config-file=(cd) /grub/menu.lst
#search -f /boot/grub/grub.exe --set=root
#linux /boot/grub/grub.exe --config-file=(cd) /boot/grub/menu.lst
}
menuentry "GRUB2引导盘中的GRUB4DOS 菜单" {
insmod ntfs
set root=(hd0,1)
linux /grub.exe
# linux /grub/grub.exe
# linux /boot/grub/grub.exe
}
menuentry "进入子菜单" --class ubuntu{
insmod gzio
insmod part_msdos
insmod ext2
insmod ntfs
insmod probe
search --no-floppy --file --set=root /vmlinuz
configfile ($root)/winly/winly.cfg
}
(还是上面的比较完善,下面的会找到其他盘的)/winly/winly.cfg
menuentry "进入子菜单" --class ubuntu{
set root='(hd0,msdos1)'
configfile /winly/winly.cfg
}
menuentry "Boot Hardware Detection Tool from iso" {
linux16/boot/grub/memdisk iso
initrd16 /MINIPE/Win8PE64.iso
}
menuentry "Boot DOS from floppy image (with 'raw' parameter)" {
linux16/boot/grub/memdisk raw
initrd16 /boot/imgs/DISKGEN.IMG
}
menuentry "Boot Hardware Detection Tool from floppy" {
linux16/boot/grub/memdisk
initrd16 /boot/imgs/MAXDOS.IMG
}
menuentry "重启电脑" {
reboot
}
方法:加载Gr2ldr
给H3大大的SYSLINUX加载GRUB2方法
LABEL gr2ldr
MENU LABEL [ ^B ] Goto Grub2 Boot Menu
MENU IMMEDIATE
# kernel /gr2ldr---都可以
boot /gr2ldr
grub4dos加载方法
title GRUB2
find --set-root --ignore-floppies --ignore-cd /gr2ldr
kernel /gr2ldr
GRUB4DOS菜单装载GRUB2,这个不错,好多哦!
http://bbs.wuyou.net/forum.php?mod=redirect&goto=findpost&ptid=325310&pid=2887624&fromuid=156496
UEFI+BIOS完整资料解压缩密码:ali88home
更新中...
下面是相关资料可以参考
相关资料:GRUB4DOS 菜单~H3_GR2HD.LST,GRUB2 菜单~grub.cfg,广告图片~13.04.png,背景图片~background.png,界面设定~theme.txt
GRUB2相关资料:memdisk 放在/boot/grub/
里面有多的制作资料可以参考看看
本帖最后由 ali88home 于 2014-3-10 13:57 编辑
记录下来,跟上面没有关系。
1.修改BCD方法:bootmgr=BFU64.BIN修改路径后更改名称为BFU64.BIN》BFU》BFUK.WIM
2.这是替换PE-WIM的方法:H3_8PE64.WIM打开/Windows/...得到新的H3_8PE64.WIM再(复制到外面取代也可以)直接替换到UltraISO里面
讲解的很详细,便于资鉴。谢谢! ali88home 发表于 2014-2-6 01:13
制作方法加上了,看看吧!COPY就好了
谢谢,下载后学习一下,搞不懂时再向你请教! qj_tzy 发表于 2014-1-29 09:51
楼主的这个菜单界面做得很有特色,我一直没搞懂grub的图形界面是怎样做出来的,能否贴出详细做法,谢谢!
制作方法加上了,看看吧!COPY就好了 本帖最后由 shan 于 2014-2-6 13:38 编辑
学习中,如果菜单界面优化一下就完美了{:2_121:} 楼主的这个菜单界面做得很有特色,我一直没搞懂grub的图形界面是怎样做出来的,能否贴出详细做法,谢谢! 本帖最后由 ali88home 于 2016-7-24 20:59 编辑
取消-界面设定~theme.txt,界面就如GRUB4dos
特别叮咛:EFI菜单要区分使用哦
特别说明使用方法:里面有几组启动方式,把那些EFI/boot/bootx64-*.efi更改为bootx64.efi来启动
UEFI启动把菜单框取消了,跟GRUB2-(msdos1)菜单区别
EFI/boot/bootx64.efi---GRUB/grub.cfg资料夹启动
测试结果,字形支援ZH-TW正体繁体-CN简体...
EFI/microsoft/boot/BCD启动
EFI/microsoft/boot/BCD-TW启动
BOOTx64.efi修改BCD:
20160724补充W10 X64 BCD位置E8690
X64BCD位置11678A 校验和位置138 改为B64 前校验和EE871500 新校验和D1871500
X86BCD位置EA276 校验和位置130 改为B32 前校验和CF8E1100 新校验和AD8E1100
http://bbs.wuyou.net/forum.php?mod=redirect&goto=findpost&ptid=326335&pid=2896524
2013.10.31重新编辑帖子:BOOTMGR破解,可自由修改: BOOT\BCD
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=211314
(出处: 无忧启动论坛)
各版本修改bootmgr.exe里目录路径的对应的偏移量:
目录路径:\Boot \Boot\BCD \Boot\Fonts
Windows 8.1正式版:0x00D36 0x00D86 0x03BDA
Windows 8 正式版:0x8340A 0x8345E 0x87FE2
Windows 7 SP1 :0x650F2 0x65146 0x6743E
BCD修改方法:
让GRUB2作为您WIN8的启动选项
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=326977&fromuid=156496
(出处: 无忧启动论坛)
本帖最后由 ali88home 于 2014-2-27 11:07 编辑
菜单说明:winly/winly.cfg
#倒计时
set timeout=10
#菜单启动项
set default="6"
#加载unicode字体显示中文
loadfont ($root)/grub/unicode.pf2
#set locale_dir=($root)/grub/locale
#set lang=zh_CN
(这个zh_CN字形设定,我想是多余的,一加载unicode.pf2,连正\简体都支持了。
而这个winly模板已经内置了,留着外置字形可以用到)
#设置分辨率
set gfxmode=1024x768
terminal_output gfxterm
background_color 0,151,204
(而这个winly模板已经内置了auto,留着外置可以用到)
# 背景图设定
insmod jpeg
if background_image ($root)/winly/background.jpg; then
true
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
fi
#界面设定
insmod gfxmenu
insmod png
set theme=($root)/winly/themes/winly/theme.txt
export theme
##########
##########
........
接下来说明:界面设定
set theme=($root)/winly/themes/winly/theme.txt
# UEFI Ubuntu 13.04 GRUB2 theme
#message-bg-color: "#000000" 或 "0,0,0" 或 black 颜色设定方式
title-text: ""
# 背景图设定
desktop-image: "wallpaper.png"
# 屏幕编辑图框
terminal-box: "terminal_*.png"
#terminal-font: "Gnu Unifont Mono Regular 16"
# 标签设定
+ label {
top = 7%+20
width =100%
align = center
color = "255,0,0"
font = "DejaVu Sans Regular 14"
text = "UEFI GRUB2 OS selection"
}
# 启动条
+ progress_bar {
id = "__timeout__"
left = 35%
top = 68%+5
height = 20
width = 7%
font = "DejaVu Sans Regular 12"
text_color = "#333333"
text = "选项将在 %d 秒后执行..."
bar_style = "progress_*.png"
highlight_style = "progress_highlight_*.png"
}
# 菜单框设定
+ boot_menu {
left = 31%
width = 68%
top = 12%
height = 60%
#menu_pixmap_style = "boot_menu_*.png"
item_font = "DejaVu Sans Bold 14"
item_color = "255,0,0"
item_height = 38
item_icon_space = 8
item_spacing = 2
selected_item_font = "DejaVu Sans Bold 14"
selected_item_color= "255,255,255"
#selected_item_pixmap_style = "select_*.png"
#icon_height = 48
#icon_width = 48
#icon_spacing = 25
#scrollbar = true
#scrollbar_width = 3
#scrollbar_thumb = "slider_*.png"
}
# 这里是广告图片.
+ image {
top = 90%-5
left = 75%+5
width = 172
hight = 68
file = "13.04.png"
}
# + image {
#top = 5%
#left = 20%
#width = 300
#hight = 80
#file = "ad2.png"
#}
# The navigation instructions说明指令
+ vbox {
left = 1%
top = 88%
+ label { text = "-按 'c' 进入程序命令行" color = "173,169,165" font = "DejaVu Sans Regular 12" }
+ label { text = "-按 'e' 键编辑所选菜单的命令行" color = "173,169,165" font = "DejaVu Sans Regular 12" }
+ label { text = "-按上下键选择高亮菜单,按回车键启动" color = "173,169,165" font = "DejaVu Sans Regular 12" }
}
........
不错,顶起。虽然很基础 这么好的教程没人顶起?可惜了! 学习一下,,,谢谢分享。。。。 效果看着不错,学习学习 我好奇 看看先!!!!!! 感谢分享!
页:
[1]