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

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

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

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

    And it removes recovery mode from list. To remove memtest make this command:
    1. 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:
    1. GRUB_DEFAULT=0

    You define which system from list will boot automatically.

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

    And that's all :)
  • 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.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training