很久没上Ubuntu论坛了。过去一台老笔记本(2012年的I3独显电脑)应该是主板坏了,原来笔记本主板没有UEFI选项的。把原来的2个SSD和2.5机械硬盘拆下来,装到另外一台的主机上用。主板是海尔J3160主板,支持uefi的,但由于我没想重装原来硬盘上的系统(Ubuntu16.04和WIN7双系统,Ubuntu通过burg引导,硬盘分区格式时MBR),所以 我BIOS选成legacy模式,启动时Burg界面没有加载背景图,中文字体也是乱码。后来卸载Burg换成了Grub2也是一样,没背景图,中文字体乱码。可以选择win7或Ubuntu启动进入系统。
后来上网看了下,好多说用ventoy的U盘启动也是存在问题,我也用ventoy的U盘试了下,启动时分辨率很低,但字体不乱吗。好像时说主板的UEFI的快速启动Secure boot要设置下。但一直没成功。BIOS界面跟网络上都不一样!
关于有些主板grub2和burg启动时无法加载图片和字体的问题
- hai1212
- 帖子: 156
- 注册时间: 2009-09-15 10:26
- 系统: Ubuntu、WIN7、XP、WIN8
- 联系:
- hai1212
- 帖子: 156
- 注册时间: 2009-09-15 10:26
- 系统: Ubuntu、WIN7、XP、WIN8
- 联系:
Re: 关于有些主板grub2和burg启动时无法加载图片和字体的问题
ventoy问题解决了,启动时按F11选EFI U盘启动就可以高分辨率了。因为默认的是league模式,所以没选就自动是非EFI启动U盘。
但grub2和burg启动Ubuntu16.04还是没图片且乱码。(如下图)难道真的要转换硬盘分区格式成gpt,然后格式化重装系统?我这win7里面很多软件要重新配置麻烦。所以一直没升级win10!!
但grub2和burg启动Ubuntu16.04还是没图片且乱码。(如下图)难道真的要转换硬盘分区格式成gpt,然后格式化重装系统?我这win7里面很多软件要重新配置麻烦。所以一直没升级win10!!
- astolia
- 论坛版主
- 帖子: 6703
- 注册时间: 2008-09-18 13:11
Re: 关于有些主板grub2和burg启动时无法加载图片和字体的问题
你连一些基础概念都没弄清楚
你不给配置给一堆没用的截图是分析不出来什么原因的。如果在以前的机器上正常,你换机器后又没改过配置没升级过相关软件的话,那大概是没加载对图形模块,适用于旧机器的模块不支持新机器
BIOS界面是各个主板厂自己弄的。各家各型号都可能不同。
你都用legacy模式了,就告别efi模式才有的Secure boot了。另外Secure boot中文按微软的说法是安全启动,而不是快速启动
你的主板支持EFI的CSM兼容模式,即使在EFI模式也可以直接启动传统的MBR硬盘。
要看具体配置文件弄对没有。burg我不清楚,grub2的话必须要有支持中文的字体文件,还要在grub配置里加载字体,加载相关图形模块才行。背景图也是一样要有加载指令和模块。
你不给配置给一堆没用的截图是分析不出来什么原因的。如果在以前的机器上正常,你换机器后又没改过配置没升级过相关软件的话,那大概是没加载对图形模块,适用于旧机器的模块不支持新机器
- hai1212
- 帖子: 156
- 注册时间: 2009-09-15 10:26
- 系统: Ubuntu、WIN7、XP、WIN8
- 联系:
Re: 关于有些主板grub2和burg启动时无法加载图片和字体的问题
代码: 全选
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/burg-mkconfig using templates
# from /etc/burg.d and settings from /etc/default/burg
#
### BEGIN /etc/burg.d/00_header ###
set theme_name=ubuntu
set gfxmode=640x480
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 { -arabic_and_freedom { command="set theme_name=arabic_and_freedom" }}'
load_string '+theme_menu { -black_and_white { command="set theme_name=black_and_white" }}'
load_string '+theme_menu { -burg { command="set theme_name=burg" }}'
load_string '+theme_menu { -chiva { command="set theme_name=chiva" }}'
load_string '+theme_menu { -coffee { command="set theme_name=coffee" }}'
load_string '+theme_menu { -minimum { command="set theme_name=minimum" }}'
load_string '+theme_menu { -proto { command="set theme_name=proto" }}'
load_string '+theme_menu { -radiance { command="set theme_name=radiance" }}'
load_string '+theme_menu { -radiancetext { command="set theme_name=radiancetext" }}'
load_string '+theme_menu { -refit { command="set theme_name=refit" }}'
load_string '+theme_menu { -sora { command="set theme_name=sora" }}'
load_string '+theme_menu { -sora_clean { command="set theme_name=sora_clean" }}'
load_string '+theme_menu { -sora_extended { command="set theme_name=sora_extended" }}'
load_string '+theme_menu { -ubuntu { command="set theme_name=ubuntu" }}'
load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'
load_string '+theme_menu { -winter { command="set theme_name=winter" }}'
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 ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 658fe831-d78f-439c-b734-c1eb6bb24d08
set locale_dir=($root)/boot/burg/locale
set lang=zh
insmod gettext
set timeout=5
### END /etc/burg.d/00_header ###
### BEGIN /etc/burg.d/10_linux ###
menuentry 'Ubuntu(乌班图16.01)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 658fe831-d78f-439c-b734-c1eb6bb24d08
echo 'Loading Linux 4.15.0-72-generic ...'
linux /boot/vmlinuz-4.15.0-72-generic root=UUID=658fe831-d78f-439c-b734-c1eb6bb24d08 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-72-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 4.15.0-72-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 658fe831-d78f-439c-b734-c1eb6bb24d08
echo 'Loading Linux 4.15.0-72-generic ...'
linux /boot/vmlinuz-4.15.0-72-generic root=UUID=658fe831-d78f-439c-b734-c1eb6bb24d08 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-72-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 4.15.0-70-generic' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 658fe831-d78f-439c-b734-c1eb6bb24d08
echo 'Loading Linux 4.15.0-70-generic ...'
linux /boot/vmlinuz-4.15.0-70-generic root=UUID=658fe831-d78f-439c-b734-c1eb6bb24d08 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-70-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 4.15.0-70-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 658fe831-d78f-439c-b734-c1eb6bb24d08
echo 'Loading Linux 4.15.0-70-generic ...'
linux /boot/vmlinuz-4.15.0-70-generic root=UUID=658fe831-d78f-439c-b734-c1eb6bb24d08 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-70-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 4.13.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 658fe831-d78f-439c-b734-c1eb6bb24d08
echo 'Loading Linux 4.13.0-37-generic ...'
linux /boot/vmlinuz-4.13.0-37-generic root=UUID=658fe831-d78f-439c-b734-c1eb6bb24d08 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.13.0-37-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 4.13.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 658fe831-d78f-439c-b734-c1eb6bb24d08
echo 'Loading Linux 4.13.0-37-generic ...'
linux /boot/vmlinuz-4.13.0-37-generic root=UUID=658fe831-d78f-439c-b734-c1eb6bb24d08 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.13.0-37-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 4.4.0-170-generic' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 658fe831-d78f-439c-b734-c1eb6bb24d08
echo 'Loading Linux 4.4.0-170-generic ...'
linux /boot/vmlinuz-4.4.0-170-generic root=UUID=658fe831-d78f-439c-b734-c1eb6bb24d08 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-170-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 4.4.0-170-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 658fe831-d78f-439c-b734-c1eb6bb24d08
echo 'Loading Linux 4.4.0-170-generic ...'
linux /boot/vmlinuz-4.4.0-170-generic root=UUID=658fe831-d78f-439c-b734-c1eb6bb24d08 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-170-generic
}
### END /etc/burg.d/10_linux ###
### BEGIN /etc/burg.d/30_os-prober ###
menuentry "Windows 7" --class windows --class os {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4e68f6a268f6884b
chainloader +1
}
### END /etc/burg.d/30_os-prober ###
### BEGIN /etc/burg.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/burg.d/40_custom ###
- hai1212
- 帖子: 156
- 注册时间: 2009-09-15 10:26
- 系统: Ubuntu、WIN7、XP、WIN8
- 联系:
Re: 关于有些主板grub2和burg启动时无法加载图片和字体的问题
这些图片和字体也都有指向!现在试下安装grub customizer搞下配置看下!!
- hai1212
- 帖子: 156
- 注册时间: 2009-09-15 10:26
- 系统: Ubuntu、WIN7、XP、WIN8
- 联系:
Re: 关于有些主板grub2和burg启动时无法加载图片和字体的问题
恩,概念有点混淆了!看了下!https://zhuanlan.zhihu.com/p/706964964这个内容。
有用到才去学习!一直踌躇于Ubuntu16.04的3D界面!^_^
对了,customizer装完又卸载了。变成grub界面也不加载中文。又重新安装了遍Burg。通过sudo burg-mnu可以看到预览。但重启还是老样子!