On 5/2/06, Rony ronbillypop@yahoo.co.uk wrote:
Hello All,
I just compiled the latest kernel 2.6.16.11 from source and its created a vmlinuz-2.6.16.11 file along with a link vmlinux in the /boot folder. Since 'make bzImage' only creates a kernel image, the 'make install' was used finally to get it into the boot folder for grub.
You'll need to do 'make modules_install' to install the new kernel modules too.
In grub's menu.lst, I configured the kernel as /boot/vmlinuz and root=/dev/hdan where n is my partition and its the same entry as in my existing kernel entry. The image entry is #shed as there was no img created. When I boot into the new kernel, after a series of initial text, it gives a kernel panic at the root= entry. Its the same as before so why can't it mount the VFS on that partition? It cannot recognise hdan. (n is a number)
Are you sure you compiled ide-disk into the kernel? If not and if the earlier modules_install is also not done then its possible thatyour disk is not found.
Also, you need to compile your primary filesystem driver into the kernel. If your root filesystem is reiserfs for example then reiserfs should be compiled into the kernel.
And then you have a different set of problems if you're using a ramdisk (initrd).
You can still boot with your old kernel though. when faced with the grub menu press 'c' to go into grub shell. The execute the following commands (I've assumed you're using hda5 i.e. grub disk (hd0,4) and your old kernel is vmlinuz 2.6.1):
-------------- # Specify the root partition root (hd0,4)
# specify kernel location. TAB will give you an autocomplete list kernel /boot/vmlinuz-2.6.1 root=/dev/hda5 ro
#boot the kernel boot --------------------
Again, if your distro uses initrd then before 'boot' you need to specify the initrd image location with 'initrd <image location>'
Refer to the grub manual online to know more about the options.
Siddhesh