
我如何摆脱这些不需要的GRUB菜单项。我的Ubuntu和Windows正在正确加载,但是这些不需要的条目我不需要。提前致谢。这就是我的情况下grub.cfg(/boot/grub/grub.cfg)的样子:
#开始/etc/grub.d/00_header ###
如果[-s $ prefix / grubenv];然后
设置have_grubenv = true
load_env
科幻
如果[“ $ {next_entry}”];然后
设置default =“ $ {next_entry}”
设置next_entry =
save_env next_entry
设置boot_once = true
其他
设置default =“ 5”
科幻
如果[x“ $ {feature_menuentry_id}” = xy]; 然后
menuentry_id_option =“-id”
其他
menuentry_id_option =“”
科幻
导出menuentry_id_option
如果[“ $ {prev_saved_entry}”]; 然后
设置save_entry =“ $ {prev_saved_entry}”
save_env saved_entry
设置prev_saved_entry =
save_env prev_saved_entry
设置boot_once = true
科幻
函数savedefault {
如果[-z“ $ {boot_once}”]; 然后
saved_entry =“ $ {选择}”
save_env saved_entry
科幻
}
函数recordfail {
设置recordfail = 1
如果[-n“ $ {have_grubenv}”]; 然后如果[-z“ $ {boot_once}”]; 然后save_env recordfail; fi; 科幻
}
函数load_video {
如果[x $ feature_all_video_module = xy]; 然后
insmod all_video
其他
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
插件
Insmod VGA
insmod video_bochs
insmod video_cirrus
科幻
}
如果[x $ feature_default_font_path = xy]; 然后
font = unicode
其他
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
font =“ / usr / share / grub / unicode.pf2”
科幻
如果loadfont $ font; 然后
设置gfxmode = auto
load_video
insmod gfxterm
设置locale_dir = $ prefix / locale
设置lang = zh_CN
insmod gettext
科幻
terminal_output gfxterm
如果[“ $ {recordfail}” = 1]; 然后
设置超时= -1
其他
如果[x $ feature_timeout_style = xy]; 然后
设置timeout_style =菜单
设置超时= 30
#如果timeout_style功能为
#不可用。
其他
设置超时= 30
科幻
科幻
### END /etc/grub.d/00_header ###
###开始/etc/grub.d/05_debian_theme ###
设置menu_color_normal =白色/黑色
设置menu_color_highlight =黑色/浅灰色
如果background_color 44,0,30,0; 然后
明确
科幻
### END /etc/grub.d/05_debian_theme ###
###开始/etc/grub.d/10_linux ###
函数gfxmode {
设置gfxpayload =“ $ {1}”
如果[“ $ {1}” =“保持”]; 然后
设置vt_handoff = vt.handoff = 7
其他
设置vt_handoff =
科幻
}
如果[“ $ {recordfail}”!= 1]; 然后
如果[-e $ {prefix} /gfxblacklist.txt]; 然后
如果hwmatch $ {prefix} /gfxblacklist.txt 3;然后
如果[$ {match} = 0]; 然后
设置linux_gfx_mode = keep
其他
设置linux_gfx_mode = text
科幻
其他
设置linux_gfx_mode = text
科幻
其他
设置linux_gfx_mode = keep
科幻
其他
设置linux_gfx_mode = text
科幻
导出linux_gfx_mode
menuentry'Ubuntu'--class ubuntu --class gnu-linux --class gnu –class os $ menuentry_id_option'gnulinux-simple-0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro安静的启动$ vt_handoff
initrd /boot/initrd.img-3.13.0-49-generic
}
子菜单'Ubuntu的高级选项'$ menuentry_id_option'gnulinux-advanced-0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
menuentry'Ubuntu,with Linux 3.13.0-49-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-49-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-49-通用...'
linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro安静的启动$ vt_handoff
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-49-generic
}
menuentry'Ubuntu,使用Linux 3.13.0-49-generic(恢复模式)'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-49-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-49-通用...'
linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-49-generic
}
menuentry'Ubuntu,with Linux 3.13.0-48-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-48-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-48-通用...'
linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $ vt_handoff
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-48-generic
}
menuentry'带有Linux 3.13.0-48-generic(恢复模式)的Ubuntu'-class ubuntu -class gnu-linux -class gnu -class os $ menuentry_id_option'gnulinux-3.13.0-48-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-48-通用...'
linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-48-generic
}
menuentry'Ubuntu,with Linux 3.13.0-46-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-46-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-46-通用...'
linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $ vt_handoff
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-46-generic
}
menuentry'带有Linux 3.13.0-46-generic(恢复模式)的Ubuntu'-class ubuntu -class gnu-linux -class gnu -class os $ menuentry_id_option'gnulinux-3.13.0-46-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-46-通用...'
linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-46-generic
}
menuentry'Ubuntu,with Linux 3.13.0-44-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-44-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-44-通用...'
linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $ vt_handoff
echo'正在加载初始ramdisk ...'
初始化/boot/initrd.img-3.13.0-44-generic
}
menuentry'带有Linux 3.13.0-44-generic(恢复模式)的Ubuntu'-class ubuntu -class gnu-linux -class gnu -class os $ menuentry_id_option'gnulinux-3.13.0-44-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-44-通用...'
linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
初始化/boot/initrd.img-3.13.0-44-generic
}
menuentry'Ubuntu,with Linux 3.13.0-32-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-32-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-32-通用...'
linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro安静的启动$ vt_handoff
echo'正在加载初始ramdisk ...'
初始化/boot/initrd.img-3.13.0-32-generic
}
menuentry'Ubuntu,带有Linux 3.13.0-32-generic(恢复模式)'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-32-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-32-通用...'
linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
初始化/boot/initrd.img-3.13.0-32-generic
}
}
### END /etc/grub.d/10_linux ###
###开始/etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
###开始/etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
###开始/etc/grub.d/25_custom ###
菜单项“ Windows UEFI bootmgfw.efi” {
搜索--fs-uuid --no-floppy --set = root E467-1A3B
链加载程序($ {root})/ EFI / Microsoft / Boot / bootmgfw.efi
}
菜单项“ Windows启动UEFI加载程序” {
搜索--fs-uuid --no-floppy --set = root E467-1A3B
链加载程序($ {root})/ EFI / Boot / bkpbootx64.efi
}
菜单项“ EFI / HP / SystemRecovery / bootmgfw.efi” {
搜索--fs-uuid --no-floppy --set = root E467-1A3B
链加载程序($ {root})/ EFI / HP / SystemRecovery / bootmgfw.efi
}
### END /etc/grub.d/25_custom ###
###开始/etc/grub.d/30_os-prober ###
menuentry“ Windows启动管理器(在/ dev / sda2上)” --class windows --class os $ menuentry_id_option'osprober-efi-E467-1A3B'{
insmod part_gpt
低脂脂肪
设置root ='hd0,gpt2'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt2 --hint-efi = hd0,gpt2 --hint-baremetal = ahci0,gpt2 E467-1A3B
其他
搜索--no-floppy --fs-uuid --set = root E467-1A3B
科幻
链加载器/EFI/Microsoft/Boot/bootmgfw.efi
}
设置timeout_style =菜单
如果[“ $ {timeout}” = 0]; 然后
设置超时= 10
科幻
### END /etc/grub.d/30_os-prober ###
###开始/etc/grub.d/30_uefi-firmware ###
menuentry'系统设置'$ menuentry_id_option'uefi-firmware'{
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
###开始/etc/grub.d/40_custom ###
#此文件提供了一种添加自定义菜单项的简便方法。只需键入
您要在此注释后添加的#个菜单项。注意不要改变
#上面的'exec tail'行。
#
#请勿编辑此文件
#
#由grub-mkconfig使用模板自动生成
来自/etc/grub.d的#和来自/ etc / default / grub的设置
#
###开始/etc/grub.d/00_header ###
如果[-s $ prefix / grubenv];然后
设置have_grubenv = true
load_env
科幻
如果[“ $ {next_entry}”];然后
设置default =“ $ {next_entry}”
设置next_entry =
save_env next_entry
设置boot_once = true
其他
设置default =“ 0”
科幻
如果[x“ $ {feature_menuentry_id}” = xy]; 然后
menuentry_id_option =“-id”
其他
menuentry_id_option =“”
科幻
导出menuentry_id_option
如果[“ $ {prev_saved_entry}”]; 然后
设置save_entry =“ $ {prev_saved_entry}”
save_env saved_entry
设置prev_saved_entry =
save_env prev_saved_entry
设置boot_once = true
科幻
函数savedefault {
如果[-z“ $ {boot_once}”]; 然后
saved_entry =“ $ {选择}”
save_env saved_entry
科幻
}
函数recordfail {
设置recordfail = 1
如果[-n“ $ {have_grubenv}”]; 然后如果[-z“ $ {boot_once}”]; 然后save_env recordfail; fi; 科幻
}
函数load_video {
如果[x $ feature_all_video_module = xy]; 然后
insmod all_video
其他
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
插件
Insmod VGA
insmod video_bochs
insmod video_cirrus
科幻
}
如果[x $ feature_default_font_path = xy]; 然后
font = unicode
其他
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
font =“ / usr / share / grub / unicode.pf2”
科幻
如果loadfont $ font; 然后
设置gfxmode = auto
load_video
insmod gfxterm
设置locale_dir = $ prefix / locale
设置lang = zh_CN
insmod gettext
科幻
terminal_output gfxterm
如果[“ $ {recordfail}” = 1]; 然后
设置超时= -1
其他
如果[x $ feature_timeout_style = xy]; 然后
设置timeout_style =菜单
设置超时= 10
#如果timeout_style功能为
#不可用。
其他
设置超时= 10
科幻
科幻
### END /etc/grub.d/00_header ###
###开始/etc/grub.d/05_debian_theme ###
设置menu_color_normal =白色/黑色
设置menu_color_highlight =黑色/浅灰色
如果background_color 44,0,30,0; 然后
明确
科幻
### END /etc/grub.d/05_debian_theme ###
###开始/etc/grub.d/10_linux ###
函数gfxmode {
设置gfxpayload =“ $ {1}”
如果[“ $ {1}” =“保持”]; 然后
设置vt_handoff = vt.handoff = 7
其他
设置vt_handoff =
科幻
}
如果[“ $ {recordfail}”!= 1]; 然后
如果[-e $ {prefix} /gfxblacklist.txt]; 然后
如果hwmatch $ {prefix} /gfxblacklist.txt 3;然后
如果[$ {match} = 0]; 然后
设置linux_gfx_mode = keep
其他
设置linux_gfx_mode = text
科幻
其他
设置linux_gfx_mode = text
科幻
其他
设置linux_gfx_mode = keep
科幻
其他
设置linux_gfx_mode = text
科幻
导出linux_gfx_mode
menuentry'Ubuntu'--class ubuntu --class gnu-linux --class gnu –class os $ menuentry_id_option'gnulinux-simple-0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro安静的启动$ vt_handoff
initrd /boot/initrd.img-3.13.0-49-generic
}
子菜单'Ubuntu的高级选项'$ menuentry_id_option'gnulinux-advanced-0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
menuentry'Ubuntu,with Linux 3.13.0-49-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-49-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-49-通用...'
linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro安静的启动$ vt_handoff
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-49-generic
}
menuentry'Ubuntu,使用Linux 3.13.0-49-generic(恢复模式)'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-49-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-49-通用...'
linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-49-generic
}
menuentry'Ubuntu,with Linux 3.13.0-48-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-48-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-48-通用...'
linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $ vt_handoff
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-48-generic
}
menuentry'带有Linux 3.13.0-48-generic(恢复模式)的Ubuntu'-class ubuntu -class gnu-linux -class gnu -class os $ menuentry_id_option'gnulinux-3.13.0-48-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-48-通用...'
linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-48-generic
}
menuentry'Ubuntu,with Linux 3.13.0-46-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-46-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-46-通用...'
linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $ vt_handoff
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-46-generic
}
menuentry'带有Linux 3.13.0-46-generic(恢复模式)的Ubuntu'-class ubuntu -class gnu-linux -class gnu -class os $ menuentry_id_option'gnulinux-3.13.0-46-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-46-通用...'
linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
initrd /boot/initrd.img-3.13.0-46-generic
}
menuentry'Ubuntu,with Linux 3.13.0-44-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-44-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-44-通用...'
linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $ vt_handoff
echo'正在加载初始ramdisk ...'
初始化/boot/initrd.img-3.13.0-44-generic
}
menuentry'带有Linux 3.13.0-44-generic(恢复模式)的Ubuntu'-class ubuntu -class gnu-linux -class gnu -class os $ menuentry_id_option'gnulinux-3.13.0-44-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-44-通用...'
linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
初始化/boot/initrd.img-3.13.0-44-generic
}
menuentry'Ubuntu,with Linux 3.13.0-32-generic'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-32-generic-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73'{
记录失败
load_video
gfxmode $ linux_gfx_mode
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-32-通用...'
linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro安静的启动$ vt_handoff
echo'正在加载初始ramdisk ...'
初始化/boot/initrd.img-3.13.0-32-generic
}
menuentry'Ubuntu,带有Linux 3.13.0-32-generic(恢复模式)'--class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option'gnulinux-3.13.0-32-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73'{
记录失败
load_video
印斯莫·吉齐奥
insmod part_gpt
insmod ext2
设置root ='hd0,gpt7'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt7 --hint-efi = hd0,gpt7 --hint-baremetal = ahci0,gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73
其他
搜索--no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73
科幻
echo'正在加载Linux 3.13.0-32-通用...'
linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset
echo'正在加载初始ramdisk ...'
初始化/boot/initrd.img-3.13.0-32-generic
}
}
### END /etc/grub.d/10_linux ###
###开始/etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
###开始/etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
###开始/etc/grub.d/25_custom ###
菜单项“ Windows UEFI bootmgfw.efi” {
搜索--fs-uuid --no-floppy --set = root E467-1A3B
链加载程序($ {root})/ EFI / Microsoft / Boot / bootmgfw.efi
}
菜单项“ Windows启动UEFI加载程序” {
搜索--fs-uuid --no-floppy --set = root E467-1A3B
链加载程序($ {root})/ EFI / Boot / bkpbootx64.efi
}
### END /etc/grub.d/25_custom ###
###开始/etc/grub.d/30_os-prober ###
menuentry“ Windows启动管理器(在/ dev / sda2上)” --class windows --class os $ menuentry_id_option'osprober-efi-E467-1A3B'{
insmod part_gpt
低脂脂肪
设置root ='hd0,gpt2'
如果[x $ feature_platform_search_hint = xy]; 然后
搜索--no-floppy --fs-uuid --set = root --hint-bios = hd0,gpt2 --hint-efi = hd0,gpt2 --hint-baremetal = ahci0,gpt2 E467-1A3B
其他
搜索--no-floppy --fs-uuid --set = root E467-1A3B
科幻
链加载器/EFI/Microsoft/Boot/bootmgfw.efi
}
设置timeout_style =菜单
如果[“ $ {timeout}” = 0]; 然后
设置超时= 10
科幻
### END /etc/grub.d/30_os-prober ###
###开始/etc/grub.d/30_uefi-firmware ###
menuentry'系统设置'$ menuentry_id_option'uefi-firmware'{
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
###开始/etc/grub.d/40_custom ###
#此文件提供了一种添加自定义菜单项的简便方法。只需键入
您要在此注释后添加的#个菜单项。注意不要改变
#上面的'exec tail'行。
### END /etc/grub.d/40_custom ###
###开始/etc/grub.d/41_custom ###
如果[-f $ {config_directory} /custom.cfg]; 然后
源$ {config_directory} /custom.cfg
elif [-z“ $ {config_directory}” -a -f $ prefix / custom.cfg]; 然后
来源$ prefix / custom.cfg;
科幻
### END /etc/grub.d/41_custom ###
### END /etc/grub.d/40_custom ###
###开始/etc/grub.d/41_custom ###
如果[-f $ {config_directory} /custom.cfg]; 然后
源$ {config_directory} /custom.cfg
elif [-z“ $ {config_directory}” -a -f $ prefix / custom.cfg]; 然后
来源$ prefix / custom.cfg;
科幻
### END /etc/grub.d/41_custom ###
###开始/etc/grub.d/backup25_custom ###
菜单项“ Windows UEFI bootmgfw.efi” {
搜索--fs-uuid --no-floppy --set = root E467-1A3B
链加载程序($ {root})/ EFI / Microsoft / Boot / bootmgfw.efi
}
### END /etc/grub.d/backup25_custom ###
ctrl + G或直接在文本字段上方的编辑器中选择“ img”选项。这样一来,图片便与帖子相关。