need to load SATA driver at boot??

Posted on 2006-04-07
Last Modified: 2012-05-05
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?
Question by:mercury8001
    LVL 43

    Expert Comment

    what linux distro?
    LVL 87

    Expert Comment

    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).
    LVL 43

    Expert Comment

    /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.
    LVL 87

    Expert Comment

    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.
    LVL 22

    Expert Comment

    Add the command:

    modprobe viamraid



    This runs after all the init scripts.


    Author Comment

    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
    LVL 34

    Expert Comment

    by:Duncan Roe
    On slackware, the file you want to change is /etc/rc.d/rc.local.
    Add the modprobe command as others have already indicated.
    LVL 43

    Accepted Solution

    > when you say adding it to the rc.local file may be to late. do u mean to late to mount with fstab
    For slack: /etc/rc.d/rc.modules see, there is an example

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now