LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 08-11-2004, 05:42 AM   #1
Wolf_Assassin
LQ Newbie
 
Registered: Sep 2003
Location: Stockholm Sweden
Distribution: Mandriva 2006.0
Posts: 24

Rep: Reputation: 15
Module loaded into kernel at Boot


i have a module hpt374.ko
how do i get it to load at boot?
 
Old 08-11-2004, 07:25 AM   #2
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 441

Rep: Reputation: 30
put them in your rc.local file.
pico /etc/rc.d/rc.local
modprobe <moduleName>
save it and reboot!
 
Old 08-11-2004, 10:15 AM   #3
Wolf_Assassin
LQ Newbie
 
Registered: Sep 2003
Location: Stockholm Sweden
Distribution: Mandriva 2006.0
Posts: 24

Original Poster
Rep: Reputation: 15
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
 
Old 08-11-2004, 10:24 AM   #4
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Try for 2.4 kernels, /etc/modules.conf and for 2.6 kernels /etc/modprobe.preload

Does RedHat have /etc/init.d?
 
Old 08-11-2004, 10:41 AM   #5
Wolf_Assassin
LQ Newbie
 
Registered: Sep 2003
Location: Stockholm Sweden
Distribution: Mandriva 2006.0
Posts: 24

Original Poster
Rep: Reputation: 15
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?
 
Old 08-11-2004, 10:45 AM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
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...
 
Old 08-11-2004, 10:50 AM   #7
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 441

Rep: Reputation: 30
okay, i didn't realize. sry bout that.

use /etc/module.conf - loads all the modules for slackware! i don't know about mandrake
 
Old 08-11-2004, 10:52 AM   #8
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Oh yeah, that file is commented with an explanation of what I just psosted anyways. You'll be fine.
 
Old 08-11-2004, 10:53 AM   #9
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 46
Actually, if you're booting from a RAID, you should have that compiled into the kernel.
 
Old 08-11-2004, 01:07 PM   #10
Wolf_Assassin
LQ Newbie
 
Registered: Sep 2003
Location: Stockholm Sweden
Distribution: Mandriva 2006.0
Posts: 24

Original Poster
Rep: Reputation: 15
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?
 
Old 08-11-2004, 01:23 PM   #11
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Rep: Reputation: 15
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...
 
Old 08-11-2004, 05:57 PM   #12
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
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.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Truecrypt: Kernel module not loaded Synatic Linux - Software 4 01-21-2006 02:43 PM
the kernel module for tv support could not be loaded ylts Suse/Novell 3 04-15-2005 08:14 AM
kernel: No module symbols loaded - kernel modules not enabled. Qucho Debian 9 05-26-2004 02:50 AM
usb-uhci kernel module won't stay loaded oklitig8r Linux - Software 3 03-01-2004 11:34 AM
kernel 2.6.1: iptables doesn't run..but module is loaded pablovschby Programming 4 02-06-2004 03:46 AM


All times are GMT -5. The time now is 12:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration