• Grub2


    When i start up the pc i have this in my Grub2 menu:
    Arch Linux pkg-linux kernel
    Arch Linux pkg-linux kernel (fallback initramfs)
    Arch Linux

    I always start up with Arch Linux. Somebody can help me with this:

    1. Can i delete the other 2 from menu?
    2. With which one he started up automatic?

    Thanks

  • When i start up the pc i have this in my Grub2 menu:
    Arch Linux pkg-linux kernel
    Arch Linux pkg-linux kernel (fallback initramfs)
    Arch Linux

    I always start up with Arch Linux. Somebody can help me with this:

    1. Can i delete the other 2 from menu?
    2. With which one he started up automatic?

    Thanks

  • Have you installed a different kernel? If you do nothing it will start the first kernel on the list.

    i’m not sure how to do this…you can seach your local packages installed and search linux and scroll down and see what linux packages you have installed

    pacman -Qs linux
    

    or you can just simply list whats in your /boot assuming thats the directory you installed bootloader in.

    ls /boot
    

    at least to see the kernels installed. the other way you will find exact package name but will have to skim through the output.

    gmail: [email protected]
    irc: [email protected]

  • This is what i get:

    grub initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux  
    
    

    So thats too much i think.
    What can i do?

  • Although GRUB loader sometimes is a bit annoying, boring, … but it is one of the ways how to easy boot in fallback mode and fix some possible errors in your main system. I think it’s very important if you are using rolling-release distribution like Antergos.

    I am not expert but one solution (if you don’t want make mess with Linux kernels and all configurations) could be simple - set GRUB loading timeout to 0 or 1 second. To do that you simple need to change this line in [b:mfmy10x8]/etc/default/grub[/b:mfmy10x8] file:

    \# /etc/default/grub  
    GRUB\_TIMEOUT=5
    

    And then in your terminal run command:

    [code:mfmy10x8]update-grub[/code:mfmy10x8]

    To check if everything worked file just restart your system.

    Arvis Lācis (@arvislacis)

  • Ok, looks like you just have the default kernel. Archlinux just looks like a duplicate entry, it should be safe to delete, i would keep fallback just incase i guess, thats the purpose of it.

    gmail: [email protected]
    irc: [email protected]

  • Hi,

    If you run grub-mkconfig it should remove the duplicate entry automatically.

    sudo grub-mkconfig -o /boot/grub/grub.cfg
    

    Cheers!

  • I did the run grub-mconfig but that didn’t work to remove it.
    I think because its not duplicate. This is what i have in boot:
    Is vmlinuz-linux not necessary?

  • @“MichaelTiebesl”:o3uhocz4 said:

    I did the run grub-mconfig but that didn’t work to remove it.
    I think because its not duplicate. This is what i have in boot:
    Is vmlinuz-linux not necessary?[/quote:o3uhocz4]

    Yes, it is necessary. you can skim through your grub.cfg file and manually remove it, but i don’t understand why it is there.
    in bios systems it should be at /boot/grub/grub.cfg

    gmail: [email protected]
    irc: [email protected]

  • Wait its getting complicated now for me.
    I thought you not can edit the grub.cfg file?
    This is in my grub.cfg 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\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    else  
    search --no-floppy --fs-uuid --set=root eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    fi  
    font="/usr/share/grub/unicode.pf2"  
    fi  
      
    if loadfont $font ; then  
    set gfxmode=1024x768  
    load\_video  
    insmod gfxterm  
    set locale\_dir=$prefix/locale  
    set lang=nl\_NL  
    insmod gettext  
    fi  
    terminal\_input console  
    terminal\_output gfxterm  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    else  
    search --no-floppy --fs-uuid --set=root eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    fi  
    insmod gfxmenu  
    loadfont ($root)/boot/grub/themes/Antergos-Bluez/DejaVu-Mono-12.pf2  
    loadfont ($root)/boot/grub/themes/Antergos-Bluez/Roboto-Regular-12.pf2  
    loadfont ($root)/boot/grub/themes/Antergos-Bluez/Roboto-Regular-13.pf2  
    loadfont ($root)/boot/grub/themes/Antergos-Bluez/Roboto-Regular-14.pf2  
    insmod png  
    set theme=($root)/boot/grub/themes/Antergos-Bluez/theme.txt  
    export theme  
    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  
    \#\#\# END /etc/grub.d/00\_header \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/10\_archlinux \#\#\#  
      
    menuentry "Arch Linux pkg-linux kernel" --class arch-linux --class arch --class gnu-linux --class gnu --class os {  
    if [ x$feature\_all\_video\_module = xy ]; then  
    insmod all\_video  
    fi  
    set gfxpayload=keep  
    insmod ext2  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    else  
    search --no-floppy --fs-uuid --set=root eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    fi  
    echo 'Loading Arch Linux pkg-linux kernel ...'  
    linux /boot/vmlinuz-linux root=UUID=eb5b4da9-90ea-476c-905a-89e0ddb9efd7 rw   
    echo 'Loading Arch Linux pkg-linux kernel initramfs ...'  
    initrd /boot/initramfs-linux.img  
    }  
      
      
    menuentry "Arch Linux pkg-linux kernel (fallback initramfs)" --class arch-linux --class arch --class gnu-linux --class gnu --class os {  
    if [ x$feature\_all\_video\_module = xy ]; then  
    insmod all\_video  
    fi  
    set gfxpayload=keep  
    insmod ext2  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    else  
    search --no-floppy --fs-uuid --set=root eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    fi  
    echo 'Loading Arch Linux pkg-linux kernel ...'  
    linux /boot/vmlinuz-linux root=UUID=eb5b4da9-90ea-476c-905a-89e0ddb9efd7 rw   
    echo 'Loading Arch Linux pkg-linux kernel fallback initramfs ...'  
    initrd /boot/initramfs-linux-fallback.img  
    }  
      
    \#\#\# END /etc/grub.d/10\_archlinux \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/10\_linux \#\#\#  
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry\_id\_option 'gnulinux-simple-eb5b4da9-90ea-476c-905a-89e0ddb9efd7' {  
    load\_video  
    set gfxpayload=keep  
    insmod gzio  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    else  
    search --no-floppy --fs-uuid --set=root eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    fi  
    echo 'Laden van Linux linux...'  
    linux /boot/vmlinuz-linux root=UUID=eb5b4da9-90ea-476c-905a-89e0ddb9efd7 rw   
    echo 'Laden van initiële RAM-schijf...'  
    initrd /boot/initramfs-linux.img  
    }  
    submenu 'Geavanceerde opties voor Arch Linux' $menuentry\_id\_option 'gnulinux-advanced-eb5b4da9-90ea-476c-905a-89e0ddb9efd7' {  
    menuentry 'Arch Linux, met Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry\_id\_option 'gnulinux-linux-advanced-eb5b4da9-90ea-476c-905a-89e0ddb9efd7' {  
    load\_video  
    set gfxpayload=keep  
    insmod gzio  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    else  
    search --no-floppy --fs-uuid --set=root eb5b4da9-90ea-476c-905a-89e0ddb9efd7  
    fi  
    echo 'Laden van Linux linux...'  
    linux /boot/vmlinuz-linux root=UUID=eb5b4da9-90ea-476c-905a-89e0ddb9efd7 rw   
    echo 'Laden van initiële RAM-schijf...'  
    initrd /boot/initramfs-linux.img  
    }  
    }  
      
    \#\#\# END /etc/grub.d/10\_linux \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/20\_linux\_xen \#\#\#  
    \#\#\# END /etc/grub.d/20\_linux\_xen \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/30\_os-prober \#\#\#  
    \#\#\# 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 \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/60\_memtest86+ \#\#\#  
    \#\#\# END /etc/grub.d/60\_memtest86+ \#\#\#
    
  • ok, did some googling, i guess its an upstream bug:

    [https://bugs.archlinux.org/task/38455][0]">[https://bugs.archlinux.org/task/38455][1]
    “To stop 10_linux from creating entries, just `chmod -x /etc/grub.d/10_linux` will do.”

    [https://bugs.archlinux.org/task/38222][0]">[https://bugs.archlinux.org/task/38222][2]

    but before you do that does the ‘Arch Linux pkg-linux kernel’ entry work? if so go ahead, or you can wait for upsteam fix.
    i would try to reproduce this but i’m currently using gummiboot.

    [0]: <a href=
    [1]: https://bugs.archlinux.org/task/38455
    [2]: https://bugs.archlinux.org/task/38222

    gmail: [email protected]
    irc: [email protected]

  • What version of grub are you using? There was an update released yesterday that contained a fix for this bug. If you are running the latest then I would just wait for it to be fixed. It won’t be long as the Arch and upstream Grub developers are all aware of it.

    Cheers!

  • Then i will wait so long.
    Thanks for the great help everybody so far…

  • You’re welcome!

  • Got the same thing, on my machine both entries work just fine. I will wait for Arch fix also, thanks Antergos guys for interest and support for users

  • Just an update, we got tired of waiting on upstream to fix this and created our own fix. It is included in the current dev version of cnchi. You can apply it to an existing system by following the instructions in my comment here: [https://github.com/Antergos/Cnchi/issues/81#issuecomment-38251144][0]">[https://github.com/Antergos/Cnchi/issue][1] … t-38251144

    Cheers!

    [0]: <a href=
    [1]: https://github.com/Antergos/Cnchi/issue

Posts 16Views 3178
Log in to reply