Re: [LIP] 2.6.1-"kernel panic: init not found"
Abhishek SINHA <aby_sinha-/[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
I dont think this is the right list, but anyways here is what i think should help! i think your root disk is on ext3, by default the root disk with ext2 is recognized.The initrd image that you are making should have ext3 modules in it mkinitrd --with=ext3 initrd<blah>.img 2.6.1(or whatever the kernel name appearing in lib/modules. You might get an error with this saying the module mbcache or something like that is not installed. if you get that ..just append "--builtin=mbcache" with the above commmand and use the same initrd that you created... Abhishek --- T Roy <troylinux-/[email protected]> 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=/ > 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 EXT2 and not > > EXT3. > Now, after 2.6.1 is loaded, i try this- > #depmod > which tells me that EXT3 requires JBD( which is also > a > MODULE and NOT BUILT-IN ). 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) > > My kernel compilation commands were- > ------------------------------------- > #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 same problem... > > help!!! > > ===== > Linux Kernel Consultant > Tel : 91-22-2754-6453/4226 > > __________________________________ > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing > online. > http://taxes.yahoo.com/filing.html > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and > Integration > See the breadth of Eclipse activity. February 3-5 in > Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > linux-india-programmers mailing list > linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/linux-india-programmers __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn