Cómo puedo deshacerme de estas entradas de menú GRUB no deseadas. Mi Ubuntu y Windows se están cargando correctamente, pero estas entradas innecesarias no las necesito. Gracias por adelantado. Así es como se ve el grub.cfg (/boot/grub/grub.cfg) en mi caso:
# BEGIN /etc/grub.d/00_header ### si [-s $ prefijo / grubenv]; luego establecer have_grubenv = verdadero load_env fi if ["$ {next_entry}"]; luego set default = "$ {next_entry}" establecer next_entry = save_env next_entry establecer boot_once = true más set default = "5" fi if [x "$ {feature_menuentry_id}" = xy]; luego menuentry_id_option = "- id" más menuentry_id_option = "" fi export menuentry_id_option if ["$ {prev_saved_entry}"]; luego set saved_entry = "$ {prev_saved_entry}" save_env saved_entry establecer prev_saved_entry = save_env prev_saved_entry establecer boot_once = true fi función savedefault { si [-z "$ {boot_once}"]; luego saved_entry = "$ {elegido}" save_env saved_entry fi } función recordfail { establecer recordfail = 1 si [-n "$ {have_grubenv}"]; entonces si [-z "$ {boot_once}"]; entonces save_env recordfail; fi; fi } función load_video { if [x $ feature_all_video_module = xy]; luego insmod all_video más insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } if [x $ feature_default_font_path = xy]; luego font = unicode más insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi font = "/ usr / share / grub / unicode.pf2" fi if loadfont $ font; luego establecer gfxmode = auto carga_video insmod gfxterm set locale_dir = $ prefix / locale establecer lang = en_US insmod gettext fi terminal_output gfxterm si ["$ {recordfail}" = 1]; luego establecer tiempo de espera = -1 más if [x $ feature_timeout_style = xy]; luego establecer timeout_style = menu establecer tiempo de espera = 30 # Código de tiempo de espera normal de reserva en caso de que la función timeout_style sea # no disponible más establecer tiempo de espera = 30 fi fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal = blanco / negro set menu_color_highlight = negro / gris claro if background_color 44,0,30,0; luego claro fi ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### función gfxmode { set gfxpayload = "$ {1}" if ["$ {1}" = "mantener"]; luego establecer vt_handoff = vt.handoff = 7 más establecer vt_handoff = fi } if ["$ {recordfail}"! = 1]; luego if [-e $ {prefijo} /gfxblacklist.txt]; luego if hwmatch $ {prefijo} /gfxblacklist.txt 3; luego si [$ {partido} = 0]; luego establecer linux_gfx_mode = mantener más establecer linux_gfx_mode = texto fi más establecer linux_gfx_mode = texto fi más establecer linux_gfx_mode = mantener fi más establecer linux_gfx_mode = texto fi exportar linux_gfx_mode menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option 'gnulinux-simple-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { recordfail carga_video gfxmode $ linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro splash tranquilo $ vt_handoff initrd /boot/initrd.img-3.13.0-49-generic } submenú 'Opciones avanzadas para Ubuntu' $ menuentry_id_option 'gnulinux-advanced-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { menuentry 'Ubuntu, con 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 '{ recordfail carga_video gfxmode $ linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-49-generic ...' linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro splash tranquilo $ vt_handoff echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-49-generic } menuentry 'Ubuntu, con Linux 3.13.0-49-generic (modo de recuperación)' --class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option 'gnulinux-3.13.0-49-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73 '{ recordfail carga_video insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-49-generic ...' linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-49-generic } menuentry 'Ubuntu, con 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 '{ recordfail carga_video gfxmode $ linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-48-generic ...' linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro splash tranquilo $ vt_handoff echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-48-generic } menuentry 'Ubuntu, con Linux 3.13.0-48-generic (modo de recuperación)' --class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option 'gnulinux-3.13.0-48-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73 '{ recordfail carga_video insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-48-generic ...' linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-48-generic } menuentry 'Ubuntu, con 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 '{ recordfail carga_video gfxmode $ linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-46-generic ...' linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro splash tranquilo $ vt_handoff echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-46-generic } menuentry 'Ubuntu, con Linux 3.13.0-46-generic (modo de recuperación)' --class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option 'gnulinux-3.13.0-46-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73 '{ recordfail carga_video insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-46-generic ...' linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-46-generic } menuentry 'Ubuntu, con 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 '{ recordfail carga_video gfxmode $ linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-44-generic ...' linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro splash tranquilo $ vt_handoff echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-44-generic } menuentry 'Ubuntu, con Linux 3.13.0-44-generic (modo de recuperación)' --class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option 'gnulinux-3.13.0-44-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73 '{ recordfail carga_video insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-44-generic ...' linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-44-generic } menuentry 'Ubuntu, con 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 '{ recordfail carga_video gfxmode $ linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-32-generic ...' linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro splash tranquilo $ vt_handoff echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-32-generic } menuentry 'Ubuntu, con Linux 3.13.0-32-generic (modo de recuperación)' --class ubuntu --class gnu-linux --class gnu --class os $ menuentry_id_option 'gnulinux-3.13.0-32-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73 '{ recordfail carga_video insmod gzio insmod part_gpt insmod ext2 establecer root = 'hd0, gpt7' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt7 --hint-efi = hd0, gpt7 --hint-baremetal = ahci0, gpt7 0307c8a7-964b-4f91-9eb0 -31dddf1eee73 más búsqueda --no-floppy --fs-uuid --set = root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Cargando Linux 3.13.0-32-generic ...' linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root = UUID = 0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Cargando ramdisk inicial ...' initrd /boot/initrd.img-3.13.0-32-generic } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_memtest86+ ### ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/25_custom ### menuentry "Windows UEFI bootmgfw.efi" { buscar --fs-uuid --no-floppy --set = root E467-1A3B cargador de cadena ($ {root}) / EFI / Microsoft / Boot / bootmgfw.efi } menuentry "cargador de arranque UEFI de Windows" { buscar --fs-uuid --no-floppy --set = root E467-1A3B cargador de cadena ($ {root}) / EFI / Boot / bkpbootx64.efi } menuentry "EFI / HP / SystemRecovery / bootmgfw.efi" { buscar --fs-uuid --no-floppy --set = root E467-1A3B cargador de cadena ($ {root}) / EFI / HP / SystemRecovery / bootmgfw.efi } ### END /etc/grub.d/25_custom ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'Windows Boot Manager (on / dev / sda2)' --class windows --class os $ menuentry_id_option 'osprober-efi-E467-1A3B' { insmod part_gpt grasa insmod establecer root = 'hd0, gpt2' if [x $ feature_platform_search_hint = xy]; luego búsqueda --no-floppy --fs-uuid --set = root --hint-bios = hd0, gpt2 --hint-efi = hd0, gpt2 --hint-baremetal = ahci0, gpt2 E467-1A3B más búsqueda --no-floppy --fs-uuid --set = root E467-1A3B fi cargador de cadena /EFI/Microsoft/Boot/bootmgfw.efi } establecer timeout_style = menu if ["$ {timeout}" = 0]; luego establecer tiempo de espera = 10 fi ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### menuentry 'Configuración del sistema' $ menuentry_id_option 'uefi-firmware' { fwsetup } ### END /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.d/40_custom ### # Este archivo proporciona una manera fácil de agregar entradas de menú personalizadas. Simplemente escriba el # entradas de menú que desea agregar después de este comentario. Ten cuidado de no cambiar # la línea de 'cola ejecutiva' arriba. # # # NO EDITAR ESTE ARCHIVO # # # Es generado automáticamente por grub-mkconfig usando plantillas # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="0" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option 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 recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } if [ x$feature_default_font_path = xy ] ; then font=unicode else insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi font="/usr/share/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=en_US insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ] ; then set timeout=-1 else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=10 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=10 fi fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/light-gray if background_color 44,0,30,0; then clear fi ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### function gfxmode { set gfxpayload="${1}" if [ "${1}" = "keep" ]; then set vt_handoff=vt.handoff=7 else set vt_handoff= fi } if [ "${recordfail}" != 1 ]; then if [ -e ${prefix}/gfxblacklist.txt ]; then if hwmatch ${prefix}/gfxblacklist.txt 3; then if [ ${match} = 0 ]; then set linux_gfx_mode=keep else set linux_gfx_mode=text fi else set linux_gfx_mode=text fi else set linux_gfx_mode=keep fi else set linux_gfx_mode=text fi export linux_gfx_mode menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $vt_handoff initrd /boot/initrd.img-3.13.0-49-generic } submenu 'Advanced options for 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' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-49-generic ...' linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $vt_handoff echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.13.0-49-generic } menuentry 'Ubuntu, with Linux 3.13.0-49-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-49-generic-recovery-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { recordfail load_video insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-49-generic ...' linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Loading initial 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' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-48-generic ...' linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $vt_handoff echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.13.0-48-generic } menuentry 'Ubuntu, with Linux 3.13.0-48-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-recovery-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { recordfail load_video insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-48-generic ...' linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Loading initial 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' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-46-generic ...' linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $vt_handoff echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.13.0-46-generic } menuentry 'Ubuntu, with Linux 3.13.0-46-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-46-generic-recovery-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { recordfail load_video insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-46-generic ...' linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Loading initial 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' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-44-generic ...' linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $vt_handoff echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.13.0-44-generic } menuentry 'Ubuntu, with Linux 3.13.0-44-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-44-generic-recovery-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { recordfail load_video insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-44-generic ...' linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /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' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-32-generic ...' linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro quiet splash $vt_handoff echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.13.0-32-generic } menuentry 'Ubuntu, with Linux 3.13.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-recovery-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { recordfail load_video insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 0307c8a7-964b-4f91-9eb0-31dddf1eee73 else search --no-floppy --fs-uuid --set=root 0307c8a7-964b-4f91-9eb0-31dddf1eee73 fi echo 'Loading Linux 3.13.0-32-generic ...' linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.13.0-32-generic } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_memtest86+ ### ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/25_custom ### menuentry "Windows UEFI bootmgfw.efi" { search --fs-uuid --no-floppy --set=root E467-1A3B chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi } menuentry "Windows Boot UEFI loader" { search --fs-uuid --no-floppy --set=root E467-1A3B chainloader (${root})/EFI/Boot/bkpbootx64.efi } ### END /etc/grub.d/25_custom ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-E467-1A3B' { insmod part_gpt insmod fat set root='hd0,gpt2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 E467-1A3B else search --no-floppy --fs-uuid --set=root E467-1A3B fi chainloader /EFI/Microsoft/Boot/bootmgfw.efi } set timeout_style=menu if [ "${timeout}" = 0 ]; then set timeout=10 fi ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### menuentry 'System setup' $menuentry_id_option 'uefi-firmware' { fwsetup } ### END /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.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/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### ### BEGIN /etc/grub.d/backup25_custom ### menuentry "Windows UEFI bootmgfw.efi" { search --fs-uuid --no-floppy --set=root E467-1A3B chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi } ### END /etc/grub.d/backup25_custom ###
ctrl + G
or select the 'img' option in the editor directly above the text field. That way, the image is tied to the post.Respuestas:
finally i am able to resolve this issue...went thru each and every file under /etc/grub.d/ directory and got rid of the entries not needed and then ran 'sudo update-grub'. I went into 25_custom and wiped all the entries into which were not needed(to boot into at the time of startup - like all the unnecessary EFI entries).
Please make sure to make a backup of the files you are editing. Make sure that you are not storing any of the backup files starting with 25_custom...if you store it with 25_custom_today'sdate etc....EFI boot loader will still read the entries from that....For folks who have HP Laptop - this will definitely work for you.Thanks for all your help.
fuente
Para limpiar su entrada de Grub, debe decidir qué menú eliminar, primero editemos el script del archivo personalizado en el directorio /etc/grub.d que contiene el mismo contenido que el suyo
grub.cfg
.Copie todo el contenido y vaya al archivo /etc/grub.d/40_custom
Agregue el contenido copiado a las líneas fundadas en 40_custom.
Ahora, en este archivo personalizado, simplemente elimine todos los menús que no desee que aparezcan en su menú Grub. Asegúrese de eliminar el nodo del menuentry que está encerrado por {}
Ahora, cuando termine, guarde el archivo 40_custom y salga de gedit
Luego ejecuta el comando:
Este comando creará un nuevo menú de arranque en el archivo /boot/grub/grub.cfg que contiene los elementos de menú personalizados que hemos especificado.
Puede verificar, antes de reiniciar, solo para estar seguro, utilizando el comando: gedit /boot/grub/grub.cfg. Esto abrirá el archivo en modo de solo lectura.
Si el archivo es como esperaba, continúe y reinicie; de lo contrario, compruebe dónde tiene un error.
Puede leer algunos artículos para obtener más información como esto y esto .
fuente
sudo update-grub
Para eliminar entradas EFI de UEFI se utiliza efibootmgr.
Puede enumerar entradas por
Y eliminar entradas por
Efibootmgr manual
fuente