LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   modprobe: FATAL: Could not load (https://www.linuxquestions.org/questions/linux-newbie-8/modprobe-fatal-could-not-load-736202/)

fmnovais_br 06-28-2009 09:34 AM

modprobe: FATAL: Could not load
 
Hello,

I am building a distro based in debian. But I'm having problems with
load linux.
I made a rootfs, I compiled the kernel, and I installed GRUB on CF.
But when kernel is loading it gave a string:

modprobe: FATAL: Could not load /lib/modules/<version>/modules.dep: No such file or directory
But the path is in rootfs.

I follow the steps to compile kernel:
sudo make menuconfig
sudo make
sudo make modules_install
sudo cp .config /boot/config-2.6.27.9-vortex86dx
sudo cp System.map /boot/System.map-2.6.27.9-vortex86dx
sudo cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.27.9
mkinitramfs -o /boot/initrd.img-2.6.27.9-vortex86dx 2.6.27.9-vortex86dx

After this I installed the GRUB and cofig the menu.lst like that:
default 0
timeout 5


title LINUX
root (hd0,1)
kernel (hd0,0)/boot/vmlinuz-2.6.27.9 root=/dev/hdc2 ro vga=792
initrd (hd0,0)/boot/initrd.img-2.6.27.9-vortex86dx
quiet


Now I dont know if the problem is in the configuration GRUB
or something wrong in the command mkinitramfs.


Thank you for help

jdkaye 06-29-2009 02:20 AM

Do you actually have the file called "modules.dep" here? /lib/modules/2.6.27.9-vortex86dx/modules.dep
Quote:

But the path is in rootfs
What path, exactly?
jdk

fmnovais_br 06-29-2009 07:17 AM

mkinitramfs how to use?
 
Actually, I dont know how to use mkinitramfs.
I run mkinitramfs -o /boot/initrd.img-2.6.27.9-vortex86dx 2.6.27.9-vortex86dx
but he used the conf of my host(ubuntu). So searching in "/lib/modules/2.6.28-13-generic/modules.dep".

How do I create a initrd for my distro?

I elaborate a Root File System and put on partition different of the boot partition.

When the Linux finishes it search a init program, but it could because didn't load the modules of kernel. ( it is right ? ).

Thank you for help....


All times are GMT -5. The time now is 04:26 PM.