CloudLinux - How to update kernel or boot a previous one. GRUB
Our Products

logo

Used by more than 4,000 hosting customers and partners, and powering over 20 million websites, CloudLinux products deliver stability and profitability for your Linux servers.

Easy to Get Started

Before you buy any of our products, you can try them free for 30 days.
They are very easy to install, and you can start using them within minutes.

 

Click here for pricing information and to buy. Please email sales if you have any questions.

 

Imunify360

 

For Your Linux VPS, Dedicated, and Shared Servers

 
The GNU Grand Unified Boot Loader(GRUB) is a program which enables the user to select which installed operating system or kernel to load at system boot time. It also allows the user to pass arguments to the kernel. The GRUB configuration file (located in /boot/grub/grub.conf) is used to create a list of operating systems to boot in GRUB's menu interface.

After successful kernel update a new section to grub.conf is added and all arguments are copied from current one, also default boot kernel is switched to newly installed so it will be used for next boot. In most cases to update kernel you have to issue two commands:

yum update kernel
reboot


Let examine truncated grub.conf:

default=0

title CloudLinux Server (-2.6.32-458.6.2.lve1.2.27.el6.x86_64)
     root (hd0,0)
     kernel /vmlinuz-2.6.32-458.6.2.lve1.2.27.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root
     initrd /initramfs-2.6.32-458.6.2.lve1.2.27.el6.x86_64.img

title CloudLinux Server (2.6.32-379.22.1.lve1.2.17.1.el6.x86_64)
root (hd0,0)
     kernel /vmlinuz-2.6.32-379.22.1.lve1.2.17.1.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root 
     initrd /initramfs-2.6.32-379.22.1.lve1.2.17.1.el6.x86_64.img



The OS/kernel selector is placed at the top of the file, followed by stanzas for each operating kernel or operating system listed in the menu. With default=0 the system will boot first kernel 2.6.32-458.6.2 . Changing default value you actually do select a kernel to boot next time, if default will be switched to 1 then 2.6.32-379.22 will boot next time around.

EU e-Privacy Directive

This website uses cookies to ensure you get the best experience using our website and services. If you prefer we don’t use cookies, please disable them in your browser.

You have declined cookies. This decision can be reversed.

You have allowed cookies to be placed on your computer. This decision can be reversed.