Results 1 to 5 of 5

Thread: how to change default kernel in grub

  1. #1
    Join Date
    Oct 2007
    Beans
    31

    how to change default kernel in grub

    I hope the following is clear enough, I'm not very technical.

    I have Lucid on my laptop. Unfortunately, with the various 2.6.32 kernels neither hibernate nor suspend work, so I've installed and use the last 2.6.31 kernel that came with Karmic.

    Now, I'd like to set it as default, so that I don't need to actively choose it when I boot. The problem is that I can't find a way to set Grub (version 2.0, or 1.96rc, can't remember) to pick the 2.6.31 kernel and if I try to uninstall the 2.6.32-23 kernel synaptic says that linux-generic and linux-headers will also be uninstalled (not just the parts specific to 2.6.32-23). This doesn't sound like a good idea.

    Any thoughts?

  2. #2
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: how to change default kernel in grub

    to set some specific menu entry as default
    - sudo gedit /etc/default/grub
    - change GRUB_DEFAULT to a number that is the position of your selected entry (counting from 0)
    - sudo update-grub

  3. #3
    Join Date
    Oct 2007
    Beans
    31

    Re: how to change default kernel in grub

    Thanks! Just what I needed.

  4. #4
    Join Date
    Dec 2006
    Beans
    32

    Re: how to change default kernel in grub

    Quote Originally Posted by Vaphell View Post
    to set some specific menu entry as default
    - sudo gedit /etc/default/grub
    - change GRUB_DEFAULT to a number that is the position of your selected entry (counting from 0)
    - sudo update-grub
    btw, how to be sure about the number of entry if the server is remote and no plesk available?

  5. #5
    Join Date
    Nov 2010
    Beans
    14

    Re: how to change default kernel in grub

    Quote Originally Posted by vak View Post
    btw, how to be sure about the number of entry if the server is remote and no plesk available?
    I would not recommend doing it remotely I just tried and now I cant log in. Im pretty much screwed until I get home and press the restart button. I miss counted and started with 1 so its probably in the memory test

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •