Click to See Complete Forum and Search --> : kernel panic after recompile


el Muerté
01-22-2004, 11:30 PM
ok i have fedora core 1, i recompiled the kernel because i need need need wireless support (and some other stuff was handy too :D ), anyway i compiled successfully according to several of the kernel compile guides right here on justlinux, anyway i rebooted and got a kernel panic... the kernel loaded fine, but when the time came to mount it on my hard drive, it gave me an error involving my hard drive. it said something about an invalid init= option, even though i modified grub.conf and made the init line the same as for the original kernel, something involving the word LABEL= right after the init=.
then i tried doing the make install to have it configure it automatically, it added another line to grub.conf but gives the same error when booting.
did i miss an option in teh kernel config, or is there something wrong with grub?
thanks in advance for the help.

JohnT
01-22-2004, 11:43 PM
Change the part that reads "Label=/" to your actual root directory(/dev/hdaX-with X being your actual root partition)

el Muerté
01-23-2004, 12:20 AM
i did... i tried both ways, and it still didn't work

JohnT
01-23-2004, 12:33 AM
Has the name of your kernel changed from your original one listed in GRUB?

mdwatts
01-23-2004, 08:56 AM
Originally posted by el Muerté
i did... i tried both ways, and it still didn't work

Could you please post an example so we can see what you have tried. Perhaps you made a slight error.


made the init line the same as for the original kernel,


You are using the same initrd (initial ramdisk) as the one from the previous kernel? If so, you need to create a new initrd for the kernel you just compiled.

mkinitrd

Redhat has documentation on their site that explains creating a initrd.

el Muerté
01-24-2004, 02:32 AM
well... i got it working, now running 2.6.1 :D
had hda5 instead of hda6 in grub.conf :rolleyes: for some reason my linux partition was labelled hda6 although it should have been hda5 based on my existing partitions
anyways thanks for the help... you guys are great. now i just gotta figure out how to set up my wireless card... :mad: