Re: Kernel Panic - no init found...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mkinitrd /boot/initrd.2.6.0.img 2.6.0

if ur using lilo as boot loader edit /etc/lilo.con and add initrd=/boot/initrd.2.6.0.img for ur new kernel


The way I understand this is

mkinitrd /boot/initrd.2.6.0.img 2.6.0

create a initrd image based on the /lib/modules directory, which I did manually last night but got the same error, which prompted me to dig deeper with "make install" as a solution


When I run make install, the image gets created based in the /lib/modules directory
You can see the image gets created, files and listing below


A quick read here seems to offer a solution
http://www.redhat.com/archives/fedora-list/2004-November/msg03120.html
but somehow Im missing something

Thanks!

##########################################
Here is my /etc/grub.conf

default=0
timeout=60
splashimage=(hd0,0)/grub/splash.xpm.gz

title Red Hat Enterprise Linux ES (2.4.28)
   root (hd0,0)
   kernel /vmlinuz-2.4.28 ro root=LABEL=/
   initrd /initrd-2.4.28.img

title Red Hat Enterprise Linux ES (2.4.21-4.EL)
   root (hd0,0)
   kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
   initrd /initrd-2.4.21-4.EL.img
#########################################################################

here  are the pertinent  /boot/files
-rw-r--r--    1 root     root         1263 Dec  7 11:18 bootlist.txt
-rw-r--r--    1 root     root        48022 Oct  3  2003 config-2.4.21-4.EL

-rw-r--r-- 1 root root 166680 Nov 11 22:30 initrd-2.4.21-4.EL.img
-rw-r--r-- 1 root root 90019 Dec 7 10:40 initrd-2.4.28.img


lrwxrwxrwx 1 root root 22 Dec 7 10:44 System.map -> System.map-2.4.21-4.EL
-rw-r--r-- 1 root root 570887 Oct 3 2003 System.map-2.4.21-4.EL
-rw-r--r-- 1 root root 534275 Dec 7 10:40 System.map-2.4.28


-rwxr-xr-x 1 root root 2900380 Oct 3 2003 vmlinux-2.4.21-4.EL
lrwxrwxrwx 1 root root 14 Dec 7 10:40 vmlinuz -> vmlinuz-2.4.28
-rw-r--r-- 1 root root 1236945 Oct 3 2003 vmlinuz-2.4.21-4.EL
-rw-r--r-- 1 root root 1046898 Dec 7 10:40 vmlinuz-2.4.28


bala chandar wrote:

I think you need not install lilo or grub. boot the system with the
previsous kernel and then configure the grub and specify the root path
correctly in that.


On Tue, 7 Dec 2004 15:14:32 +0000 (GMT), Anish Mathew
<nedumannilanish@xxxxxxxxxxx> wrote:


hi bob
u need to create a ram disk image for ur new kernel.
if ur kernel version is 2.6.0
create the image using
mkinitrd /boot/initrd.2.6.0.img 2.6.0

if ur using lilo as boot loader edit /etc/lilo.con and add
initrd=/boot/initrd.2.6.0.img for ur new kernel
save and exit
run lilo -v to reinstall lilo.

anish.



Bob Metelsky <bobmetelsky@xxxxxxxxxxx> wrote:
Im having a difficult time implementing a new kernel

I do
bzip2 -dc linux-2.6.0.tar.bz2 | tar xvf -
make menuconfig
make bzImage
make modules
make modules_install
make install

Researching my error I found this
http://www.redhat.com/archives/fedora-list/2004-November/msg03120.html

"
2. Navigate through the menus: "Device Drivers -> Block Devices"
3. Enable "RAM disk support", and "Initial RAM disk (initrd) support"
4. Enable any other kernel stuff you want/need.
5. Run "make", then (as root) "make modules_install", and "make install"

The "make install" will create your initrd and add the appropriate
stanza in your /boot/grub/grub.conf.
make install
"
I do not run the original "make" but rather make bzImage

This does exactly that
the new kernel and image are copied to /boot
grub is "automagically" edited
but... I still end up with the "kernel panic no init found - Try
passing init= to kernel"

Any Ideas what i may be doing wrong?

Thanks
Bob

--
"Oracle error messages being what they are, do not
highlight the correct cause of fault, but will identify
some other error located close to where the real fault lies."

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

---------------------------------
Win a castle for NYE with your mates and Yahoo! Messenger



-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list







--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux