LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help kernel problem!!! (https://www.linuxquestions.org/questions/linux-newbie-8/help-kernel-problem-76881/)

Devboy 07-29-2003 06:14 AM

help kernel problem!!!
 
hey, right this is weird i installed red hat linux the otherday and updated the kernel with the udate agent it was fine able to boot straight away, but i did a fresh install of RH9 today and updated it and i get the error loading the kernel 2.4.20-19.9 there error i get is:

Kernel panic: No init found. Try passing init= option to kernel

dont understand the problem at all i can still boot into the orignal kernel.

MasterC 07-29-2003 06:30 AM

Try re-updating, maybe something got messed up since that appears to be the only difference (different times).

Cool

Devboy 07-29-2003 06:31 AM

ive ran the update client againa and it says no further updates, or do u mean download a kernel and compile then install it?

MasterC 07-29-2003 06:37 AM

Well you could do that too, though be prepared for a long hard night ;)

Nah, instead I'd suggest removing the kernel that got updated (not the working one!) and then try updating again.

Cool

Devboy 07-29-2003 06:44 AM

ahh cool, how do i remove it? am a newbie.

MasterC 07-29-2003 06:47 AM

First you'll need to know the package name that got installed, so as root in a terminal type:
rpm -qa | grep kernel
And you'll likely see quite a few packages. Try to find the one(s) that match the upgraded kernel, then type (make sure you are picking the correct kernel, not the working one):
rpm -e packagename
Where packagename is the package you find from the command above.

Cool

Devboy 07-29-2003 06:48 AM

:S how am i ament to find out the package name when it was automaticly installed?

MasterC 07-29-2003 06:55 AM

;) That's really beyond me, however I'm assuming (bad idea sometimes ;) ) that RedHat uses RPM's to upgrade. If that's so, then the command:
rpm -qa | grep kernel
Should list the package name that got upgraded. You just have to compare it to the kernel that doesn't work to make sure it's that one and not the working one.

Cool

Devboy 07-29-2003 06:57 AM

got them cheers:

kernel-pcmcia-cs-3.1.31-13
kernel-2.4.20-19.9
kernel-ntfs-2.4.20-19.9
kernel-source-2.4.20-19.9
kernel-2.4.20-8


ill get started on removeing kernel-2.4.20-19.9

MasterC 07-29-2003 07:00 AM

Ooh, yeah, don't remove anything else though ;) At least not the pcmcia bit...

Cool

ppuru 07-29-2003 07:57 AM

devboy

if you haven't already "rpm -e"-ed the kernel upgrade ...

It seems your your 2.4.20-19.9 kernel is unable to find the root device.

Have a look into your lilo.conf or grub.conf.

Devboy 07-29-2003 08:05 AM

all done thanks and its fixed fine :) very happy now, just 1 more thing to remove the old kernel to i just type:

rpm -e kernel-2.4.20-8

??

ppuru 07-29-2003 08:20 AM

can do rpm -e --test kernel-2.4.20-8 to be rest assured.

You *may* also have the old kernel-doc and kernel-source.

Awatto 08-07-2003 06:06 PM

Hey guys, I'm sorta new to Linux, i've been using red hat for years, but on and off, never really was good at it ;)

I have this exact same problem, i tried rpm -e kernelblahblah and reinstalling it but I still get the error.

Quote:

Have a look into your lilo.conf or grub.conf.
What exactly would i look for to change and what to change it to?

Any help is appreciated.


All times are GMT -5. The time now is 04:21 PM.