LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-01-2004, 07:44 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Kernel Panic: No Init Found


I just installed Kernel 2.6.3 on Mandrake 9.2 and I get the error:
Kernel Panic: No Init Found. Try passing init=option to kernel.

I ran mkinitrd /boot/initrd-2.6.3.img 2.6.3

How do I know if that correctly made the ram disk?

My other kernel still boots ok.

I notice that the ram disk for
initrd-2.4.22-10mdk.img is 302K
and the one for
initrd-2.6.3.img is 75k, is that a problem?

How do i get it to load the ram disk?

Thanks in advance.
 
Old 03-01-2004, 08:50 AM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Check the options for each kernel in grub/lilo. Make sure that your new kernel is flagged as a ramdisk in the same way that the old one is.
You may need to do as it suggests, and pass an "init=<initlocation>" to the kernel.

--Rounan
 
Old 03-01-2004, 10:36 AM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Tried that, lilo.conf looks ok.

I used the commands
mkinitrd initrd-2.6.3.img 2.6.3
cp initrd-2.6.3.img /boot
cp /usr/src/linux-2.6.3/arch/i386/boot/bzImage /boot/vmlinuz-2.6.3
vi /etc/lilo.conf
lilo -v

/etc/lilo.conf
.
.
.
image=/boot/vmlinuz-2.6.3
label="263"
root=/dev/hda1
initrd=/boot/initrd-2.6.3.img
read-only
.
.
.
.


/etc/fstab
/dev/hda1 / ext3 defaults 1 1
/dev/hda6 /home ext3 defaults 1 2
.
.
.

Why wont this boot? I am running an AMD duron processor.

Thanks in advance.
 
Old 03-01-2004, 10:58 AM   #4
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Silly question:
Did you include initrd support in the kernel? There's an option, I believe in file systems.

--Rounan
 
Old 03-01-2004, 12:15 PM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
uhhhh

Is it enabled by default?
 
Old 03-01-2004, 12:16 PM   #6
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
*chuckle* maybe not.
Check it out in your config, recompile if necessary.
 
Old 03-01-2004, 02:18 PM   #7
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
I didnt see it, do you happen to know exactly what it is listed under?
 
Old 03-01-2004, 02:38 PM   #8
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Device drivers -> Block devices -> initrd support
 
Old 03-01-2004, 02:58 PM   #9
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Thanks.

What is the config file called and where is it located?
 
Old 03-01-2004, 03:10 PM   #10
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
the kernel config file - you did compile your own kernel?
Hrmmm.... now that I look back, you never said that. Me and my assumptions.
If you didn't compile it yourself, you don't need to worry about this - it wouldn't be a problem in a stock kernel.

If you did compile it, you need to make sure that you've selected the initrd option as I described when you type make menuconfig

--Rounan
 
Old 03-06-2004, 09:40 AM   #11
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
try deleitng the line 'initrd=/boot/initrd-2.6.3.img' from your lilo.conf file
 
  


Reply



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: No init found. Try passing init= option to kernel ridak Fedora 0 07-14-2004 07:23 PM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-18-2004 11:10 PM
Kernel Panic: No Init Found Try Passing Init=option To Kernel Bakame Mandriva 7 03-14-2004 02:37 PM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 10:18 PM
Compiled own kernel and got: Kernel panic: No init found. Try passing init= option to fbl Linux - General 12 01-14-2003 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:13 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
Open Source Consulting | Domain Registration