LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Kernel Panic: No Init Found (https://www.linuxquestions.org/questions/mandriva-30/kernel-panic-no-init-found-152169/)

abefroman 03-01-2004 07:44 AM

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.
:newbie:

Rounan 03-01-2004 08:50 AM

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

abefroman 03-01-2004 10:36 AM

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.

Rounan 03-01-2004 10:58 AM

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

--Rounan

abefroman 03-01-2004 12:15 PM

uhhhh

Is it enabled by default?

Rounan 03-01-2004 12:16 PM

*chuckle* maybe not.
Check it out in your config, recompile if necessary. ;)

abefroman 03-01-2004 02:18 PM

I didnt see it, do you happen to know exactly what it is listed under?

Rounan 03-01-2004 02:38 PM

Device drivers -> Block devices -> initrd support

abefroman 03-01-2004 02:58 PM

Thanks.

What is the config file called and where is it located?

Rounan 03-01-2004 03:10 PM

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

Santas 03-06-2004 09:40 AM

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


All times are GMT -5. The time now is 08:41 AM.