LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-11-2008, 01:53 PM   #1
Dark666
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Rep: Reputation: 0
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
 
Old 06-12-2008, 05:45 AM   #2
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 392

Rep: Reputation: 49
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.
 
Old 06-12-2008, 01:59 PM   #3
Dark666
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
no it is not.
The file /etc/modules contains the order of aditional modules.

The AHCI and ata_piix are not in there.
 
Old 06-13-2008, 08:23 PM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
You could blacklist ata_piix and load it in /etc/rc.local
 
Old 06-14-2008, 05:09 AM   #5
Dark666
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 06-14-2008, 05:20 AM   #6
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 392

Rep: Reputation: 49
Sorry for the bad post. Good luck with this.
 
Old 07-04-2008, 01:47 PM   #7
kyledevon
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on load order..Windows first or Linux first? msladybug02 Mandriva 7 03-22-2005 06:29 PM
Changing the load order of modprobe keithcsl Linux - Hardware 3 10-21-2004 05:09 AM
Changing the order in which things load evannextel Linux - General 2 07-28-2004 06:49 PM
Start-up module order? phishman3579 Slackware 1 07-03-2003 02:18 PM
Module loading order johntmills Linux - Software 2 09-24-2002 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration