need to load SATA driver at boot??

I am looking for a way to get the driver for my onbord SATA controller to load during the boot with the rest of my drivers.
I can load it manualy with the command:

modprobe viamraid

but its a pain to log in as root and run this command every time.
can anyone help?
thanx
mercury8001Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ravenplCommented:
what linux distro?
0
rindiCommented:
create a script inside /etc/init.d/ and put those commands into it. Then make the file executable and make a symlink for it inside those runlevels you want it to startup in (/etc/rc.1 for level 1, up to rc.5 for level 5). Those folders might be in a different location, depending on your distro.

when you make the Symlink, it must the name must have an S to start with (S stands for startup), then a number between 01 and 99, where the lower number starts earlier. This you might have to finetune depending on what else loads, which might have to load earlier than that driver).
0
ravenplCommented:
/etc/init.d/* may be too late for system to mount those drives.
Unfortunatelly various distros have various configurations for modules to be load no boot
debian: /etc/modules
gentoo: /etc/modules.autoload.d/kernel-2.6
and always You may instruct initrd image to load some modules automaically.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

rindiCommented:
First also I thought it might be too late then, but looking at the question, he loads it by hand now anyway, so there shouldn't be a problem loading late. All he wants is to load automatically without him having to change to root to mount it.
0
pjedmondCommented:
Add the command:

modprobe viamraid

to:

/etc/rc.local

This runs after all the init scripts.

HTH:)
0
mercury8001Author Commented:
my distro is slackware 10 r2
im somewhat new to linux. first installed it a year ago, but only been serusly paying atenstion to it for the last 5 months.
i'm looking to mount the drive from the fstab file. on boot since the drive holds all my music and other shared files.
when you say adding it to the rc.local file may be to late. do u mean to late to mount with fstab, if so is one of the other file requierd file.
all so last time i modified the rc.local the system refused to boot. and i had to restore the file from a backup. is there a syntax disfernce form a normal shell script?
thanx all for the fast replys
0
Duncan RoeSoftware DeveloperCommented:
On slackware, the file you want to change is /etc/rc.d/rc.local.
Add the modprobe command as others have already indicated.
0
ravenplCommented:
> when you say adding it to the rc.local file may be to late. do u mean to late to mount with fstab
Yes.
For slack: /etc/rc.d/rc.modules see, there is an example
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.