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 |
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.
|
no it is not.
The file /etc/modules contains the order of aditional modules. The AHCI and ata_piix are not in there. |
You could blacklist ata_piix and load it in /etc/rc.local
|
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. |
Sorry for the bad post. Good luck with this.
|
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. |