2003-06-18 11:06:56

by Sourabh Ladha (EED)

[permalink] [raw]
Subject: Kernel Panic while upgrading from 2.4.20 to 2.5.70

Hi,

[I know this has been discussed before but I tried the previous fixes proposed without luck..so]

I was trying to upgrade my kernel from 2.4.20 to 2.5.70. (I am running RedHat 9). After getting the sources I did:

make clean; make mrproper; make distclean; make menuconfig; make bzImage; make modules; make modules_install; make install (got past all of these)

The make install updated my grub.conf as well. When I reboot the system tries to boot up but I get a kernel panic with the error:

mount: error 19 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 224k freed
Kernel panic: No init found. Try passing init= option to kernel

Some random, no-clue attempts of fixing included: removing the ext3 support and then rebuilding the kernel, making my old config file's (2.4.20) filesystem options same as the new one and then rebuilding..but no luck.

Could anyone please let me know what can I do to get 2.5.70 working ?


Thanks,
Sourabh


2003-06-18 12:41:48

by walt

[permalink] [raw]
Subject: Re: Kernel Panic while upgrading from 2.4.20 to 2.5.70

Sourabh Ladha (EED) wrote:
> Hi,
>
> [I know this has been discussed before but I tried the previous fixes proposed without luck..so]
>
> I was trying to upgrade my kernel from 2.4.20 to 2.5.70. (I am running RedHat 9). After getting the sources I did:
>
> make clean; make mrproper; make distclean; make menuconfig; make bzImage; make modules; make modules_install; make install (got past all of these)
>
> The make install updated my grub.conf as well...

Just a wild guess: did you upgrade modutils to module-init-tools? 2.5.x won't be happy
until you do.


2003-06-18 13:10:32

by Sourabh Ladha (EED)

[permalink] [raw]
Subject: RE: Kernel Panic while upgrading from 2.4.20 to 2.5.70

My mistake .. I had CONFIG_EXT3_FS as a module..uhh

Works fine now.

-Sourabh

2003-06-18 21:35:41

by Thomas Molina

[permalink] [raw]
Subject: Re: Kernel Panic while upgrading from 2.4.20 to 2.5.70

>Sourabh Ladha (EED) wrote:
>> Hi,
>>
>> [I know this has been discussed before but I tried the previous fixes
proposed without luck..so]
>>
>> I was trying to upgrade my kernel from 2.4.20 to 2.5.70. (I am running
RedHat 9). After getting the sources I did:
>>
>> make clean; make mrproper; make distclean; make menuconfig; make bzImage;
make modules; make modules_install; make install >(got past all of these)
>>
>> The make install updated my grub.conf as well...
>
>Just a wild guess: did you upgrade modutils to module-init-tools? 2.5.x
won't be happy
>until you do.


Actually, I have seen similar before. It happens when you install a new
kernel on a RedHat system which requires an initrd to boot. It happens
specifically because you upgrade module-init-tools. The upgraded
module-init-tools replaces files used by the previous version of the
utilities and creating links to them. It appears that the RedHat system
fails to find the proper version of the files it needs to build the initrd
image and therefor fails when it tries to load the ext3 modules. It then
can't find the init on the disk because it can't read the filesystem and
gives the error seen.

The two options are either build a kernel with everything required to boot
built in rather than modular, or else reinstll the old module tools, install
the new kernel (this allows RedHat to create a good initrd image), and then
reinstall the new module init tools.