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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-24-2009, 10:59 AM
|
#1
|
Member
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501
Rep:
|
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?
|
|
|
12-24-2009, 11:07 AM
|
#2
|
Member
Registered: Jul 2008
Distribution: Debian, Ubuntu 10.04
Posts: 151
Rep:
|
Yes, or at least in all the distros I have used. It should load the module you added at boot.
HTH
Dave
|
|
|
12-24-2009, 11:44 AM
|
#3
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
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).
|
|
|
12-24-2009, 03:39 PM
|
#4
|
Member
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501
Original Poster
Rep:
|
So, somebody knows where I have to add it for debian?
|
|
|
12-24-2009, 03:44 PM
|
#5
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by miros84
So, somebody knows where I have to add it for debian?
|
You can list them in /etc/modules
Cheers,
Evo2.
|
|
|
12-24-2009, 04:03 PM
|
#6
|
Member
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501
Original Poster
Rep:
|
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?
|
|
|
12-24-2009, 04:29 PM
|
#7
|
LQ Newbie
Registered: Sep 2009
Location: 127.0.0.1
Distribution: RHEL5,Ubuntu9.10,CentOS5.4
Posts: 12
Rep:
|
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.
|
|
|
12-24-2009, 05:28 PM
|
#8
|
Member
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 92
Rep:
|
modprobe, once invoked to insert a module, creates a listing in /etc/modules and should load the module automatically during your next boot.
|
|
|
12-25-2009, 05:36 AM
|
#9
|
Member
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501
Original Poster
Rep:
|
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?
|
|
|
12-25-2009, 05:53 AM
|
#10
|
LQ Newbie
Registered: Sep 2009
Location: 127.0.0.1
Distribution: RHEL5,Ubuntu9.10,CentOS5.4
Posts: 12
Rep:
|
where is the name of the module i needed?
what type of module i needed?
(I'm learning new topics from this topic)
Thanks.
|
|
|
12-26-2009, 02:52 AM
|
#11
|
Member
Registered: Mar 2009
Distribution: Ubuntu
Posts: 51
Rep:
|
try '/etc/modules' file..
It has the list of modules to load at boot time
|
|
|
12-26-2009, 03:16 AM
|
#12
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
Quote:
Originally Posted by dijmat
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.
|
12-27-2009, 06:33 PM
|
#13
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by miros84
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.
|
12-28-2009, 01:53 AM
|
#14
|
Member
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501
Original Poster
Rep:
|
Thanks!
|
|
|
All times are GMT -5. The time now is 05:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|