| Author |
Upgrading RH7.1 to kernel-2.4.20-19.
|
|
| Wang Yu III 2004-01-23, 7:28 pm |
| I had always use RHN to upgrade, this time trying to upgrade
my RH7.1 to kernel-2.4.20-19.7 it got to 'kernel panic' while
booting the newly installed kernel for the first time.
I tried downloading the 'kernel-2.420-19.7.i386.rpm' by ftp
and tried 'rpm -Uvh kernel-2.4.20-19.7.i386.rpm' but it got
into so many weird parade of 'lib incompatible' errors.
Upgrading the RH7.1 kernel by RPM, am I doing it correctly?
If not, any suggestion? Thanks.
| |
|
| Wang Yu III,
If your system is registered with Red Hat Network, just use up2date.
Regards,
Jan Gerrit Kootstra
"Wang Yu III" <wangyu3@netzero.net> schreef in bericht
news:3F21978C.684DDC3C@netzero.net...quote:
> I had always use RHN to upgrade, this time trying to upgrade
> my RH7.1 to kernel-2.4.20-19.7 it got to 'kernel panic' while
> booting the newly installed kernel for the first time.
> I tried downloading the 'kernel-2.420-19.7.i386.rpm' by ftp
> and tried 'rpm -Uvh kernel-2.4.20-19.7.i386.rpm' but it got
> into so many weird parade of 'lib incompatible' errors.
> Upgrading the RH7.1 kernel by RPM, am I doing it correctly?
> If not, any suggestion? Thanks.
>
>
>
| |
| Wang Yu III 2004-01-23, 7:28 pm |
| My system is registered with RHN but when I run the up2date and
installed the new kernel, I got to the 'kernel panic'.
jgk wrote:
[QUOTE][color=darkred]
> Wang Yu III,
>
> If your system is registered with Red Hat Network, just use up2date.
>
> Regards,
>
> Jan Gerrit Kootstra
>
> "Wang Yu III" <wangyu3@netzero.net> schreef in bericht
> news:3F21978C.684DDC3C@netzero.net...
| |
| Wang Yu III 2004-01-23, 7:28 pm |
| Yes I also tried 'rpm -ivh' but gave same error...
Mark Taylor wrote:
quote:
> Wang Yu III <wangyu3@netzero.net> wrote in
> news:3F21978C.684DDC3C@netzero.net:
>
>
> To install kernel packages manually, use "rpm -ivh <package>" and
> modify system settings to boot the kernel you have installed. To
> do this, edit /boot/grub/grub.conf and change the default entry to
> "default=0" (or, if you have chosen to use LILO as your boot loader,
> edit /etc/lilo.conf and run lilo)
>
> Do not use "rpm -Uvh" as that will remove your running kernel binaries
> from your system. You may use "rpm -e" to remove old kernels after
> determining that the new kernel functions properly on your system.
>
> (Copied right off the Red Hat errata page for the kernel rpm. RTFM!
>
> Mark
| |
| Mark Taylor 2004-01-23, 7:28 pm |
| Wang Yu III <wangyu3@netzero.net> wrote in
news:3F222D1E.4A578A2E@netzero.net:
quote:
> Yes I also tried 'rpm -ivh' but gave same error...
>
>
Of course it did... when you used rpm -Uvh it erased the working kernel
binaries.
What you now need to do is reboot the machine to an older, known to work,
kernel. Then install the new kernel with up2date or with rpm -ivh
It should then install. You will likely have to remove the trashed
kernel(s) and edit lilo for it to all work right.
Mark
| |
| Wang Yu III 2004-01-23, 7:28 pm |
| Okay, I just did 'rpm -ivh kernel-2.4.20-19.7' and seemed it installed
normally. I made coldboot and tried the newly installed kernel. I got
stuck with the 'kernel panic'.
I tried 'rpm -q kernel-2.4.20-19.7' it returned 'not installed' but why I
see the newly installed kernel at '/lib/modules/' so I did 'rpm -e
kernel-2.4.20-19.7' but it also returned 'not installed'. :-(
Mark Taylor wrote:
quote:
> Wang Yu III <wangyu3@netzero.net> wrote in
> news:3F222D1E.4A578A2E@netzero.net:
>
>
> Of course it did... when you used rpm -Uvh it erased the working kernel
> binaries.
>
> What you now need to do is reboot the machine to an older, known to work,
> kernel. Then install the new kernel with up2date or with rpm -ivh
>
> It should then install. You will likely have to remove the trashed
> kernel(s) and edit lilo for it to all work right.
>
> Mark
| |
| Mark Taylor 2004-01-23, 7:28 pm |
| Wang Yu III <wangyu3@netzero.net> wrote in
news:3F24C4B7.A8744886@netzero.net:
quote:
> I tried 'rpm -q kernel-2.4.20-19.7' it returned 'not installed' but why
Because the proper command would be:
rpm -q kernel
Quite likely your getting a kernel panic because the old kernel is trying
to boot. Have a look at, or post, your /etc/lilo.conf file.
Mark
| |
| Mark Taylor 2004-01-23, 7:28 pm |
| Wang Yu III <wangyu3@netzero.net> wrote in
news:3F24D0D3.998E0250@netzero.net:
quote:
> But why it updated the kernel before without me doing all
> this craps?
>
Glad you got it working.. but we may never know. The only thing I would
guess it that by attempting to Upgrade the kernel the first time you
overwrote some necessary files preventing the proper install. Whatever you
did to make it work then just live with it. Next time do an install instead
of an upgrade and see if you get a cleaner install...
Now you can consider uninstalling old kernels that you no longer use.
Otherwise you will run out of space after installing the 4th or 5th new
kernel. To uninstall use rpm -e kernel-x.x.x-x You may need to then edit
and run lilo...maybe not.
Cheers,
Mark
|
|
|
|