Welcome to the Linux Foundation Forum!

Editing Boot Menu

Everytime I boot Ubuntu, it goes to a menu which has Regular Ubuntu then 2 other lines( Ubuntu kernel 2.6.17-10-generic (recovery mode),Ubuntu, memtest86+). I am wondering how I remove those 2 entries and make it so that the first choice is always selected automatically. Are there any risks, and also, what are those other 2 options for?

Comments

  • roobal
    roobal Posts: 25
    Nukester wrote:
    I am wondering how I remove those 2 entries

    Edit /etc/default/grub file and uncomment the line:
    # GRUB_DISABLE_LINUX_RECOVERY="true"
    

    It should look like this one:
    GRUB_DISABLE_LINUX_RECOVERY="true"
    

    And it removes recovery mode from list. To remove memtest make this command:
    sudo chmod -x /etc/grub.d/20_memtest86+
    
    and make it so that the first choice is always selected automatically.

    Once again in /etc/default/grub file in line:
    GRUB_DEFAULT=0
    

    You define which system from list will boot automatically.

    After that you must update your Grub configuration:
    sudo update-grub
    

    And that's all :)
  • mfillpot
    mfillpot Posts: 2,177
    roobal gave great information.

    The risk associate with your actions would be inaccessibility to the recovery console, which unless you play around a lot with the administrative features it should not impact you.

Categories

Upcoming Training