* 2.6.1-"kernel panic: init not found"
@ 2004-02-09 3:28 Trideepraj Roychoudhury
2004-02-09 3:47 ` Darren Williams
0 siblings, 1 reply; 2+ messages in thread
From: Trideepraj Roychoudhury @ 2004-02-09 3:28 UTC (permalink / raw)
To: linux-kernel
Hi,
I installed the 2.6.1 kernel and having problems with
initrd. My GRUB.CONF looks like this-
<<<truncated>>>
title Linux(2.6.1)
root (hd0,4)
kernel /boot/vmlinuz-2.6.1 ro root=LABEL=/
initrd /boot/initrd-2.6.1.img
title RedHat Linux(2.4.20-8)
root (hd0,4)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img
<<<truncated>>>
2.4.20-8 is the kernel installed by RH 9.0 and works
fine. 2.6.1 is what i compiled from source and gives
me problem with initrd saying -
"kernel panic: no init found. try passing init= option
to kernel"
I understand that there is no problem with the kernel
but with the initrd file.
Linux is on /dev/hda5 with EXT3 fs and has NO BOOT
partition. In 2.4.20-8 i can see EXT3 loading as a
module while booting, but in 2.6 EXT3 loading fails
with this -
"mount: error 19 on loading ext3"
_________________________________
When i remove the initrd line from GRUB.CONF i.e. -
<<<truncated>>>
title Linux(2.6.1)
root (hd0,4)
kernel /boot/vmlinuz-2.6.1 ro root=LABEL=/
title RedHat Linux(2.4.20-8)
root (hd0,4)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img
<<<truncated>>>
2.6.1 loads completely without the module support...so
i see that /dev/hda5 is mounted as '/' with fs EXT2
and not EXT3.
Now, after 2.6.1 is loaded, i try this-
#depmod
which tells me that EXT3 requires JBD. After manually
'insmod jbd.ko' and 'insmod ext3.ko' EXT3 module
loads.
So my problem is that during boot EXT3 isnt getting
loaded due to JBD and hence kernel cannot load initrd
from /boot/initrd-2.6.1.img( which is on EXT3 fs)
This is how i compile-
#mkdir /usr/src/build-2.6.1
#cd /usr/src/linux-2.6.1
#make O=/usr/src/build-2.6.1 menuconfig
#make O=/usr/src/build-2.6.1
#make O=/usr/src/build-2.6.1 modules_install
i even tried -
#mkinitrd /boot/System-2.6.1.map
/boot/initrd-2.6.1.img
but that fails too...
any help...?
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.6.1-"kernel panic: init not found"
2004-02-09 3:28 2.6.1-"kernel panic: init not found" Trideepraj Roychoudhury
@ 2004-02-09 3:47 ` Darren Williams
0 siblings, 0 replies; 2+ messages in thread
From: Darren Williams @ 2004-02-09 3:47 UTC (permalink / raw)
To: Trideepraj Roychoudhury; +Cc: Linux Kern
Hi Trideepraj
On Sun, 08 Feb 2004, Trideepraj Roychoudhury wrote:
> Hi,
> I installed the 2.6.1 kernel and having problems with
> initrd. My GRUB.CONF looks like this-
>
> <<<truncated>>>
>
> title Linux(2.6.1)
> root (hd0,4)
> kernel /boot/vmlinuz-2.6.1 ro root=LABEL=/
Replace ^^^^^^^
this with:
kernel /boot/vmlinuz-2.6.1 ro root=/your/root-dev
ie:
kernel /boot/vmlinuz-2.6.1 ro root=/dev/hda3
If this does not make sense then send me you /ets/fstab file
off line and I will send you the correct fix.
This is a problem I have had with RedHat for a long time.
Darren
> initrd /boot/initrd-2.6.1.img
>
> title RedHat Linux(2.4.20-8)
> root (hd0,4)
> kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
> initrd /boot/initrd-2.4.20-8.img
>
> <<<truncated>>>
>
> 2.4.20-8 is the kernel installed by RH 9.0 and works
> fine. 2.6.1 is what i compiled from source and gives
> me problem with initrd saying -
>
> "kernel panic: no init found. try passing init= option
> to kernel"
>
> I understand that there is no problem with the kernel
> but with the initrd file.
>
> Linux is on /dev/hda5 with EXT3 fs and has NO BOOT
> partition. In 2.4.20-8 i can see EXT3 loading as a
> module while booting, but in 2.6 EXT3 loading fails
> with this -
>
> "mount: error 19 on loading ext3"
>
> _________________________________
>
> When i remove the initrd line from GRUB.CONF i.e. -
>
> <<<truncated>>>
>
> title Linux(2.6.1)
> root (hd0,4)
> kernel /boot/vmlinuz-2.6.1 ro root=LABEL=/
>
> title RedHat Linux(2.4.20-8)
> root (hd0,4)
> kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
> initrd /boot/initrd-2.4.20-8.img
>
> <<<truncated>>>
>
> 2.6.1 loads completely without the module support...so
> i see that /dev/hda5 is mounted as '/' with fs EXT2
> and not EXT3.
> Now, after 2.6.1 is loaded, i try this-
> #depmod
> which tells me that EXT3 requires JBD. After manually
> 'insmod jbd.ko' and 'insmod ext3.ko' EXT3 module
> loads.
>
> So my problem is that during boot EXT3 isnt getting
> loaded due to JBD and hence kernel cannot load initrd
> from /boot/initrd-2.6.1.img( which is on EXT3 fs)
>
> This is how i compile-
> #mkdir /usr/src/build-2.6.1
> #cd /usr/src/linux-2.6.1
> #make O=/usr/src/build-2.6.1 menuconfig
> #make O=/usr/src/build-2.6.1
> #make O=/usr/src/build-2.6.1 modules_install
>
> i even tried -
> #mkinitrd /boot/System-2.6.1.map
> /boot/initrd-2.6.1.img
> but that fails too...
>
> any help...?
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--------------------------------------------------
Darren Williams <dsw AT gelato.unsw.edu.au>
Gelato@UNSW <www.gelato.unsw.edu.au>
--------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-09 3:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-09 3:28 2.6.1-"kernel panic: init not found" Trideepraj Roychoudhury
2004-02-09 3:47 ` Darren Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®