Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
 |
08-11-2004, 05:42 AM
|
#1
|
LQ Newbie
Registered: Sep 2003
Location: Stockholm Sweden
Distribution: Mandriva 2006.0
Posts: 24
Rep:
|
Module loaded into kernel at Boot
i have a module hpt374.ko
how do i get it to load at boot?
|
|
|
08-11-2004, 07:25 AM
|
#2
|
Member
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458
Rep:
|
put them in your rc.local file.
pico /etc/rc.d/rc.local
modprobe <moduleName>
save it and reboot!
|
|
|
08-11-2004, 10:15 AM
|
#3
|
LQ Newbie
Registered: Sep 2003
Location: Stockholm Sweden
Distribution: Mandriva 2006.0
Posts: 24
Original Poster
Rep:
|
thats too late in the boot
i want it too load with the other modules not in the rc skripts
hpt374 is a raid device and nead to be up and running
before the disks are mounted
|
|
|
08-11-2004, 10:24 AM
|
#4
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
Try for 2.4 kernels, /etc/modules.conf and for 2.6 kernels /etc/modprobe.preload
Does RedHat have /etc/init.d?
|
|
|
08-11-2004, 10:41 AM
|
#5
|
LQ Newbie
Registered: Sep 2003
Location: Stockholm Sweden
Distribution: Mandriva 2006.0
Posts: 24
Original Poster
Rep:
|
Quote:
Originally posted by vectordrake
Try for 2.4 kernels, /etc/modules.conf and for 2.6 kernels /etc/modprobe.preload
Does RedHat have /etc/init.d?
|
ok that sounds right but how do the kernel read the file
only one thing is specified in the modprobe
in he file it says
scsi_hostadapter
but how do i insert my hpt374.ko
do i just write the path and name?
|
|
|
08-11-2004, 10:45 AM
|
#6
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
Just type the name of the module, without the ending .ko. You're running Mandy 10? Put it in
Code:
/etc/modprobe.preload
All alone, on its own solitary line...
|
|
|
08-11-2004, 10:50 AM
|
#7
|
Member
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458
Rep:
|
okay, i didn't realize. sry bout that.
use /etc/module.conf - loads all the modules for slackware! i don't know about mandrake
|
|
|
08-11-2004, 10:52 AM
|
#8
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
Oh yeah, that file is commented with an explanation of what I just psosted anyways. You'll be fine.
|
|
|
08-11-2004, 10:53 AM
|
#9
|
LQ Guru
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795
Rep:
|
Actually, if you're booting from a RAID, you should have that compiled into the kernel.
|
|
|
08-11-2004, 01:07 PM
|
#10
|
LQ Newbie
Registered: Sep 2003
Location: Stockholm Sweden
Distribution: Mandriva 2006.0
Posts: 24
Original Poster
Rep:
|
Quote:
Originally posted by LavaDevil94
Actually, if you're booting from a RAID, you should have that compiled into the kernel.
|
you don't have to recompile the entire kernel to get the modules loaded at boot do you?
Quote:
Originally posted by vectordrake
Oh yeah, that file is commented with an explanation of what I just psosted anyways. You'll be fine.
|
how is it supposed to know where the hpt374.ko file is?
don't you have to put it somewhere special?
|
|
|
08-11-2004, 01:23 PM
|
#11
|
Member
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127
Rep:
|
See if you have the file /etc/modules.autoload.d/kernel-2.x (replace X with 4 or 6, depending on your kernel)
If you do have that file, open it up and just write the name of the module, save, and reboot.
If not, ignore this post as I can't help...
|
|
|
08-11-2004, 05:57 PM
|
#12
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
If you had to compile the module already, you'd already have it in the list in /etc/modules.autoload.d/kernel-2.x anyhow. That's why there's a defined file structure in *nix - so you can find stuff in predictable places (if you know where these places are, of course). You may also find that particular file in /lib/modules/kernel-2.x
/etc/modprobe.preload is one of the files that modprobe will look for modules to load. That's why the developers put the file there.
|
|
|
All times are GMT -5. The time now is 12:38 AM.
|
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
|
|