LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-17-2008, 08:57 AM   #1
anuj.d@tcs.com
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Rep: Reputation: 0
Unhappy modprobe: FATAL: Could not load.....modules.dep


During the boot with my new upgraded kernel I get these messages 2 times

modprobe: FATAL: Could not load /lib/modules/2.6.14-pne/modules.dep: No such file or directory

After that, the system boots fine and everything works normally.

I just want to know why this error comes , and how can I resolve it?

Last edited by anuj.d@tcs.com; 10-17-2008 at 09:21 AM.
 
Old 10-17-2008, 09:29 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Run
Code:
depmod -a
to create the missing modules.dep.
The error is most likely produced by a startup script trying to find if there are any new modules installed.
 
Old 10-17-2008, 09:57 AM   #3
anuj.d@tcs.com
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Run
Code:
depmod -a
to create the missing modules.dep.
The error is most likely produced by a startup script trying to find if there are any new modules installed.

After booting have checked the file modules.dep at required location, the file(modules.dep)is already exist there.

I have done some investigation here but not sure it is right or not;

modules.dep file is created by rc.modules at run time using code

# If the modules.dep file does not exist, generate it in the default
# location.
if test ! -f ${MODULES_DEP}; then
/sbin/depmod
fi
fi

in next step rc.modules execces this modules.dep file in loading modules.

# Load modules in /etc/modules
if test -f /etc/modules; then
modules=`grep -E "^[[:alnum:]][[: print:]]+$" /etc/modules`
for mod in ${modules}; do
/sbin/modprobe ${mod}
done
fi

can it possible that /sbin/modprobe trying to access this modules.dep file before succesfully executing /sbin/depmod ?

Last edited by anuj.d@tcs.com; 10-17-2008 at 10:06 AM.
 
Old 10-18-2008, 08:56 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
can it possible that /sbin/modprobe trying to access this modules.dep file before succesfully executing /sbin/depmod ?
First of all modules.dep should always exist and second the commands in shell scripts are executed in the order they are encountered. Maybe the grep command in the modprobe part gives wrong output. What gives:
Code:
uname -r
 
Old 10-20-2008, 07:27 AM   #5
anuj.d@tcs.com
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
First of all modules.dep should always exist and second the commands in shell scripts are executed in the order they are encountered. Maybe the grep command in the modprobe part gives wrong output. What gives:
Code:
uname -r
Have executed manually 'grep -E "^[[:alnum:]][[rint:]]+$" /etc/modules' it is working fine but here it is showing nothing because all modules in /etc/modules are commnted.

cat /etc/modules
#e1000
#ipv6
#ip_tables
#ip6_tables
#uhci-hcd
#280fbs
#mtdchar

the output for the 'uname' -r is '2.6.14-pne'.
 
Old 10-20-2008, 07:46 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
So what modules are loaded at boot time? What gives?
Code:
lsmod
Put a echo before the modprobe command to see which module fails:
Code:
if test -f /etc/modules; then
modules=`grep -E "^[[:alnum:]][[: print:]]+$" /etc/modules`
for mod in ${modules}; do
echo ${mod}
/sbin/modprobe ${mod}
done
fi

Last edited by bathory; 10-20-2008 at 08:39 AM.
 
Old 10-21-2008, 09:02 AM   #7
anuj.d@tcs.com
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
So what modules are loaded at boot time? What gives?
Code:
lsmod
Put a echo before the modprobe command to see which module fails:
Code:
if test -f /etc/modules; then
modules=`grep -E "^[[:alnum:]][[: print:]]+$" /etc/modules`
for mod in ${modules}; do
echo ${mod}
/sbin/modprobe ${mod}
done
fi

I have introduce some print logs in rc.modules and found that error comes before executing rc.modules.

below are the logs for the same

Unmounting /sys
Unmounting /proc
mounting FS type proc on /proc
Unmounting /proc
mounting FS type selinuxfs on /selinux/
modprobe: FATAL: Could not load /lib/modules/2.6.14-pne/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.14-pne/modules.dep: No such file or directory


INIT: version 2.85 booting
mounting FS type proc on /proc
mounting FS type sysfs on /sys
Entring in rc.modules
Creating modules.dep
File has been Created
I am going to show the modules.dep file
cat /lib/modules/2.6.14-pne/modules.dep
Loading, please wait...
Modules loaded

mounting FS type tmpfs on /dev
mounting FS type tmpfs on /dev/shm
Starting hardware event daemon:[ OK ]
Creating initial udev device nodes:[ OK ]
Exit from rc.modules

Last edited by anuj.d@tcs.com; 10-21-2008 at 09:12 AM.
 
Old 10-21-2008, 09:05 AM   #8
anuj.d@tcs.com
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Nullxxxxxxxx

Last edited by anuj.d@tcs.com; 10-21-2008 at 09:10 AM.
 
Old 10-21-2008, 09:06 AM   #9
anuj.d@tcs.com
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Is there any script wchich access modules.dep before executing rc.modules at boot time?

Last edited by anuj.d@tcs.com; 10-21-2008 at 09:12 AM.
 
Old 10-21-2008, 09:16 AM   #10
anuj.d@tcs.com
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
So what modules are loaded at boot time? What gives?
Code:
lsmod
[/CODE]
output of 'lsmode' is :-
Module Size Used by
softdog 7188 0
tipc 194664 58
pmemfs 26028 1
linux_user_bde 18892 0
linux_kernel_bde 27512 1 linux_user_bde
fault 35036 0
vmc 76096 2 fault,[permanent]
ipmibus 5760 1 vmc
ipmi_si 40400 3
ipmi_devintf 9960 6
ipmi_msghandler 57404 3 vmc,ipmi_si,ipmi_devintf
 
Old 10-21-2008, 09:26 AM   #11
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
Unmounting /proc
mounting FS type proc on /proc
Unmounting /proc
mounting FS type selinuxfs on /selinux/
modprobe: FATAL: Could not load /lib/modules/2.6.14-pne/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.14-pne/modules.dep: No such file or directory

INIT: version 2.85 booting
mounting FS type proc on /proc
So that is because of unmounting /proc before loading modules, so /proc/modules cannot be created. Find where (and why) /proc is unnmounting for 2nd time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
modprobe: FATAL: Could not load /lib/modules/.../modules.dep Ankardo Debian 9 02-01-2011 05:09 PM
modprobe fatal could not load lib/modules.... raport Linux - Software 2 09-13-2006 12:36 AM
FATAL: Could not load /lib/modules/2.6.14-default/modules.dep no such file exist dr_zayus69 Linux - Software 3 12-26-2005 06:44 PM
FATAL: could not load /lib/modules/2.6.1/modules.dep Fr33B33R Slackware 3 01-12-2004 05:40 AM
modprobe can't find modules.dep rioguia Linux - Hardware 2 12-06-2002 12:05 AM


All times are GMT -5. The time now is 01:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration