Setting Default GRUB Kernel for Boot

Posted on 2004-11-10
Last Modified: 2013-12-15

I'm running an Intel based Redhat Linux server.

The server is located in a remote data center, so I don't have console access to view the grub options at bootup.

I recently installed the latest Linux kernel, and it appears in the /boot/grub/menu.lst file. HOWEVER - the system is still booting to the old kernel.

Is there a way to CHANGE the default kernel, without actually removing the old kernel/s.

Question by:epaschal
    LVL 38

    Accepted Solution


       Login as root, edit /boot/grub/menu.lst
    default 0       <=== change to 0 if your new kernel show up below as the first title
    timeout 10

    title=Linux 2.6.x-(new)    <==== assume new kernel is the "first title"
    root (hd0,5)
    kernel /boot/vmlinuz root=/dev/hda6

    title=Linux 2.6.original
    root (hd0,5)
    kernel /boot/vmlinuz root=/dev/hda6
    Save and reboot it. Then it should boot up with new kernel.



    Author Comment

    Thanks again Wesly!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now