Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-24-2004, 10:57 AM   #1
LQ Newbie
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
kernel panic

ive just tried to complie my first kernel under red hat 9

but when i try to boot to it i get a kernel panic saying i need to pass init to the kernel

how do i do this?
Old 04-24-2004, 11:40 AM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,681

Rep: Reputation: 218Reputation: 218Reputation: 218
The reaseon of this error is probably that the kernel can't read the partition your kernel is on. Check if you have that option in the kernel. If you use initrd, it can be as module, but if there's no initrd you'd need to build in into the kernel.
Old 04-24-2004, 12:26 PM   #3
Registered: Apr 2004
Location: Sweden
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
Perhaps you haven't told the kernel what partition to mount as root partition?

Here's an example of a lilo.conf

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdb1
label = Linux
# End Linux section

Now, this assumes your kernel is /boot/vmlinuz and that it's on /dev/hdb1. You should change those two to fit your system.
Old 04-24-2004, 01:21 PM   #4
LQ Newbie
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
using grub
so grub.conf reads

title Red Hat Linux (2.6.4)
root (hd0,5)
kernel /vmlinuz-2.6.4 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.6.4.img


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:29 PM.

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