Link to home
Start Free TrialLog in
Avatar of mauromol
mauromol

asked on

Modules loaded at startup (RedHat 7.1)

Hello!
I'm quite new to linux.
I have the following problem. I read a lot of documentstion (SCSI HOWTO, Modules HOWTO, man pages, etc.), but I couldn't solve it.
I had an Adaptec AHA-1510 SCSI controller until yesterday. I configured it perfectly. But today I changed it with an Advansys one. But Linux keeps on trying to load the aha152x.o module, instead of the advansys.o one.
I modified /etc/modules.conf changing the alias scsi_hostadapter to advansys instead of aha152x. I also removed the options line needed by the aha152x module...
Using 'modprobe advansys' makes the job, but I want Linux to load it automatically at boot, instead of the old aha152x one, also because the swap partition resides on a SCSI disk which is not seen by linux until advansys module is loaded.

I tried to rebuild modules dependecies (with depmod) but nothing changed.
What I am looking for is something like a configuration file in which are listed the modules to load at startup or a startup script which loads aha152x module at boot (I see that this takes places immediately after "RedHat nash").

Thanks in advance,
Mauro.
Avatar of auther_bin
auther_bin

Normally if you have changed the conf.modules file the system should work correctly, I have do like this for many new hardwares, but as you told, we need more details, like:

1. Are you have put the modules file "advansys.o" to directory:/lib/modules/VersionOFKernel/driver/..
2. If you can make it work correctly by hand, just want to startup this module whenever bootup your system, you can should not to remake depmod.
3. At last, if you can't make it work anymore by the past items, why not add the line "modprobe ..." to /etc/rc.d/rc.local file, let the system startup it when reboot.

GoodLuck.
Unlike IDE systems SCSI disks need to have their driver loaded at boottime, i.e integrated into the kernel.

Either you need to compile your Advansys controller into the kernel or you
have to create a new initial ramdisk.

1. in /etc/modules.conf put a line for your advansys SCSI module:
alias scsi_hostadapter advansys

2. create a new initrd file:
mkinitrd /boot/initrd <your kernel version number>

3. put your new RAM disk into /etc/lilo.conf & rerun LILO:  
initrd = /boot/initrd

# /sbin/lilo

That should get your disk up at boottime.
 

Avatar of mauromol

ASKER

Dear xberry,
this is exactly what I needed! Thank you a lot!
Please propose your comment as an answer and I'll give you the points.

Thanks to auther_bin, too: I may haven't explained myself very well. What I needed was exactly that told by xberry.

I lost a couple of days after this, without success! :-(

Mauro.
ASKER CERTIFIED SOLUTION
Avatar of xberry
xberry
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Whoops, I didn't know of "accept comment as answer"... It has been a while since I last went into Experts Exchange... and that feature wasn't there! :-)

Thanks again.
Mauro.