
원치 않는 GRUB 메뉴 항목을 제거하는 방법 내 Ubuntu와 Windows가 제대로 로드되고 있지만 이러한 불필요한 항목은 필요하지 않습니다. 미리 감사드립니다. 제 경우에는 grub.cfg(/boot/grub/grub.cfg)가 다음과 같습니다.
# 시작 /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; 그 다음에 have_grubenv=true로 설정 로드_환경 fi if [ "${next_entry}" ] ; 그 다음에 기본값 설정="${next_entry}" next_entry= 설정 save_env next_entry boot_once=true로 설정 또 다른 기본값을 "5"로 설정 fi if [ x"${feature_menuentry_id}" = xy ]; 그 다음에 menuentry_id_option="--id" 또 다른 menuentry_id_option="" fi menuentry_id_option 내보내기 if [ "${prev_saved_entry}" ]; 그 다음에 save_entry="${prev_saved_entry}" 설정 save_env save_entry prev_saved_entry= 설정 save_env prev_saved_entry boot_once=true로 설정 fi 함수 savedefault { if [ -z "${boot_once}" ]; 그 다음에 save_entry="${선택된}" save_env save_entry fi } 함수 기록 실패 { 기록 실패=1로 설정 if [ -n "${have_grubenv}" ]; 그런 다음 if [ -z "${boot_once}" ]; 그런 다음 save_env 기록 실패; fi; fi } 함수 load_video { if [ x$feature_all_video_module = xy ]; 그 다음에 insmod all_video 또 다른 insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirus fi } if [ x$feature_default_font_path = xy ] ; 그 다음에 글꼴=유니코드 또 다른 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi 글꼴="/usr/share/grub/unicode.pf2" fi 로드폰트 $font 인 경우; 그 다음에 gfxmode=auto로 설정 로드_비디오 insmod gfxterm locale_dir=$prefix/locale 설정 lang=en_US로 설정 insmod gettext fi Terminal_output gfxterm if [ "${recordfail}" = 1 ] ; 그 다음에 시간 초과 설정=-1 또 다른 if [ x$feature_timeout_style = xy ] ; 그 다음에 timeout_style=메뉴 설정 시간 초과 설정 = 30 # timeout_style 기능이 다음과 같은 경우 대체 일반 시간 초과 코드 # 사용할 수 없습니다. 또 다른 시간 초과 설정 = 30 fi fi ### END /etc/grub.d/00_header ### ### 시작 /etc/grub.d/05_debian_theme ### menu_color_normal=흰색/검은색으로 설정 menu_color_highlight=검은색/밝은 회색으로 설정 배경색이 44,0,30,0인 경우; 그 다음에 분명한 fi ### END /etc/grub.d/05_debian_theme ### ### 시작 /etc/grub.d/10_linux ### 함수 gfxmode { gfxpayload="${1}" 설정 if [ "${1}" = "유지" ]; 그 다음에 vt_handoff=vt.handoff=7로 설정 또 다른 vt_handoff= 설정 fi } if [ "${recordfail}" != 1 ]; 그 다음에 if [ -e ${prefix}/gfxblacklist.txt ]; 그 다음에 hwmatch ${prefix}/gfxblacklist.txt 3인 경우; 그 다음에 if [ ${match} = 0 ]; 그 다음에 linux_gfx_mode=keep 설정 또 다른 linux_gfx_mode=text 설정 fi 또 다른 linux_gfx_mode=text 설정 fi 또 다른 linux_gfx_mode=keep 설정 fi 또 다른 linux_gfx_mode=text 설정 fi linux_gfx_mode 내보내기 메뉴 항목 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 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 } 하위 메뉴 '우분투 고급 옵션' $menuentry_id_option 'gnulinux-advanced-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 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-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-49-일반 로드 중...' linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro Quiet Splash $vt_handoff echo '초기 램디스크 로딩 중...' 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' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-49-일반 로드 중...' linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-49-generic } menuentry 'Ubuntu, 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' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi 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 '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-48-generic } menuentry 'Ubuntu, Linux 3.13.0-48-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-48-일반 로드 중...' linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-48-generic } menuentry 'Ubuntu, 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' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi 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 '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-46-generic } menuentry 'Ubuntu, Linux 3.13.0-46-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-46-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-46-일반 로드 중...' linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-46-generic } menuentry 'Ubuntu, 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' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi 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 '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-44-generic } menuentry 'Ubuntu, Linux 3.13.0-44-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-44-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-44-일반 로드 중...' linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-44-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-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-32-일반 로드 중...' linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro Quiet Splash $vt_handoff echo '초기 램디스크 로딩 중...' initrd /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' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-32-일반 로드 중...' linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-32-generic } } ### 끝 /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 인스모드 지방 루트 설정='hd0,gpt2' if [ 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 fi 체인로더 /EFI/Microsoft/Boot/bootmgfw.efi } timeout_style=메뉴 설정 if [ "${timeout}" = 0 ]; 그 다음에 시간 초과 설정 = 10 fi ### 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 ### if [ -s $prefix/grubenv ]; 그 다음에 have_grubenv=true로 설정 로드_환경 fi if [ "${next_entry}" ] ; 그 다음에 기본값 설정="${next_entry}" next_entry= 설정 save_env next_entry boot_once=true로 설정 또 다른 기본값을 "0"으로 설정 fi if [ x"${feature_menuentry_id}" = xy ]; 그 다음에 menuentry_id_option="--id" 또 다른 menuentry_id_option="" fi menuentry_id_option 내보내기 if [ "${prev_saved_entry}" ]; 그 다음에 save_entry="${prev_saved_entry}" 설정 save_env save_entry prev_saved_entry= 설정 save_env prev_saved_entry boot_once=true로 설정 fi 함수 savedefault { if [ -z "${boot_once}" ]; 그 다음에 save_entry="${선택된}" save_env save_entry fi } 함수 기록 실패 { 기록 실패=1로 설정 if [ -n "${have_grubenv}" ]; 그런 다음 if [ -z "${boot_once}" ]; 그런 다음 save_env 기록 실패; fi; fi } 함수 load_video { if [ x$feature_all_video_module = xy ]; 그 다음에 insmod all_video 또 다른 insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirus fi } if [ x$feature_default_font_path = xy ] ; 그 다음에 글꼴=유니코드 또 다른 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi 글꼴="/usr/share/grub/unicode.pf2" fi 로드폰트 $font 인 경우; 그 다음에 gfxmode=auto로 설정 로드_비디오 insmod gfxterm locale_dir=$prefix/locale 설정 lang=en_US로 설정 insmod gettext fi Terminal_output gfxterm if [ "${recordfail}" = 1 ] ; 그 다음에 시간 초과 설정=-1 또 다른 if [ x$feature_timeout_style = xy ] ; 그 다음에 timeout_style=메뉴 설정 시간 초과 설정 = 10 # timeout_style 기능이 다음과 같은 경우 대체 일반 시간 초과 코드 # 사용할 수 없습니다. 또 다른 시간 초과 설정 = 10 fi fi ### END /etc/grub.d/00_header ### ### 시작 /etc/grub.d/05_debian_theme ### menu_color_normal=흰색/검은색으로 설정 menu_color_highlight=검은색/밝은 회색으로 설정 배경색이 44,0,30,0인 경우; 그 다음에 분명한 fi ### END /etc/grub.d/05_debian_theme ### ### 시작 /etc/grub.d/10_linux ### 함수 gfxmode { gfxpayload="${1}" 설정 if [ "${1}" = "유지" ]; 그 다음에 vt_handoff=vt.handoff=7로 설정 또 다른 vt_handoff= 설정 fi } if [ "${recordfail}" != 1 ]; 그 다음에 if [ -e ${prefix}/gfxblacklist.txt ]; 그 다음에 hwmatch ${prefix}/gfxblacklist.txt 3인 경우; 그 다음에 if [ ${match} = 0 ]; 그 다음에 linux_gfx_mode=keep 설정 또 다른 linux_gfx_mode=text 설정 fi 또 다른 linux_gfx_mode=text 설정 fi 또 다른 linux_gfx_mode=keep 설정 fi 또 다른 linux_gfx_mode=text 설정 fi linux_gfx_mode 내보내기 메뉴 항목 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 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 } 하위 메뉴 '우분투 고급 옵션' $menuentry_id_option 'gnulinux-advanced-0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 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-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-49-일반 로드 중...' linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro Quiet Splash $vt_handoff echo '초기 램디스크 로딩 중...' 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' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-49-일반 로드 중...' linux /boot/vmlinuz-3.13.0-49-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-49-generic } menuentry 'Ubuntu, 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' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi 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 '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-48-generic } menuentry 'Ubuntu, Linux 3.13.0-48-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-48-일반 로드 중...' linux /boot/vmlinuz-3.13.0-48-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-48-generic } menuentry 'Ubuntu, 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' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi 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 '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-46-generic } menuentry 'Ubuntu, Linux 3.13.0-46-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-46-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-46-일반 로드 중...' linux /boot/vmlinuz-3.13.0-46-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-46-generic } menuentry 'Ubuntu, 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' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi 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 '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-44-generic } menuentry 'Ubuntu, Linux 3.13.0-44-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-44-generic-recovery -0307c8a7-964b-4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-44-일반 로드 중...' linux /boot/vmlinuz-3.13.0-44-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-44-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-advanced-0307c8a7-964b -4f91-9eb0-31dddf1eee73' { 기록실패 로드_비디오 gfxmode $linux_gfx_mode 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-32-일반 로드 중...' linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro Quiet Splash $vt_handoff echo '초기 램디스크 로딩 중...' initrd /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' { 기록실패 로드_비디오 인스모드 지지오 insmod part_gpt insmod ext2 루트 설정='hd0,gpt7' if [ 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 fi echo 'Linux 3.13.0-32-일반 로드 중...' linux /boot/vmlinuz-3.13.0-32-generic.efi.signed root=UUID=0307c8a7-964b-4f91-9eb0-31dddf1eee73 ro 복구 nomodeset echo '초기 램디스크 로딩 중...' initrd /boot/initrd.img-3.13.0-32-generic } } ### 끝 /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 인스모드 지방 루트 설정='hd0,gpt2' if [ 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 fi 체인로더 /EFI/Microsoft/Boot/bootmgfw.efi } timeout_style=메뉴 설정 if [ "${timeout}" = 0 ]; 그 다음에 시간 초과 설정 = 10 fi ### 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 ### if [ -f ${config_directory}/custom.cfg ]; 그 다음에 소스 ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; 그 다음에 소스 $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### ### END /etc/grub.d/40_custom ### ### 시작 /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; 그 다음에 소스 ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; 그 다음에 소스 $prefix/custom.cfg; fi ### 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 ###
답변1
마침내 이 문제를 해결할 수 있게 되었습니다. /etc/grub.d/ 디렉토리 아래의 모든 파일을 살펴보고 필요하지 않은 항목을 제거한 다음 'sudo update-grub'을 실행했습니다. 나는 25_custom에 들어가서 필요하지 않은 모든 항목을 지웠습니다(모든 불필요한 EFI 항목과 마찬가지로 시작 시 부팅하기 위해).
sudo gedit /etc/grub.d/25_custom
sudo update-grub
편집 중인 파일은 반드시 백업해 두시기 바랍니다. 25_custom으로 시작하는 백업 파일을 저장하지 않는지 확인하세요...25_custom_today'sdate 등으로 저장하면...EFI 부트 로더는 계속해서 해당 항목을 읽습니다....HP를 사용하는 사람들의 경우 노트북 - 이것은 확실히 당신에게 도움이 될 것입니다. 모든 도움에 감사드립니다.
업데이트
Dell XPS 데스크탑에서 이 문제가 다시 발생했습니다. 이번에는 custom_40과 custom_41에 대해 동일한 작업을 수행해야 합니다. /etc/grub.d
귀하의 컴퓨터와 관련된 문제를 알아보려면 아래 내용을 참조하십시오 .
이를 수행하는 또 다른 대안은 다음과 같습니다. grub-customizer 사용 - 그래픽 사용자 인터페이스
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
grub-customizer
이제 항목을 강조 표시하고 제거합니다. 완료되면 변경 사항을 저장합니다.
다음에 재부팅하면 원하지 않는 항목이 사라졌는지 확인할 수 있습니다.
grub-customizer의 좋은 점은 오른쪽에 제거된 항목이 있다는 것입니다. 실수로 항목을 삭제한 경우 일부 또는 전체를 되돌릴 수 있습니다. 또한 잊지 마세요오래된 커널을 제거하십시오디스크 공간도 절약할 수 있습니다.
답변2
UEFI에서 EFI 항목을 제거하려면 efibootmgr이 사용됩니다.
항목을 나열할 수 있습니다.
sudo efibootmgr
그리고 다음을 통해 항목을 제거합니다.
sudo efibootmgr -Bb <entry_number>
답변3
Grub 항목을 정리하려면 제거할 메뉴 항목을 결정해야 합니다. 먼저 /etc/grub.d 디렉토리의 사용자 정의 파일 스크립트를 편집해 grub.cfg
.
gedit /boot/grub/grub.cfg
모든 내용을 복사하고 /etc/grub.d/40_custom 파일로 이동합니다.
sudo gedit /etc/grub.d/40_custom
복사한 내용을 40_custom에 설정된 줄에 추가합니다.
이제 이 사용자 정의 파일에서 Grub 메뉴에 표시하고 싶지 않은 모든 메뉴 항목을 제거하십시오. { }로 묶인 메뉴 항목의 노드를 제거하십시오.
이제 완료되면 40_custom 파일을 저장하고 gedit를 종료합니다.
그런 다음 다음 명령을 실행합니다.
sudo update-grub
이 명령은 /boot/grub/grub.cfg 파일에 우리가 지정한 사용자 정의 메뉴 항목이 포함된 새 부팅 메뉴를 생성합니다.
재부팅하기 전에 gedit /boot/grub/grub.cfg 명령을 사용하여 확인할 수 있습니다. 그러면 파일이 읽기 전용 모드로 열립니다.
파일이 예상한 대로라면 계속해서 재부팅하고 오류가 있는 위치를 확인하세요.