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 12-24-2009, 11:59 AM   #1
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Rep: Reputation: 31
Question about modprobe


Hello.
As I see in man, modprobe inseret some modul to the kernel, right?
WHen I restart my computar, is this modul still insert in the kernel?
 
Old 12-24-2009, 12:07 PM   #2
AsusDave
Member
 
Registered: Jul 2008
Distribution: Debian, Ubuntu 10.04
Posts: 151

Rep: Reputation: 34
Yes, or at least in all the distros I have used. It should load the module you added at boot.

HTH
Dave
 
Old 12-24-2009, 12:44 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If you insert a module manually with modprobe and you subsequently reboot, I don't think the module will still be loaded. If you want to load modules at boot, your distro should have an init script or something for this (I only really have experience with Slackware, so can't help here).
 
Old 12-24-2009, 04:39 PM   #4
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
So, somebody knows where I have to add it for debian?
 
Old 12-24-2009, 04:44 PM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by miros84 View Post
So, somebody knows where I have to add it for debian?
You can list them in /etc/modules

Code:
man 5 modules
Cheers,

Evo2.
 
Old 12-24-2009, 05:03 PM   #6
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
In the folder modules, I have files. So, do I need to add modprobe to some text file to be load some modul every time, I start on my computar? If so, which file is it?
 
Old 12-24-2009, 05:29 PM   #7
dijmat
LQ Newbie
 
Registered: Sep 2009
Location: 127.0.0.1
Distribution: RHEL5,Ubuntu9.10,CentOS5.4
Posts: 12

Rep: Reputation: 0
if understand correctly this matter,..

in Ubuntu & RHEL5 i put modprobe in /etc/rc.local.
for Ubuntu i need to add a sudo before modprobe command line.

kernel read the rc.local in every boot.

thanks.
 
Old 12-24-2009, 06:28 PM   #8
elsheepo
Member
 
Registered: Feb 2008
Location: Los Angeles
Distribution: Slackware-current
Posts: 84

Rep: Reputation: 19
modprobe, once invoked to insert a module, creates a listing in /etc/modules and should load the module automatically during your next boot.
 
Old 12-25-2009, 06:36 AM   #9
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Oo, I understund, I am sorry.
So, I have to add only the name of the module, right?
It is not need to add modprobe. Only the mod's name.
Right?
 
Old 12-25-2009, 06:53 AM   #10
dijmat
LQ Newbie
 
Registered: Sep 2009
Location: 127.0.0.1
Distribution: RHEL5,Ubuntu9.10,CentOS5.4
Posts: 12

Rep: Reputation: 0
where is the name of the module i needed?
what type of module i needed?

(I'm learning new topics from this topic)

Thanks.
 
Old 12-26-2009, 03:52 AM   #11
unev_21
Member
 
Registered: Mar 2009
Distribution: Ubuntu
Posts: 51

Rep: Reputation: 16
try '/etc/modules' file..
It has the list of modules to load at boot time
 
Old 12-26-2009, 04:16 AM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by dijmat View Post
in Ubuntu & RHEL5 i put modprobe in /etc/rc.local.
for Ubuntu i need to add a sudo before modprobe command line.

kernel read the rc.local in every boot.
If you were doing it from /etc/rc.local (probably not the the best way) then you should (TM) not need sudo, even on ubuntu; during boot /etc/rc.local is run as root.

It is not the kernel but the init process that runs the /etc/init.d/rc script that runs the /etc/rc.local script during boot.
 
1 members found this post helpful.
Old 12-27-2009, 07:33 PM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by miros84 View Post
Oo, I understund, I am sorry.
So, I have to add only the name of the module, right?
It is not need to add modprobe. Only the mod's name.
Right?
Correct.

Cheers,

EVo2.
 
1 members found this post helpful.
Old 12-28-2009, 02:53 AM   #14
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Thanks!
 
  


Reply


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
modprobe question greplinux Linux - Newbie 2 04-09-2009 02:00 AM
modprobe / modinfo question jeff_k Linux - General 1 02-09-2008 05:03 AM
modprobe question ethyrdude Debian 2 11-17-2006 05:52 PM
Need to un-modprobe question jbuckley2004 Linux - General 2 01-25-2006 04:01 PM
modprobe question littleking Slackware 8 12-04-2003 01:15 PM


All times are GMT -5. The time now is 04:16 PM.

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