LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-27-2003, 02:21 PM   #1
usr
Member
 
Registered: Oct 2003
Posts: 44

Rep: Reputation: 15
kernel panic again


I received some errors with my new kernel(2.4.22) so I decided to try again. I read more from HOWTO. I observed that after decompressing the 2.4.22 kernel there is no .config file so I had copied the .config file from the /boot (this was the .config file of the 2.4.20 kernel) into the /usr/src/linux-2.4.22 and after that
make dep
make bzImage
make modules
make modules_install
cd /sbin
./mkinitrd ./initrd-2.4.22.img 2.4.22
cp /usr/src/linux-2.4.22/arch/i386/boot/bzImage /boot/vmlinux-2.4.22
cp ./initrd-2.4.22.img /boot
cp /usr/src/linux-2.4.22/.config /boot/config-2.4.22
after that I configured GRUB but at start up I receive
Kernel panic: No init found; Try passing init= option to kernel.
What should I do now?
It is good that I copied the .config file of the distribution kernel to use it with this new kernel? Initially I tried with make oldconfig but I didn’t had a .config file in the /usr/src/linux-2.4.22 and it didn’t work write(for example the processor type remained Pentium III and I have am AMD Athlon XP)

Excuse my newbies!
 
Old 10-27-2003, 03:57 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
what does your menu.lst (/boot/grub/menu.lst) look like?
 
Old 10-28-2003, 09:59 AM   #3
usr
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
In menu.lst I have the following:

# 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,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8.img
title Red Hat Linux (2.4.22)
root (hd0,1)
kernel /vmlinux-2.4.22 ro root=/dev/hda3
initrd /initrd-2.4.22.img
title Windows XP Pro
rootnoverify (hd0,0)
chainloader +1
 
Old 10-29-2003, 10:15 AM   #4
usr
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
I fix the problem with the kernel and now it loads but I still have some problems:
USB mouse, keyboard…FAILED
Iptables…FAILED
What is iptables and how can I activate it from kernel(what do I have turn on?)?
I turned on the ntfs support but how can I mount the ntfs partition?
I have the following partitions:
1-ntfs
2-boot
3-ext3
4-swap
(I installed linux RedHat 9.0 after windows XP)

Excuse my newbiess
 
Old 10-29-2003, 11:59 AM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Perhaps you have not included USB and iptables support in the kernel. If you require them then they should either be included directly or as modules in the kernel. You would have to do the configure again and either include them or select them as modules then recompile the kernel and install it as before.
 
Old 10-29-2003, 07:54 PM   #6
atriad
LQ Newbie
 
Registered: Sep 2003
Location: Boston/Providence
Distribution: Redhat 6,7,8,9 - Win XP/2k, MacOS
Posts: 2

Rep: Reputation: 0
What did you do to fix the "Kernel panic: No init found. Try passing init= option to kernel" issue?

I have RH9 and I am required to upgrade to the 2.4.22 kernel.
 
Old 10-30-2003, 08:41 AM   #7
usr
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
I recompiled the kernel with ext3 into kernel and after that it was OK
 
  


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 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 01:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 04:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 05:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 04:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 01:31 AM


All times are GMT -5. The time now is 12:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration