LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2007, 09:19 PM   #1
MyHeartPumpsFreon
Member
 
Registered: Oct 2007
Location: The States, Florida
Distribution: Lonely Werewolf
Posts: 251

Rep: Reputation: 30
Grub not updating kernel version


Hey,

I have a bit of an odd problem. I've been using Fedora 8 for a little while and today I decided to install Debian Etch. I decided to overwrite the current grub with the one from Debian. It recognized all other OS's. Grub was fine to this point.

Just a little bit ago, I decided I didn't want Debian anymore (One reason being my video card not working and X not being able to start), I haven't done anything in regards to deleting Debian... yet. I updated my Fedora install, including the kernel, but Grub didn't get updated with the new kernel version.

So, my question is, after I delete Debian, how do I go about restoring the Fedora flavor of Grub? More importantly, how do you suggest I make sure that Grub will include the newest kernel? I'm not sure why, but before I installed Debian, Fedora kept each and every kernel I've had since I installed to be able to boot into. Any idea why that is? Should I even think about erasing that or leave it as it is?

Thanks in advance,

Brandon
 
Old 12-04-2007, 11:57 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Whilst logged into Fedora, run
Code:
#grub-install /dev/hdX
Replace /dev/hdX with the device which you want grub to be installed.
 
Old 12-05-2007, 12:02 AM   #3
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
First grub does not care how many kernels you have and does not install any kernel. Grub is a boot loader nothing more nothing less.

Boot with the F8 installation media into rescue mode (type linux rescue) answer a few question and read the on screen messages, pay extra attention to the one about using chroot and follow the instructions. When ready type something like;

grub-install --recheck /dev/sda

Yum (or more correctly rpm) installs kernels but does not update them, if you only want the latest then (very carefully) remove the un-wanted kernels using yum or rpm for example;

yum remove kernel-<version number here>
rpm -e kernel-<version number here>

To get the list use: rpm -qa 'kernel*'
 
Old 12-05-2007, 12:02 AM   #4
MyHeartPumpsFreon
Member
 
Registered: Oct 2007
Location: The States, Florida
Distribution: Lonely Werewolf
Posts: 251

Original Poster
Rep: Reputation: 30
Thanks Reddazz, but believe it or not, I figured it out on my own! The fix was as you suggested, however Fedora 8, in my case, uses the sdX label.

The steps I used to fix it was boot from the install DVD, go into rescue mode, accept default settings, mount Fedora partition as read/write, and once at the shell I issued the command 'chroot /mnt/sysimage' and then 'grub-install /dev/sda'.

Just to make sure everything was cool, I viewed the grub.conf file with 'nano /etc/grub.conf' and everything was in order. However, I noticed Fedora is NOT friendly with anything that isn't Fedora or Windows. I find that odd, but it's what I wanted. So, no complaints.

Consider this solved.

Thanks,

Brandon
 
Old 12-05-2007, 12:11 AM   #5
MyHeartPumpsFreon
Member
 
Registered: Oct 2007
Location: The States, Florida
Distribution: Lonely Werewolf
Posts: 251

Original Poster
Rep: Reputation: 30
Lenard,

Thanks for your post, it appears we posted at the same time. When I hit 'submit' it brought me right back to the thread with neither of our posts posted. Weird.

Anyway, I know Grub doesn't install kernels. I don't think I stated or thought otherwise. Also, every other time I updated my kernel with Fedora, Grub was automatically updated with the newest kernel. It just didn't this time because, I'm guessing, it was from the Debian installation. Another thing I noticed, my first kernel with Fedora 8 was 2.6.23.8-42. I updated once and it was 2.6.23.8-49. At this point (before the Debian install) both kernels showed. After I did what I did and reinstalled Grub, it only shows my new kernel, 2.6.23.8-63, and the previous 2.6.23.8-49. I never removed the kernel ending in -42.

I guess keeping the other kernels on there does nothing more than take up space? It doesn't really serve any other purpose after you've upgraded, unless there's a problem with the new kernel... right?

Thanks,

Brandon

EDIT; I did remove kernel 2.6.23.8-42. For whatever reason, it was creating a dependency issue that Yum couldn't resolve with my Nvidia drivers. It wouldn't update everything all at once. I had to first update the Nvidia driver, which removed that kernel (not sure why) and then it updated the kernel. then I was able to update everything else. I sort felt like I aimlessly came upon the answer to that problem. Sorry though, this all just came to me.

Last edited by MyHeartPumpsFreon; 12-05-2007 at 12:17 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
updating kernel image with GRUB loader rich442 MEPIS 3 04-06-2007 05:29 PM
updating Kernel from version 2.6.9 to version 2.6.19 varala_kanth Linux - Kernel 1 01-18-2007 04:21 AM
Updating Grub after kernel Compile beepee Linux - Software 3 11-15-2006 02:05 PM
Updating Grub.conf With New Kernel hanserr Linux - Newbie 3 02-27-2004 06:01 AM
Kernel Version and updating DMAN Linux - Software 2 01-16-2002 11:38 PM

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

All times are GMT -5. The time now is 11:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration