LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-16-2012, 12:33 AM   #1
beparas
Member
 
Registered: Nov 2006
Location: Pune
Posts: 34

Rep: Reputation: 0
Linux module booting sequence


When Linux OS boots, kernel reads the "/etc/modules" file (On Ubuntu) and loaded the modules listed in it. On my system the "modules" file contains only two entries,

cat /etc/modules

lp,

rtc

But when I run 'lsmod' command, it shows me numbers of modules loaded, many of them are not present in 'modules' file. My question is

Form where the kernel get the list of loading modules.?

How the Kernel decided the sequences of module loading. means which module load first, second, third... etc.
 
Old 07-16-2012, 02:09 PM   #2
dmdeb
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian
Posts: 45

Rep: Reputation: 6
Quote:
Originally Posted by beparas View Post
When Linux OS boots, kernel reads the "/etc/modules" file (On Ubuntu) and loaded the modules listed in it. On my system the "modules" file contains only two entries,

cat /etc/modules

lp,

rtc

But when I run 'lsmod' command, it shows me numbers of modules loaded, many of them are not present in 'modules' file. My question is

Form where the kernel get the list of loading modules.?

How the Kernel decided the sequences of module loading. means which module load first, second, third... etc.
Hi beparas,

there are several mechanisms that are responsible for modules being loaded. A major one (on most modern linux systems) is udev, which detects devices and loads the respective modules automatically. Another reason for modules being loaded are dependencies as specified under /lib/modules/*/modules.dep (at least in Debian). The file /etc/modules allows you to enforce the loading of additional modules - therefore, it is usually much shorter than your lsmod output.

If there's something in your lsmod output that you'd prefer not to be loaded, you can try to blacklist it (/etc/modprobe.d/blacklist.conf in the Debian family).

Regards
dmdeb
 
  


Reply

Tags
linux module


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
booting sequence of graphical mode in linux davender84 Linux - General 1 04-24-2009 02:31 AM
how to change booting sequence at linux? montyleesam Linux - Software 3 01-23-2009 02:21 AM
Linux Booting Sequence Help. ranjeet_badhe Linux - Newbie 8 05-25-2006 09:50 PM
Booting Sequence Nilesh.Shah Linux - Newbie 2 05-30-2005 02:51 AM
How to change module loading sequence? benk Fedora 1 07-09-2004 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration