Hi Everyone,
I have installed RHES 2.1 installed on my machine, which comes by default with kernel-2.4.9-e.24. It works well. I recently upgraded to kernel 2.4.18-27.7.x using kernel RPM as follows:
rpm -ivh kernel-2.4.18-27.7.x.i686.rpm /sbin/mkinitrd -f -v /boot/initrd-2.4.18-27.7.x
I am using grub as the bootloader and it has following configuration for booting into new kernel:
title Red Hat Linux (2.4.18-27.7.x) root (hd0,0) kernel /vmlinuz-2.4.18-27.7.x ro root=/dev/hda3 initrd /initrd-2.4.18-27.7.x.img
When i boot into new kernel i get following error:
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed: 2 Freeing unused kernel memory: 160k free Kernel panic: No init found. Try passing init= option to kernel.
Thing to note. I can still boot to older kernel and works well.
Any one any ideas what could be the problem in here? Any help on the matter will be appreciated.
Thanks and Regards, Nikunj
Nikunj Virani wrote:
/sbin/mkinitrd -f -v /boot/initrd-2.4.18-27.7.x
doesn't it require one more parameter? seems kernel version param is missing.
title Red Hat Linux (2.4.18-27.7.x) root (hd0,0) kernel /vmlinuz-2.4.18-27.7.x ro root=/dev/hda3 initrd /initrd-2.4.18-27.7.x.img
try bootin in the new kernel after removing initrd entry from grub.conf for the new kernel.
regds, amey.
Company : Unitek Information Systems Pvt. Ltd. [http://www.unitek.com/]
Details : Unitek is a California-based professional services company providing technical solutions and resources in computer software
and information technology.Unitek was founded in January 1992. Unitek has been profitable since it's inception, and has enjoyed a consistent annual growth rate,
at times 100% and greater.Founded as a high-technology network and systems integrator, Unitek Information Systems is dedicated to innovative
IT/IS integration and support-solutions. Our mission is to create value for our clients by providing quality IT services in the information technology arena.
Unitek provides IT consulting, contracting and training to clients that represent a wide gamut of firms in terms of size and industry background.
Location : Andheri [West],Mumbai India .
Experience : 6 months - 3 years
REQUIRED SKILLS
* Exposure in PHP, MySQL
* Sound knowledge HTML, JavaScript, Style sheet
* Proficient with object oriented programming
* Strong database and SQL concepts
* Experience in Pgsql and PERL preferred
* Multitasking
* A thorough team player
Email at jobs@unitek.co.in
Hi Guys,
Finally got the problem solved:
Here is a brief problem description and solution in my case:
Problem Description:
I have installed RHES 2.1 installed on my machine, which comes by default with kernel-2.4.9-e.24. It works well. I recently upgraded to kernel 2.4.18-27.7.x using kernel RPM as follows:
rpm -ivh kernel-2.4.18-27.7.x.i686.rpm
/sbin/mkinitrd -f -v /boot/initrd-2.4.18-27.7.x 2.4.18-27.7.x
I am using grub as the bootloader and it has following configuration for booting into new kernel:
title Red Hat Linux (2.4.18-27.7.x) root (hd0,0) kernel /vmlinuz-2.4.18-27.7.x ro root=/dev/hda3 initrd /initrd-2.4.18-27.7.x.img
When i boot into new kernel i get following error: (I have added comments as I understand after some research in Italics after the errors)
mounting root filesystem kmod: failed to exec /sbin/modprobe -s -k block-major-3, errno = 2 >> run modprobe on block-major-3 i.e. IDE Drive and errno=2 signifies cannot find file. mount: error 6, errno = 2 >> Cannot find IDE Disk so cannot mount it. And all other error follows. pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed: 2 Freeing unused kernel memory: 160k free Kernel panic: No init found. Try passing init= option to kernel.
Solution:
Problem was my BIOS (version BF86510A.86A.0038.P08) allowed to configure ATA/IDE Drives on enhanced mode which has all PATA and SATA Resources enabled (comes by default), but new kernel identifies IDE Drives only in LEGACY Mode (Primary /Secondary). I changed the BIOS Settings for IDE Drives from Advanced to LEGACYand it works fine.
Let me know if you have any doubts/clarifications.
Regards, Nikunj Virani