Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-27-2015, 09:21 AM   #1
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, 09:30 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,964

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Looks like this is relevant for Ubuntu.
Old 02-27-2015, 01:29 PM   #3
Senior Member
Registered: Aug 2009
Distribution: CentOS
Posts: 3,585

Rep: Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569
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, 03:22 PM   #4
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 285

Rep: Reputation: 89
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, 03:49 PM   #5
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 3,307
Blog Entries: 1

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
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.


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

All times are GMT -5. The time now is 05:40 AM.

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