LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-25-2003, 09:23 AM   #1
Gord_McF
LQ Newbie
 
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5

Rep: Reputation: 0
SMP Kernel Panic with ext3 on Redhat 9


I'm a relative newbie with a seemingly old problem. I updated to Redhat 9 from 7.3 a couple of months ago. I'm running a twin xeon 2.2GHz machine. The SMP kernel booted fine with 7.3 but only the UP kernel supplied with RH9 (2.4.20-8) boots, the SMP kernel panics with the following message (snippet):

...
Loading ext3.o module
Mounting /proc filesystem
Creating block device
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
pivotroot: pivot_root(sysroot, /sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 156k freed
Kernel panic: No init found. Try passing init= option to kernel

I've updated the kernel to 2.4.20-19.9, now neither the UP or SMP kernels boot (thankfully I can still use the 2.4.20-8 UP kernel to get into the system).

The lilo configuration file reads:

boot=/dev/sda
linear
prompt
timeout=50
message=/boot/message
root=/dev/sdb2

image=/boot/vmlinuz-2.4.20-19.9smp
label=2.4.20-19.9smp
read-only
initrd=/boot/initrd-2.4.20-19.9smp.img
append="root=LABEL=/"

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

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

image="/boot/vmlinuz-2.4.20-8smp"
label="2.4.20-8smp"
root=/dev/sdb2
read-only
initrd="/boot/initrd-2.4.20-8smp.img"

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

other=/dev/sda1
label="2k"

and the content of the boot directory is:

total 21633
-rw-r--r-- 1 root root 512 Oct 9 2002 boot.0800
-rw-r--r-- 1 root root 5824 Jan 25 05:05 boot.b
-rw-r--r-- 1 root root 612 Jan 25 05:05 chain.b
-rw-r--r-- 1 root root 44753 Jul 15 22:29 config-2.4.20-19.9
-rw-r--r-- 1 root root 44805 Jul 15 22:16 config-2.4.20-19.9smp
-rw-r--r-- 1 root root 44309 Mar 13 23:01 config-2.4.20-8
-rw-r--r-- 1 root root 44361 Mar 13 22:52 config-2.4.20-8smp
drwxr-xr-x 2 root root 1024 Jul 25 11:37 grub
-rw-r--r-- 1 root root 275352 Jul 25 11:37 initrd-2.4.20-19.9.img
-rw-r--r-- 1 root root 280696 Jul 25 11:37 initrd-2.4.20-19.9smp.img
-rw-r--r-- 1 root root 275235 May 23 15:20 initrd-2.4.20-8.img
-rw-r--r-- 1 root root 280626 May 23 15:21 initrd-2.4.20-8smp.img
-rw-r--r-- 1 root root 473 May 23 15:20 kernel.h
drwx------ 2 root root 12288 Oct 9 2002 lost+found
-rw------- 1 root root 69632 Jul 25 13:49 map
-rw-r--r-- 1 root root 23108 Feb 25 00:51 message
-rw-r--r-- 1 root root 21282 Feb 25 00:51 message.ja
lrwxrwxrwx 1 root root 23 Jul 25 11:37 module-info -> module-info-2.4.20-19.9
-rw-r--r-- 1 root root 15438 Jul 15 22:29 module-info-2.4.20-19.9
-rw-r--r-- 1 root root 15438 Jul 15 22:16 module-info-2.4.20-19.9smp
-rw-r--r-- 1 root root 15436 Mar 13 23:01 module-info-2.4.20-8
-rw-r--r-- 1 root root 15436 Mar 13 22:52 module-info-2.4.20-8smp
-rw-r--r-- 1 root root 640 Jan 25 05:05 os2_d.b
lrwxrwxrwx 1 root root 19 Jul 25 12:14 System.map -> System.map-2.4.20-8
-rw-r--r-- 1 root root 522578 Jul 15 22:29 System.map-2.4.20-19.9
-rw-r--r-- 1 root root 548510 Jul 15 22:16 System.map-2.4.20-19.9smp
-rw-r--r-- 1 root root 520129 Mar 13 23:01 System.map-2.4.20-8
-rw-r--r-- 1 root root 546061 Mar 13 22:52 System.map-2.4.20-8smp
-rw-r--r-- 1 root root 3212677 Jul 15 22:29 vmlinux-2.4.20-19.9
-rw-r--r-- 1 root root 3660682 Jul 15 22:16 vmlinux-2.4.20-19.9smp
-rw-r--r-- 1 root root 3193503 Mar 13 23:01 vmlinux-2.4.20-8
-rw-r--r-- 1 root root 3637412 Mar 13 22:52 vmlinux-2.4.20-8smp
lrwxrwxrwx 1 root root 19 Jul 25 11:37 vmlinuz -> vmlinuz-2.4.20-19.9
-rw-r--r-- 1 root root 1133130 Jul 15 22:29 vmlinuz-2.4.20-19.9
-rw-r--r-- 1 root root 1219040 Jul 15 22:16 vmlinuz-2.4.20-19.9smp
-rw-r--r-- 1 root root 1122186 Mar 13 23:01 vmlinuz-2.4.20-8
-rw-r--r-- 1 root root 1211291 Mar 13 22:52 vmlinuz-2.4.20-8smp

I've trawled through various forums and noticed that there were problems with the SMP kernel and ext3 in versions of the kernel released with RH7.3. Has anyone come across this problem with RH9 or can anyone help me out with it?

Many thanks
Gordon
 
Old 07-25-2003, 09:41 AM   #2
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
boot=/dev/sda
linear
prompt
timeout=50
message=/boot/message
root=/dev/sdb2

image=/boot/vmlinuz-2.4.20-19.9smp
label=2.4.20-19.9smp
read-only
initrd=/boot/initrd-2.4.20-19.9smp.img

append="root=LABEL=/"

Delete this line from your lilo.conf file
 
Old 07-25-2003, 10:17 AM   #3
Gord_McF
LQ Newbie
 
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
I deleted this line, no joy I'm afraid! Exactly the same kernel panic with both the UP and SMP kernels

Any other ideas... ?

Cheers
G
 
Old 07-25-2003, 10:29 AM   #4
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
Do you know how to build a custom kernel?
 
Old 07-25-2003, 10:40 AM   #5
Gord_McF
LQ Newbie
 
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
not done it, but there's a first time for everything (... I can follow the man & faq pages when I get into trouble).

Do you have any specific suggestions so the recompiled kernel doesn't have the same problem?
 
Old 07-25-2003, 10:57 AM   #6
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
Hopefully by compiling the kernel you will resolve this issue. I have found that upgrades can corrupt the systems configuration resulting in that nasty message " kernel panic ". Use this HOWTO to compile your kernel. be sure to include the " ext3 " module.

http://www.ibiblio.org/pub/Linux/doc...O/Kernel-HOWTO
 
Old 07-25-2003, 12:31 PM   #7
Gord_McF
LQ Newbie
 
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
Cheers,
compiling as I type, I'll post results when I'm done
G
 
Old 07-31-2003, 08:02 AM   #8
Gord_McF
LQ Newbie
 
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
voodoo

Worryingly everything is now working fine. Not that I've knowingly done anything correctly. I successfully compiled the kernel and associated modules three times, and on each occasion the machine failed to boot. However, I retried the 2.4.20-19.9 smp kernel and it successfully booted for the first time, correctly recognising both processors and loading all modules correctly - no hint of a panic! I'm not sure I like this voodoo
Thanx for all your help in any case,
Cheers
G
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic with Ext2/Ext3 partition check kewlemer Linux - General 3 04-06-2005 08:49 PM
kernel for redhat AS 2.1 with SMP bmahesh Linux - Software 0 04-02-2004 06:33 AM
Kernel Panic re Ext3? OldNewbie Linux - Newbie 1 09-12-2003 12:26 PM
EXT3-fs: unable to read superblock... Kernel panic: no init found. ebakunin Linux - General 2 06-16-2002 11:37 PM
kernel 2.4.17, ext3 & kernel panic urinal cake Linux - Newbie 8 02-20-2002 08:26 PM


All times are GMT -5. The time now is 11:45 AM.

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