Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

Kernel Panic

Jahanzeb
Occasional Contributor

Kernel Panic

Hi ........
this is Jahan,
I have created a bzImage for Redhat Linux 9 with kernel version 2.4.20-8. After making the necessary changes in the grub.conf file, when I reboot my system with the new kernel, then the system gives me the following messages.

mount: error 19 mounting ext3
pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed: 2
umount /initrd/proc failed : 2
freeing unused kernel memory: 156 k freed.
kernel panic : no init found. try passing init = option to kernel

Can anyone help me that how I can rectify this problem.

Thanks.

8 REPLIES
Jerome Henry
Honored Contributor

Re: Kernel Panic

Hi Jahan,

There are good chances that your system doesn't find its partitions. Could you post :

- your grub.conf file ;
- your /boot content.

Tks

J
You can lean only on what resists you...
Vitaly Karasik_1
Honored Contributor

Re: Kernel Panic

did you create/define in grub.conf initrd file for your kernel?

Vitaly
Jahanzeb
Occasional Contributor

Re: Kernel Panic

Hello Dear

Here is the grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux 9(Jahanzeb) (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img

title DAO GUNJRANAWALA (Compiled by Jahanzeb)
root (hd0,0)
kernel /bzImage.myker.8aug2003 ro root=LABEL=/
initrd /initrd-2.4.20-8.8aug2003.img

And here are the contents of /boot.

-rw-r--r-- 1 root root 87241 Aug 9 19:42 2.4.20-8.8aug2003.img
-rw-r--r-- 1 root root 5824 Jan 25 2003 boot.b
-rw-r--r-- 1 root root 0 Aug 10 14:09 boot.list
-rw-r--r-- 1 root root 1195948 Aug 8 18:50 bzImage.myker.8aug2003
-rw-r--r-- 1 root root 612 Jan 25 2003 chain.b
-rw-r--r-- 1 root root 44309 Mar 14 04:01 config-2.4.20-8
-rw-r--r-- 1 root root 38820 Aug 8 18:48 config-2.4.20-8.8aug2003
drwxr-xr-x 2 root root 4096 Aug 10 14:08 grub
-rw-r--r-- 1 root root 87309 Aug 9 19:43 initrd-2.4.20-8.8aug2003.img
-rw-r--r-- 1 root root 149668 Aug 7 19:14 initrd-2.4.20-8.img
-rw-r--r-- 1 root root 473 Aug 7 19:14 kernel.h
drwx------ 2 root root 16384 Aug 7 19:06 lost+found
-rw-r--r-- 1 root root 23108 Feb 25 05:51 message
-rw-r--r-- 1 root root 21282 Feb 25 05:51 message.ja
lrwxrwxrwx 1 root root 20 Aug 7 19:14 module-info -> module-info-2.4.20-8
-rw-r--r-- 1 root root 15436 Mar 14 04:01 module-info-2.4.20-8
-rw-r--r-- 1 root root 640 Jan 25 2003 os2_d.b
lrwxrwxrwx 1 root root 19 Aug 7 19:14 System.map -> System.map-2.4.20-8
-rw-r--r-- 1 root root 520129 Mar 14 04:01 System.map-2.4.20-8
-rw-r--r-- 1 root root 541124 Aug 8 19:02 System.map-myker.8aug2003
-rw-r--r-- 1 root root 3193503 Mar 14 04:01 vmlinux-2.4.20-8
lrwxrwxrwx 1 root root 16 Aug 7 19:14 vmlinuz -> vmlinuz-2.4.20-8
-rw-r--r-- 1 root root 1122186 Mar 14 04:01 vmlinuz-2.4.20-8
Vitaly Karasik_1
Honored Contributor

Re: Kernel Panic

did you include support for ext3 filesystem in your kernel?
Jahanzeb
Occasional Contributor

Re: Kernel Panic

Hi dear Henry...

Thanks for your instant response,
and I am afraid that I don't know how to add the support for ext3 filesystem in Linux kernel. Would you be so kind to let me know that how to do this.

Thanks.

Jahan
Steven E. Protter
Exalted Contributor

Re: Kernel Panic

Unless you specifically went out of your way to exclude it ext3 filesystem support is in your kernel.

It would appear that my may have a disk/hardware problem. Is the behavior consistent?

State your version of Linux. Looks like 7.3.



SEP
On the way to Wyoming
A friend of Jerome Henry

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James Wilson_5
Frequent Advisor

Re: Kernel Panic

Jahan,

Look under "file systems" for ext3 in your kernel config and make sure it is compiled into the kernel and NOT selected as a module. (Modules for the root file system can be made to work at boot, but that is another story:))

James
Vitaly Karasik_1
Honored Contributor

Re: Kernel Panic

>and make sure it is compiled into the kernel >and NOT selected as a module. (Modules for >the root file system can be made to work at >boot, but that is another story:))

AFAIK, in RH Linux kernel compiled with ext3 as module. Just because it RHL uses initrd by default.