LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-26-2005, 03:20 PM   #1
aquarius_kasuia
LQ Newbie
 
Registered: Sep 2005
Location: Monte Mor - São Paulo - Brasil
Distribution: CentOS
Posts: 6

Rep: Reputation: 0
New kernel won´t boot. Kernel panic


Hi all,
I installed centOS 4.1this weekend. After the instalation I discovered that the NTFS module wasn´t present so I decided to recompile the kernel . I installed the kernel sources rpm.

In the directory /usr/src/linux-2.6.9-11.EL/ :

make xconfig

configured the kernel:
in the "block devices" I checked the "RAM disk support" and "Initial RAM disk (initrd) support" as built-in

in the "file system" all ext3 options were marked as built in

in the DOS/FAT/NT section, NTFS was marked as a module

make modules

make modules_install

make bzImage

made the initrd img file:
/sbin/mkinitrd initrd-2.6.11.EL.img 2.6.9-11.ELcustom


I edited 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 do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,5)
# kernel /boot/vmlinuz-version ro root=/dev/hda6
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS-4 i386 (2.6.9-11.EL)
root (hd0,5)
kernel /boot/vmlinuz-2.6.9-11.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-11.EL.img
title CentOS-4 i386 (2.6.13)
root (hd0,5)
kernel /usr/src/linux-2.6.9-11.EL/arch/i386/boot/bzImage
initrd /usr/src/linux-2.6.9-11.EL/arch/i386/boot/initrd-2.6.11.EL.img
title Other
rootnoverify (hd0,0)
chainloader +1

When rebooting at the new kernel I receive the messages:

Red Hat nash version 4.2.13 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
switching to new root
switchroot: mount failed: 22
umount /initre/dev failed:2
Kernel panic - not syncing: Attempted to kill init!

I tryed searching google but couldn´t find any information that would solve the problem.

I hope someone can help me, if need more information just ask and I´ll post

Thank you
 
Old 09-26-2005, 03:39 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
posting your /etc/fstab will help also..
 
Old 09-27-2005, 10:50 AM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,452

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
During the initrd step, it's not able to recognize and mount the root filesystem. Make sure that the necessary support is present in the kernel. You'll also need to do some looking for "error 6." Google is your friend here... advanced-search for exact phrases.
 
Old 09-27-2005, 12:36 PM   #4
aquarius_kasuia
LQ Newbie
 
Registered: Sep 2005
Location: Monte Mor - São Paulo - Brasil
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
I can´t post the /etc/fstab now. Sorry. I´m not at home. I´ll post ir Friday.

mount has the following return codes (the bits can be ORed):

0 success
1 incorrect invocation or permissions
2 system error (out of memory, cannot fork, no more loop devices)
4 internal mount bug or missing nfs support in mount
8 user interrupt
16 problems writing or locking /etc/mtab
32 mount failure
64 some mount succeeded

So error 6 means:
2 system error (out of memory, cannot fork, no more loop devices)
4 internal mount bug or missing nfs support in mount

I don´t think it is "out of memory" or "cannot fork" because it is still botting. What "no more loop devices" means??
"Internal mount bug"

what "nfs support in mount" means? Do I have to put nfs support in kernel too?

Thank you!!
 
Old 09-30-2005, 05:02 PM   #5
aquarius_kasuia
LQ Newbie
 
Registered: Sep 2005
Location: Monte Mor - São Paulo - Brasil
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
I found the answer.
If someone is interested it was the grub.conf file

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,5)
# kernel /boot/vmlinuz-version ro root=/dev/hda6
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS-4 i386 (2.6.9-11.EL)
root (hd0,5)
kernel /boot/vmlinuz-2.6.9-11.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-11.EL.img
title CentOS-4 i386 (2.6.13)
root (hd0,5)
kernel /usr/src/linux-2.6.9-11.EL/arch/i386/boot/bzImage ro root=LABEL=/
initrd /usr/src/linux-2.6.9-11.EL/arch/i386/boot/initrd-2.6.11.EL.img
title Other
rootnoverify (hd0,0)
chainloader +1


I just put the ro root=LABEL=/ and it booted... don´t know what it means but it is working now!!

Thank you everybody that tried to help!
 
Old 10-21-2005, 05:02 AM   #6
XOR007
Member
 
Registered: May 2005
Location: Africa
Distribution: Ubuntu, Redhat 6.2 to 9, Centos 4, Suse 8 Ent.,Suse 9 Ent.
Posts: 51

Rep: Reputation: 15
root=LABEL=/ means your root filesystem is of the type ext2/ext3 and has an e2label of "/"
without knowing this the kernel cannot find your initial ram disk. Normally this is properly updated if you upgrade the kernel the standard redhat way:

rpm -ivh /path/to/latest-kernel/kernel-<version>

Last edited by XOR007; 10-21-2005 at 05:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic on boot MasterOfTheWind Linux - Newbie 2 08-12-2004 02:52 PM
Kernel Panic at boot from Promise ATA100 w/ Kernel 2.6 MikTheUser Linux - Hardware 9 07-24-2004 02:24 PM
Cannot boot! kernel panic nikoz Linux - General 4 03-17-2004 09:11 AM
Kernel panic on boot from cd? Crunch Linux - Newbie 3 03-05-2003 05:37 PM
Kernel Panic on boot up gedi1 Linux - General 2 08-19-2001 08:12 PM


All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration