• Two instances of 'antergos grub' on bios boot options


    I decided to reinstall Antergos just for the hell of it so I deleted the partitions associated with it, but after reinstalling, I find:

    'antergos grub (P0: Samsu…‘
    and
    ’antergos grub 65vh (P0:…’

    under boot order in the BIOS

    Is there any way to get rid of one? I don’t think it matters which I use to boot from, I tried putting both to the front of the boot list and it runs fine.

  • @slackerbot
    Maybe the following command gives us a clue about what is happening with the files and permissions inside /etc/grub.d directory. This directory host the scripts which grub-mkconfig command reads and generates the final grub.cfg file.

    for i in /etc/grub.d/ ; do stat -c %a,%n $i* ; done
    

    Also the actual content of grub.cfg might help.

    sudo paste /boot/grub/grub.cfg
    

    Keep Your Mind in a Constant State of Openness

  • @NickTh

    [[email protected] ~]$ for i in /etc/grub.d/ ; do stat -c %a,%n $i* ; done
    755,/etc/grub.d/00_header
    755,/etc/grub.d/10_antergos
    644,/etc/grub.d/10_linux
    755,/etc/grub.d/20_linux_xen
    755,/etc/grub.d/30_os-prober
    755,/etc/grub.d/40_custom
    755,/etc/grub.d/41_custom
    644,/etc/grub.d/README
    
    [[email protected] ~]$ sudo paste /boot/grub/grub.cfg
    [sudo] password for fakey: 
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
      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 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,gpt5'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  455be7df-ee4d-403f-a4bd-a948e9823604
    else
      search --no-floppy --fs-uuid --set=root 455be7df-ee4d-403f-a4bd-a948e9823604
    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_input console
    terminal_output gfxterm
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt5'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  455be7df-ee4d-403f-a4bd-a948e9823604
    else
      search --no-floppy --fs-uuid --set=root 455be7df-ee4d-403f-a4bd-a948e9823604
    fi
    insmod gfxmenu
    loadfont ($root)/boot/grub/themes/Antergos-Default/ascii.pf2
    loadfont ($root)/boot/grub/themes/Antergos-Default/rlwy14.pf2
    loadfont ($root)/boot/grub/themes/Antergos-Default/rlwy16.pf2
    insmod png
    set theme=($root)/boot/grub/themes/Antergos-Default/theme.txt
    export theme
    if [ x$feature_timeout_style = xy ] ; then
      set timeout_style=menu
      set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
      set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/10_antergos ###
    menuentry 'Antergos Linux' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-455be7df-ee4d-403f-a4bd-a948e9823604' {
    	load_video
    	set gfxpayload=keep
    	insmod gzio
    	insmod part_gpt
    	insmod ext2
    	set root='hd0,gpt5'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  455be7df-ee4d-403f-a4bd-a948e9823604
    	else
    	  search --no-floppy --fs-uuid --set=root 455be7df-ee4d-403f-a4bd-a948e9823604
    	fi
    	echo	'Loading  linux kernel ...'
    	linux	/boot/vmlinuz-linux root=UUID=455be7df-ee4d-403f-a4bd-a948e9823604 rw  quiet resume=UUID=e7f2c84a-79ba-4c5d-946d-bfc39e70b9a2
    	echo	'Loading initial ramdisk ...'
    	initrd	 /boot/initramfs-linux.img
    }
    submenu 'Advanced options for Antergos Linux' $menuentry_id_option 'gnulinux-advanced-455be7df-ee4d-403f-a4bd-a948e9823604' {
    	menuentry 'Antergos Linux' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-455be7df-ee4d-403f-a4bd-a948e9823604' {
    		load_video
    		set gfxpayload=keep
    		insmod gzio
    		insmod part_gpt
    		insmod ext2
    		set root='hd0,gpt5'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  455be7df-ee4d-403f-a4bd-a948e9823604
    		else
    		  search --no-floppy --fs-uuid --set=root 455be7df-ee4d-403f-a4bd-a948e9823604
    		fi
    		echo	'Loading  linux kernel ...'
    		linux	/boot/vmlinuz-linux root=UUID=455be7df-ee4d-403f-a4bd-a948e9823604 rw  quiet resume=UUID=e7f2c84a-79ba-4c5d-946d-bfc39e70b9a2
    		echo	'Loading initial ramdisk ...'
    		initrd	 /boot/initramfs-linux.img
    	}
    	menuentry 'Antergos Linux - Fallback' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-455be7df-ee4d-403f-a4bd-a948e9823604' {
    		load_video
    		set gfxpayload=keep
    		insmod gzio
    		insmod part_gpt
    		insmod ext2
    		set root='hd0,gpt5'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  455be7df-ee4d-403f-a4bd-a948e9823604
    		else
    		  search --no-floppy --fs-uuid --set=root 455be7df-ee4d-403f-a4bd-a948e9823604
    		fi
    		echo	'Loading  linux kernel ...'
    		linux	/boot/vmlinuz-linux root=UUID=455be7df-ee4d-403f-a4bd-a948e9823604 rw  quiet resume=UUID=e7f2c84a-79ba-4c5d-946d-bfc39e70b9a2
    		echo	'Loading initial ramdisk ...'
    		initrd	 /boot/initramfs-linux-fallback.img
    	}
    }
    
    ### END /etc/grub.d/10_antergos ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-C25E-4970' {
    	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  C25E-4970
    	else
    	  search --no-floppy --fs-uuid --set=root C25E-4970
    	fi
    	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### 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 ###
    
    
  • @slackerbot
    Please put %a,%n like this , do not leave space between them. See the error the space between them produced.

    stat: cannot stat '%n': No such file or directory
    

    Thanks

    Keep Your Mind in a Constant State of Openness

  • @NickTh : Oops, my bad. I updated my earlier post. Thanks

    Edit: So I was looking around and found /boot/efi/EFI

    and I see antergos_grub // antergos_grub_65vh // Boot // Microsoft

    could I just delete the folder?

  • According to boot.cfg file you should have at the grub menu:

    1. Antergos Linux
    2. Advanced options for Antergos linux
    3. Windows Boot Manager

    I cannot see anything weird.

    But, you have UEFI and maybe this produces the extra entry. I’m not a specialist in UEFI. Wait for someone else.

    I would reinstall grub and regenerate the grub.cfg file. Then reboot and check again.

    sudo grub-install --force --recheck /dev/sda 
    sudo grub-mkconfig -o /boot/grub/grub.cfg
    

    Thanks

    Keep Your Mind in a Constant State of Openness

  • @slackerbot said in Two instances of 'antergos grub' on bios boot options:

    @NickTh : Oops, my bad. I updated my earlier post. Thanks

    Edit: So I was looking around and found /boot/efi/EFI

    and I see antergos_grub // antergos_grub_65vh // Boot // Microsoft

    could I just delete the folder?

    I don’t want to mislead or make you do a mistake, but I would :)

    Thanks.

    Keep Your Mind in a Constant State of Openness

  • @NickTh : I tried, but the folder was locked and wouldn’t let me edit/delete it.

  • Figured it out!

    So if anyone wants to get rid of anything from their BIOS boot options: (works only for EFI partition system)

    Step 1: Get efibootmgr from AUR (if you don’t have it installed already)
    Step 2: Open terminal
    Step 3: Run efibootmgr which should show an overview of all of your boot options:

    BootCurrent: 0001
    Timeout: 1 seconds
    BootOrder: 0001,0000,0002,0003
    Boot0000* Windows Boot Manager
    Boot0001* antergos_grub
    Boot0002* Samsung SSD 840 PRO Series
    Boot0003* WDC WD1002FAEX-00Z3A0
    

    Step 4: Locate the option you wanted to get rid of (for this example we’ll say that we’re getting rid of antergos_grub)
    Step 5: Run sudo efibootmgr -b 1 -B where # is the boot ID number (Boot000#)

bios15 grub68 instances1 Posts 9Views 791
Log in to reply