LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-27-2015, 08:21 AM   #1
MCLee
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Rep: Reputation: Disabled
What does kernel refer to load modules at boot time/


lsmod is command to list loaded modules and I referred man page of lsmod that shows it refers to /proc/modules file. In terms of my os platform, Ubuntu, almost available modules are in /lib/module directory. I think OS kernel naturally loads modules in there. So, What does kernel refer to load modules at boot time?

Is there any files to be refereed for loading or mechanism can't know easily for end user?
 
Old 02-27-2015, 08:30 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Looks like this is relevant for Ubuntu.
 
Old 02-27-2015, 12:29 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Modules needed during boot come from the initrd that the boot loader loads along with the kernel. You will find it in the /boot directory along with the kernel image(s). The initrd is a compressed cpio archive. You can decompress it and look inside if you like.
 
Old 02-27-2015, 02:22 PM   #4
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
The initial ramdisk is needed for early boot: Disk controller, filesystems, everything the kernel needs to access the root filesystem. Other modules are in /lib/modules/<version>. The udev service is running to query hardware, trigger events for the kernel to load the appropriate modules, and watch for hotplugging events.
 
Old 02-27-2015, 02:49 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Old school wise, the /etc/modules file can contain a list of modules to load at boot time (really old school if it's /etc/conf.modules). But it's not generally populated these days. There are /etc/modprobe.d/*.conf files that can setup some things, and blacklist modules that it doesn't want loaded. Many modules load when you try to use them, like restoring mixer settings or by udev / systemd. Also note that some modules will not show up in lsmod if they were compiled into the kernel. And some modules will have entries in the ps output, but the name of the process doesn't always match the module name that uses or lauches that process.
 
  


Reply

Tags
kernel, module



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
How to determine and remove modules load at kernel boot? Zyndarius Debian 3 07-17-2009 12:19 PM
How to load modules to kernel at boot newtovanilla Linux - Newbie 6 04-30-2008 10:48 PM
How to load modules (with parameters) at boot time? Akhran Debian 5 10-25-2006 12:20 PM
modules dont load at boot time killer_bunny Linux - General 1 12-23-2003 10:59 PM
kernel modules loaded at boot time gusgorman Slackware 10 04-14-2003 10:45 AM

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

All times are GMT -5. The time now is 04:07 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
Open Source Consulting | Domain Registration