![]() I guess when that menu with the last 10+ kernels showed up during boot, we may not have paid much attention to the little numbers at the end. To figure out which version is working for us, we can use the uname command. Here’s what worked for me on CentOS 6: What Kernel are we using Thankfully there are ways to either fix the latest version, remove it, and even exclude a particular version from future updates. I can boot into the previous one just fine, but of course if I forget to make a choice on startup, the server doesn’t start up. If the older kernel has been removed, you will need to install it before you can boot into it.I’ve had a power cut recently, which seems to have corrupted the latest Kernel I have installed on my CentOS 6 server. It’s important to note that these steps assume that the older kernel is still present in the /boot directory and has not been removed. For example, if you want to boot into kernel version 3.10.0-957.12.2.el7.x86_64, set GRUB_DEFAULT to 3.10.0-957.12.2.el7.x86_64.Ĩ- Save the grub configuration file and exit the text editor.ĩ- Run the command sudo grub2-mkconfig -o /boot/grub2/grub.cfg to regenerate the grub configuration file with the new default kernel.ġ0- Reboot your system and it should now boot into the older kernel by default. 2- Once you have booted into the newer kernel, open a terminal and run the command uname -r to check the current kernel version.ģ- Run the command ls /boot to list the available kernels in the /boot directory.Ĥ- Look for the kernel version that you want to boot into by default and make a note of it.ĥ- Edit the grub configuration file by running the command sudo vi /etc/default/grub.Ħ- In the grub configuration file, look for the line that starts with GRUB_DEFAULT=.ħ- Change the value of GRUB_DEFAULT to the kernel version that you want to boot into by default.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |