Kernel panic and VFS error with new kernel on debian
Hi!
I have a debian installed on my pc with kernel 2.6.18-5-686
I want to set up an "npad" server on my PC, and according to description
the kernel from distribution is not good for it.
I donwloaded a kernel (2.6.18 from kernel.org, i compiled it without errors, but during booting I had this error:
"VFS: Cannot open root device "hda1" or unknown-block(0,0) Please append a correct "root=" boot option;
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"
Till then I have read a lot of forums, but can not find the solution!
At first with "make menuconfig" I switched almost everything from 'M' to '*', because I thought that some drivers are not statically in the kernel, but in modules, but the error remained the same...
After I tried to make an initrd with mkinitramfs! first I left default config in
/etc/initramfs-tools....
I used command: mknitramfs -k -o ramdiszk
I copied the created ramdiszk file to /boot
my menu.lst:
title Debian GNU/Linux, kernel 2.6.18-5-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-5-686 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18-5-686
savedefault
title test
root (hd0,0)
kernel /boot/vmlinuz-2.6.18 root=/dev/hda1
initrd /boot/ramdiszk
The result when boot:
"FATAL: Could not load /lib/modules/2.6.18/modules.dep: No such file or directory
Done.
Begin: Waiting for root file system......"
After this I booted with working kernel, and see what modules used in it with "lsmod", then put this module names into /etc/initramfs-tools/modules, and made ramdiszk again!
The result was the same again...
Another info: when booting with working kernel, I checked /lib/modules/2.6.18/modules.dep, and it is existing.
Can anybody help me?
thanks in advance
Andras
|