Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 06-22-2004, 08:33 PM   #1
Registered: Jun 2004
Location: Cleveland, Ohio, USA
Distribution: LFS
Posts: 35

Rep: Reputation: 15
loading modules at boot

I recently finished building an LFS system. I followed the instructions in LFS-5.1 as closely as I could. Now that it boots and everything I wanted to try using a modular setup. I wanted to load certain modules at boot but I can't seem to get this to work like I think it should. A couple of options look like they would work but neither seem to do anything.

First I tried putting symlinks to the modules in question in the /lib/modules/boot directory.

Then I tried putting the names of the modules in a text file called modules in the /etc directory.

Neither method seems to do anything. Once I've logged in as root I run lsmod and those modules are not present.
Old 06-23-2004, 05:13 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Have you tried using a bootscript to load the modules?

modprobe $MODULE

The book describes how the bootscripts work.
Old 06-23-2004, 10:38 PM   #3
Registered: Jun 2004
Location: Cleveland, Ohio, USA
Distribution: LFS
Posts: 35

Original Poster
Rep: Reputation: 15
Well, I was hoping I wouldn't have to do it that way. Maybe I'm being stupid but I didn't really want to mess around with the boot scripts just yet.
Old 06-25-2004, 12:19 AM   #4
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
for loading modules where the file is doesn't really matter
i will give you step by step since you feel uncomfortable
i created a file


# Initialize Modules

modprobe  someModule
modprobe  anotherModule

chmod 755 /etc/rc.d/init.d/modules
then at the bottom of /etc/rc.d/init.d/rc

just put
that's it
everything is copasetic now

might help to have a /etc/modules.conf file
you can try to generate one if you don't have one at all with(as root)
cd /etc
modprobe -c >modules.conf

this will hopefully create a beginning to a working file that will need editing
(you can also try useing the one from your starting OS if the kernel version is simmilar)
or you can leave it out and see how you do without it


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
No Modules loading at boot. mpyusko Slackware 11 09-25-2006 03:39 PM
Loading modules at boot paddyjoy Linux - Newbie 2 06-27-2005 09:23 PM
Loading kernel modules during boot. alexeyak Fedora 4 12-20-2004 09:04 AM
loading modules at boot qanopus Linux - General 2 11-29-2002 04:16 AM
Loading kernel modules at boot burk Linux - General 7 06-10-2002 07:28 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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