LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 09-18-2006, 10:37 PM   #1
Phyrkrakr
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
Broken kernel in FC5


So, I'm trying to move from 2.6.15 to 2.6.17 in order to get ivtv working. I accidentally uninstalled all of my kernels and now my installation won't boot. Is there any way short of completely reinstalling to fix this?

Here's what I did:
yum remove kernel-2.6* #here's where I deleted all of my kernels :-(
yum install kernel #here's where I tried to reinstall one of them

It then loaded up 2.6.17 (i thought), but when I boot, it tells me that the file isn't found for the kernel 2.6.15. Then, it reboots and does it again.

Quick specs for the machine (don't think it's necessary, but you can never tell):
Via EPIA m10000 (i386 architecture)
onboard video, lan, etc.
Hauppauge PVR-150 card.
E-IDE Seagate HD at 320 GB
512 MB RAM

It's frustrating because I'd just finished updating everything I thought, but when I tried to load ivtv for the PVR card, it told me it hadn't updated the kernel. This was after reboot, so I thought the new kernel should have been in there. Oh well.

Any help appreciated.
 
Old 09-18-2006, 11:58 PM   #2
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 826

Rep: Reputation: 107Reputation: 107
Man, that's a tough one. You could try booting from a live disc and see if you could make changes to GRUB that way. You could also use the Fedora Rescue disk, but I don't have too much experience with that. For future reference, when updating the kernel, just go ahead a let yum do it. By default, yum will leave the previous kernel intact. That way, if there are any problems with the new kernel, you can just go back to the old one. So, just do "yum -y update". Good luck!
 
Old 09-19-2006, 12:21 AM   #3
Phyrkrakr
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Fixed

Ok, here's what I did, from the helpful folks at fedoraforum.org:

Boot with the install disc one, then type
linux rescue
enter
at the boot: prompt. Load everything up including your old FS and network support. After it's booted type
chroot /mnt/sysimage
enter
which loads your preexisting install into memory. Then type
rpm -aq | grep kernel
enter
which finds out if there's still a kernel installed. In my case, there was, so I edited the /etc/grub.conf to set it to the new kernel that was there, and it booted successfully. Basically, change the kernel information to match what you got with the grep command. You can edit it either from the grub bootloader with "e" on the entry that's there and change the lines that need to be changed, or I was able to load vim from the rescue prompt and do it that way. From there, everything was back and I finished my yum updates successfully.
HTH, TFTH

Last edited by Phyrkrakr; 09-24-2006 at 09:06 PM.
 
Old 09-19-2006, 12:24 AM   #4
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 826

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Phyrkrakr
Ok, here's what I did, from the helpful folks at fedoraforum.org:

Boot with the install disc one, then type
linux rescue
enter
at the boot: prompt. Load everything up including your old FS and network support. After it's booted type
chroot /mnt/sysimage
enter
which loads your preexisting install into memory. Then type
rpm -ap | grep kernel
enter
which finds out if there's still a kernel installed. In my case, there was, so I edited the /etc/grub.conf to set it to the new kernel that was there, and it booted successfully. Basically, change the kernel information to match what you got with the grep command. You can edit it either from the grub bootloader with "e" on the entry that's there and change the lines that need to be changed, or I was able to load vim from the rescue prompt and do it that way. From there, everything was back and I finished my yum updates successfully.
HTH, TFTH
Ah, good to hear. I'll make a note of that.

Last edited by stormtracknole; 09-19-2006 at 12:26 AM.
 
  


Reply

Tags
fedora 5, kernel


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
cdrecord broken in kernel 2.6? vharishankar Slackware 9 08-05-2006 12:47 PM
Evolution Exchange integration Broken after FC5 Installation and Update dave_mwi Fedora 1 06-16-2006 10:36 AM
NTFS broken w/ 2.6 kernel mjl3434 Slackware 13 05-08-2006 01:10 AM
Xterm broken with Slack 10 and 2.6.9 kernel ebit Slackware 1 11-17-2004 08:54 AM
X broken after recompiling kernel. raylpc Linux - General 1 08-14-2003 03:33 AM


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