Click to See Complete Forum and Search --> : new kernel.. errors.. how to recomile??
dongmin
06-08-2004, 02:02 AM
i installed debian sarge then dist-up'ed to sid.. then i compiled the new kernel 2.6.6, but it gave me this error:
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)
i guess i didn't select the file system settings correctly when compiling the kernel..
how would i go about recompiling it?? i can still select the 2.4 at the grub menu that still works.. i need some advice especially in the lines of how to recompile, if it will write over the existing 2.6.6, and if not how i wiould remove the broken one...
thanks a bunch
XiaoKJ
06-08-2004, 03:02 AM
look into /usr/src to find the appropriate directory(linux-2.6.6) or something.
Change the link /usr/src/linux to point to the correct directory.
In console, move to /usr/src/linux... and trymake clean
make menuconfig
make && make modules_install
[mkinitrd]
Beware -- this will retain the original configs and thus the same problem may surface again...
Actually, your problem seems to be a familiar one with all others who use initrd -- please, before you do anything foolish, post your grub or lilo configfile...
dongmin
06-08-2004, 03:50 AM
there was no /grub/grub.conf.. but i believe this is the config file (menu.lst)
...
title Debian GNU/Linux, kernel 2.6.6
root (hd0,0)
kernel /vmlinuz-2.6.6 root=/dev/hda3 ro
savedefault
boot
title Debian GNU/Linux, kernel 2.6.6 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.6 root=/dev/hda3 ro single
savedefault
boot
title Debian GNU/Linux, kernel 2.4.25-1-386
root (hd0,0)
kernel /vmlinuz-2.4.25-1-386 root=/dev/hda3 ro
initrd /initrd.img-2.4.25-1-386
savedefault
boot
title Debian GNU/Linux, kernel 2.4.25-1-386 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.4.25-1-386 root=/dev/hda3 ro single
initrd /initrd.img-2.4.25-1-386
savedefault
boot
...
the error i got was:
VFS Cannot open root device "hda3" or unknown-block(0,0)
Please append a correct "root=" option.
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)
XiaoKJ
06-08-2004, 04:31 AM
Did you have initrd for the kernel you have?
if you have the initrd, then you should know the problem.
If you don't, did you get it as such or did you compile it?
If you compiled it, did you issue the command mkinitrd?
If you can answer all these questions please post a reply.
mdwatts
06-08-2004, 02:03 PM
See if the suggestions in these JL forum search results for 'VFS: unable mount root unknown-block' (http://justlinux.com/forum/search.php?s=&action=showresults&searchid=961858&sortby=lastpost&sortorder=descending) help as I've seen that 'unknown-block' error posted here many times recently.