LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-13-2006, 06:10 PM   #1
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Blog Entries: 11

Rep: Reputation: 36
modules in kernel 2.6


I uderstand that with kernel 2.4 if you wanted to update the /etc/modules.conf file you went to the directory /etc/modutils and either edited a file there or added a short text file of your own, and then executed 'update-modules'. If you have a 2.6 kernel you add or change files in /etc/modprobe.d and then what? Do you run 'update-modules' and can you have both directories on your system? Is there a good page for this?
 
Old 11-13-2006, 08:04 PM   #2
petersum
Member
 
Registered: May 2006
Location: Karachi, Pakistan
Posts: 140

Rep: Reputation: 15
If you have a 2.6 kernel you add or change files in /etc/modprobe.d and then what?

Edit /etc/modprobe.conf adding "include /etc/modprobe.d/newfilename" line for each of your files.

Some people claim that simply adding "include /etc/modprobe.d" works, but not for me. It needs the full path/filename.
 
Old 11-13-2006, 08:43 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by radiodee1
I uderstand that with kernel 2.4 if you wanted to update the /etc/modules.conf file you went to the directory /etc/modutils and either edited a file there or added a short text file of your own, and then executed 'update-modules'. If you have a 2.6 kernel you add or change files in /etc/modprobe.d and then what? Do you run 'update-modules' and can you have both directories on your system? Is there a good page for this?

Don't know about any page where it is listed but when you add the file in the modprobe.d directory with a 2.6 kernel you need to do nothing else the file will be processed on boot and the options/settings in it will be used by modutils or if using modprobe to load the module these settings are used as well, also the two directories are on my system so apparently they co-exist without problems.
 
Old 11-14-2006, 09:34 AM   #4
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
while we're on the subject, what does a line in one of those directories (files) that starts with the word 'alias' do? Just curious...
 
Old 11-14-2006, 09:54 AM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by radiodee1
while we're on the subject, what does a line in one of those directories (files) that starts with the word 'alias' do? Just curious...
It tells the system which module is to be used for a device or you can use this for instance if you have two network cards and want to control which gets detected as the first one you use something like alias eth0 via-rhine and alias eth1 3c95x in a file, this tells the system the via-rhine is to be eth0 regardless of how the system finds the cards on boot.
 
  


Reply



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
kernel: No module symbols loaded - kernel modules not enabled. Qucho Debian 9 05-26-2004 02:50 AM
Kernel Modules and modules.conf init Linux - General 0 02-20-2004 06:51 PM
new kernel (2.4.22 up from 2.4.20-6) - missing modules - use old modules? Simon Bridge Linux - Software 1 02-04-2004 05:52 AM
How to keep modules/drivers across kernel recompiles and kernel versions? Pisces107 Linux - General 5 01-21-2004 08:29 PM
Kernel modules: why are some kernel modules zipped? hampel Slackware 3 06-30-2003 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:54 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