LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Module load order. (https://www.linuxquestions.org/questions/linux-general-1/module-load-order-648599/)

Dark666 06-11-2008 12:53 PM

Module load order.
 
Hi to all.
How do I change module load order in Ubuntu or any other distro?
99% of the existing distros load ATA_PIIX module before AHCI module. I need to change this order after I install the system.

In my Qosmio G20 before I install any distro I must drop to a shell using mount=break kernel command and then type:

rmmod ata_piix
rmmod ahci
modprobe ahci
modprobe ata_piix

I need to do this in order to propper detect my hard drives because Qosmio has Dual 80GB HDD.

After I install the system, every time I boot the computer I must use mount=break
rmmod ata_piix
rmmod ahci
modprobe ahci
modprobe ata_piix
In order for the system to boot.
I need ahci for HDD's and ata_piix for DVD, so no point in blacklist the ata_piix.
How do i change the load order of the modules so that it will always load ahci before ata_piix?

note: I need ahci for HDD's and ata_piix for DVD, so no point in blacklist the ata_piix.

Thanks

TITiAN 06-12-2008 04:45 AM

I know that on Debian there is a file /etc/modules. This file contains the names of the modules that are to be loaded. It should be the same on Ubuntu and other Debian-based distros, maybe even on non-Debian distros. I guess the order in the file is the order in which they are loaded.

Dark666 06-12-2008 12:59 PM

no it is not.
The file /etc/modules contains the order of aditional modules.

The AHCI and ata_piix are not in there.

stefan_nicolau 06-13-2008 07:23 PM

You could blacklist ata_piix and load it in /etc/rc.local

Dark666 06-14-2008 04:09 AM

I figured it out.
You type the modules by the order you want in /etc/initramfstools.d/modules then
Sudo initramfs-update -k all -u
And thats it, and now the modules will be loaded by the order you typed in modules.

TITiAN 06-14-2008 04:20 AM

Sorry for the bad post. Good luck with this.

kyledevon 07-04-2008 12:47 PM

Hello all. I would like to switch module load orders also, but on a Fedora machine. I looked for a /etc/initramfstools.d/modules file, but did not find one. Would anyone happen to know it's equivalent in Fedora 9?

Thanks!


All times are GMT -5. The time now is 08:13 AM.