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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-25-2003, 08:23 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5
Rep:
|
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
|
|
|
07-25-2003, 08:41 AM
|
#2
|
Member
Registered: Jul 2003
Location: Europe
Posts: 198
Rep:
|
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
|
|
|
07-25-2003, 09:17 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5
Original Poster
Rep:
|
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
|
|
|
07-25-2003, 09:29 AM
|
#4
|
Member
Registered: Jul 2003
Location: Europe
Posts: 198
Rep:
|
Do you know how to build a custom kernel?
|
|
|
07-25-2003, 09:40 AM
|
#5
|
LQ Newbie
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
07-25-2003, 09:57 AM
|
#6
|
Member
Registered: Jul 2003
Location: Europe
Posts: 198
Rep:
|
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
|
|
|
07-25-2003, 11:31 AM
|
#7
|
LQ Newbie
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5
Original Poster
Rep:
|
Cheers,
compiling as I type, I'll post results when I'm done
G
|
|
|
07-31-2003, 07:02 AM
|
#8
|
LQ Newbie
Registered: Jul 2003
Location: Manchester, England
Distribution: Redhat 9
Posts: 5
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 09:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|