LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-17-2014, 04:49 AM   #1
seccentral
LQ Newbie
 
Registered: Mar 2011
Distribution: Linux mint
Posts: 26

Rep: Reputation: 0
centos 6 kernel update messes up grub - system unbootable


so here's how a kernel update changed the /etc/grub.conf
Code:
default=0
timeout=5

        title CentOS (2.6.32-431.29.2.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-431.29.2.el6.x86_64 root=/dev/md2  ro crashkernel=auto SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-
8 KEYTABLE=us
        root (hd0,1)
        initrd /boot/initramfs-2.6.32-431.29.2.el6.x86_64.img
        title CentOS (2.6.32-431.23.3.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-431.23.3.el6.x86_64 root=/dev/md2  ro crashkernel=auto SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-
8 KEYTABLE=us
        root (hd0,1)
        initrd /boot/initramfs-2.6.32-431.23.3.el6.x86_64.img
        title linux centos6_64
        kernel /boot/vmlinuz-2.6.32-431.20.3.el6.x86_64 root=/dev/md2  ro
        root (hd0,1)
        initrd /boot/initrd-2.6.32-431.20.3.el6.x86_64.img
now i'm seeing this as i'm about to do a yum update and the system has a 120+ days uptime and the newest kernel isnt even installed: 2.6.32-504.1.3.el6

I'm afraid of doing a yum update. is there any way of -resetting- *safely* the kernel rpm ? i've messed up a box really bad by doing an update from 6.5 to 6.6 and had the old kernels removed prior to updating so i ended up with an unbootable no-failsafe-kernel box.

Last edited by seccentral; 11-17-2014 at 09:18 AM.
 
Old 11-17-2014, 09:10 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,784

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Please edit your post and change the [QUOTE] ... [/QUOTE] tags to [CODE] ... [/CODE] tags so that formatting is preserved. What is it that you feel is wrong with that grub.conf file? It looks quite similar to mine. If you are not currently running the first listed kernel (2.6.32-431.29.2.el6.x86_64), you should reboot and verify that your system still runs properly, as that will be the first fallback kernel after you upgrade.

If you want to keep more of the old kernels available, edit /etc/yum.conf and change "installonly_limit=3" to a larger number.
 
Old 11-17-2014, 09:21 AM   #3
seccentral
LQ Newbie
 
Registered: Mar 2011
Distribution: Linux mint
Posts: 26

Original Poster
Rep: Reputation: 0
thanks for the yum.conf tip. sometimes when updating i get a file not found error or a root not found and thats fortunate when the system is close, if it's remote and i don't have kvm it's a shot in the dark
 
Old 11-17-2014, 01:38 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,784

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
You might also want to edit /etc/sysconfig/kernel and set "UPDATEDEFAULT=no" so that the newly installed kernel will not become the boot default until you've had a chance to see if the installation went OK. You can later edit grub.conf and set "default=0" to make the top stanza (which should be your newly installed kernel) the default.
 
  


Reply

Tags
centos, grub, kernel, update, yum



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unbootable after 3.2.29 to 3.2.45 kernel update JxPond Slackware 6 11-07-2013 03:33 PM
Try custom kernel, now system is unbootable gamewolf Slackware 3 06-26-2011 11:28 PM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 04:41 PM
GRUB messes my part. table up... L-28C Linux - Software 1 12-01-2006 09:15 PM
Unbootable stops with just short grub on screen TheBrick Linux - Newbie 4 03-16-2006 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration