LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-25-2003, 10:20 AM   #1
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Rep: Reputation: 15
Angry Kernel panics!!!


alright guys, I really need some help here....

I am using RedHat 8.0 + updates to phoebe and with the updates also came a new kernel. First I updated the kernel from the up2date feature to 2.4.20-2.21 and when I rebooted I had two options. I could either boot up with the old kernel (2.4.18-14) OR the new one (2.4.20-2.21). When I tried selecting the new one I got a "kernel panic: init not found error". However, before this line was another line saying "error 19: cannot mount ext3 file-system". Anyways, I asked in the distro forum and got nowhere with it.
Today I updated the kernel again to 2.4.20-2.24 (hoping that it'd work this time) but this time I get the same kernel panic with the same "init not found" message but this time the line above that says "error 6: cannot mount ext3 file-system".
I have searched through google, redhat bugzilla etc with no luck. Does anyone know how to get this thing to work?

Thanks.

Last edited by pagal; 01-25-2003 at 10:57 AM.
 
Old 01-25-2003, 11:19 AM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 587

Rep: Reputation: 32
you probably use ext3 as the root partition and probably this fs type is not compiled (statically) into the kernel
show the results of mount command
 
Old 01-25-2003, 11:33 AM   #3
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Original Poster
Rep: Reputation: 15
here it is....

mount...
/dev/hdb2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hdb1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
 
Old 01-25-2003, 01:08 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Re: Kernel panics!!!

Quote:
Originally posted by pagal

Today I updated the kernel again to 2.4.20-2.24 (hoping that it'd work this time) but this time I get the same kernel panic with the same "init not found" message but this time the line above that says "error 6: cannot mount ext3 file-system".
I have searched through google, redhat bugzilla etc with no luck. Does anyone know how to get this thing to work?

Thanks.
Like dorian said, ext3 support is definitely not complied in.

You need an initrd ( initial Ram Disk ). The last time I up2dated my kernel, it downloaded the appropriate initrd as well and configured my boot loader so it would be used by the new kernel boot option. Rescue the system using the install CD, mount and chroot your root fs and run mkinitrd --with-module=ext3 to make an initrd. Modify your boot loader to use the file.
 
Old 01-25-2003, 01:32 PM   #5
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Original Poster
Rep: Reputation: 15
could you please give me a step-by-step instructions?
I sort of got what you're sayin' but I don't think I can do it
 
Old 01-25-2003, 02:33 PM   #6
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by pagal
could you please give me a step-by-step instructions?
I sort of got what you're sayin' but I don't think I can do it
1. Boot from install disk #1 aka 'rescue cd'
2. Type in 'linux rescue' at the boot prompt.
3. Redhat will tell you if it detected your root filseystem and mounted it. ( usually under /mnt/sysimage. if not, do it manually)
4. Logon as root.
5. chroot /mnt/sysimage /bin/bash --login
6. /sbin/mkinitrd /initrd.img --with=ext3 2.4.20-2.24
7. cp ./initrd.img /boot/initrd-2.4.20-2.24.img ( Note: if your /boot is a separate partition, mount it first before you do this.)
8. edit /etc/grub.conf in your favourite text ed. ( vim rules, if you can work it )
9. under kernel /vmlinuz-2.4.20-2.24
add
initrd /initrd-2.4.20-2.24.img
10. Save, Exit, Reboot, Pray.
 
Old 01-26-2003, 12:48 AM   #7
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Original Poster
Rep: Reputation: 15
hey,
thanks for the help. I followed your instructions and now I get a different error...something about "LABEL=/" error.
any ideas?
here is my lilo.conf

boot="/dev/hda"
prompt
timeout="50"
message=/boot/message
root=/dev/hdb2
linear

image=/boot/vmlinuz-2.4.20-2.24
label="2.4.20-2.24"
root=/dev/hdb2
read-only
initrd="/boot/initrd-2.4.20-2.24.img"
append="root=LABEL=/"

image=/boot/vmlinuz-2.4.18-14
label="2.4.18-14"
root=/dev/hdb2
read-only
initrd="/boot/initrd-2.4.18-14.img"

image="/boot/vmlinuz-2.4.20-2.21"
label="2.4.20-2.21"
root="/dev/hdb2"
read-only
initrd="/boot/initrd-2.4.20-2.21.img"

image=/usr/src/linux/arch/i386/boot/bzImage
label="Linux_Compiled"
root=/dev/hdb2
read-only
optional

other=/dev/hda1
label="NT"

Last edited by pagal; 01-26-2003 at 12:52 AM.
 
Old 01-26-2003, 01:53 AM   #8
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Rescue.. mount chroot etc.

remove the append= line from under your latest kernel
Now run /sbin/lilo.
Reboot.
 
Old 01-26-2003, 01:55 AM   #9
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Original Poster
Rep: Reputation: 15
alright man, I'll give it a shot and be back in 5-8 minutes. Please stick around if you don't mind.
thanks a bunch.
 
Old 01-26-2003, 02:09 AM   #10
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Original Poster
Rep: Reputation: 15
wohoo...it worked!!!
thanks man, now I can finally sleep (I've been up from over 48 hours)
I tried deleting the line before myself, but I didn't know I had to use "/sbin/lilo" afterwards.

once again, thank you.
LQ all the way!!!

P.S: one last question...now that I have this kernel working, can I remove the rpms of the old kernels??

Last edited by pagal; 01-26-2003 at 02:10 AM.
 
Old 01-26-2003, 02:20 AM   #11
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Good!

Yes, I'd manually remove the old kernels but whatever floats your boat.

Curious.. where are you located, deewane?
 
Old 01-26-2003, 02:28 AM   #12
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Original Poster
Rep: Reputation: 15
Toronto, Canada
 
Old 01-26-2003, 02:29 AM   #13
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Not too far, I guess.
 
  


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
why kernel panics Niloy Linux - Software 3 08-16-2005 01:46 PM
more kernel panics... Legrow Fedora 0 04-18-2005 10:25 AM
2.6.1 and kernel panics hondaman Mandriva 6 02-07-2004 08:18 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM
kernel panics please help valleyman Linux - Hardware 12 06-26-2003 05:23 AM


All times are GMT -5. The time now is 09:02 AM.

Main Menu
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