We help IT Professionals succeed at work.

Modules loaded at startup (RedHat 7.1)

mauromol
mauromol asked
on
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.
Comment
Watch Question

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.

Commented:
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.
 

Author

Commented:
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.
Commented:
Dear Mauro,

Luckily I run on SCSI myself, so I've already had the chance to learn about some of its 'odds' in Linux ; )
BTW, it is possible to accept comments as answers from your side also.
Anyway, I'm glad my comment proved to be the specific answer to your question.
So, here the reposting:

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.

Best wishes & lots of fun !  

Author

Commented:
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.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.