Re: recomiling the kernel

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

 



so usp wrote:

Hi,

I recently tried to recompile the kernel on my Fedora
Core 2, but when I boot using the new one I get the
following message: "kernel panic: no init found. Try..."
I used the source from the FC2, and executed the
following commands:
# ln -s linux-2.... linux
# cp /boot/config... /usr/src/linux/.config
# make oldconfig
# make
# make modules_install
# cp arch/i386/boot/bzImage /boot
# vi /etc/grub.conf Here I let my grub.conf as the following:


default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/
rhgb quiet
initrd /initrd-2.6.5-1.358.img
title Fedora Core Modified
root (hd0,0)
kernel /bzImage ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img




If you copied the kernel image into boot without renaming it then "kernel /vmlinuz-2.6.5-1.358" should be "kernel /bzImage". Perhaps you should rename bzImage to something more informative. Also, where is your root partition located? For example if your root is located on /dev/hdc3 then ro root=/dev/hdc3

-Bill




-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux