Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > modprobe: FATAL: Could not load

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-29-2009   #1 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 2
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
fmnovais_br is offline  


Reply With Quote
Old 06-29-2009   #2 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,540
Does the directory /usr/lib/modules/2.6.27.9-vortex86dx exist when the system is booting up? That's where the modules.dep file has to reside, along with a lot of other cruft.
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is offline   Reply With Quote
Old 06-29-2009   #3 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 2
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....
fmnovais_br is offline   Reply With Quote
Old 06-29-2009   #4 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,540
Sorry, but I just reached the limit of my kernel building knowledge. Perhaps another reader here can help?
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 07:00 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2