LinuxQuestions.org
Visit Jeremy's Blog.
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 04-24-2006, 09:27 PM   #1
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
how do I determine the order modules get loaded?


In relation to this thread. It looks very much like the sata drivers are claiming the ide controller (since sata and ide seem to live in the same place and root lives on the first sata hard-drive). This means the ide dvd drives do not show up at all.

I figure this will be resolved by either:
recompile the kernel so the ide driver is not a module (so it will take precedence); or -
make sure the ide module loads first.

But I don't know how to do the latter.
 
Old 04-25-2006, 01:46 AM   #2
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 356

Rep: Reputation: 40
The latter you can resolve editing your initrd, forcing an insmod before any other discoveries are done..

You also could try (I don't know the exact syntax, though) to add hdc=ide-scsi or something to the kernel parameters..

My two cents, you could also try to search for such strings..

Hope this helps in any way
 
Old 04-25-2006, 03:06 AM   #3
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Original Poster
Rep: Reputation: 197Reputation: 197
initrd - boot loader initialized RAM disk
This what you mean? This is compressed and read-only and 2.6 kernels these days use initramfs.

The insmod ide-driver would have to come at the start of phase 2 of the boot process. But how would I get it in there... it's not like inserting a custom DSDT.

hdc=ide-scsi
this parameter hasn't been needed since atapi support entered the kernel.
It may be worth a try though - however I note that /dev/hdc dosn't exist at the mo. dmesg fails to report and device on hdc.

I've been looking through kernel parameters hoping there was one to force ide first. The closest I got was noapic.

It also occurred to me that the hardware could be rearrainged so that hda was a hard drive holding the root file system. The sata raid drives would hold the bulk of the file systems which we would like to protect (the only real reason for prefferring HDDs in HWRaid) and letting the dvd drives sit in the second ide controller ... so hda = small HDD, hdc = dvd, hdd = dvd, sda/sdb sata RAID.

This would also force the ide driver ahead of the sata one - but would require reinstalling the OS. I think it's a configuration I'll have to remember if I ever run into one of these boards again.

It is beginning to sound like compiling the kernel is the easy option...
 
Old 04-25-2006, 03:43 AM   #4
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 356

Rep: Reputation: 40
In my opinion initrd is still being used in most distros.. certainly in Redhat families..

They can be unpacked with cpio and recreated afterwards..
 
Old 04-25-2006, 04:00 AM   #5
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Use "pre-install" in modules.conf ? Something like ->
pre-install ide-driver /sbin/modprobe -k sata-driver

The above should load ide driver before sata driver. Ofcourse, ide-driver and sata-driver are placeholders for the sake of example.

Quote:
initrd - boot loader initialized RAM disk
This what you mean? This is compressed and read-only and 2.6 kernels these days use initramfs.
The initrd image is a gzipped archive (cpio) or a gzipped filesystem image (ext3, reiserfs etc). You can copy initrd to a work folder and gunzip it. file command on the resulting file would tell you what it is. You can either extract the contents to a directory if it is a cpio archive or mount it on a directory if it is a filesys image. Perform necessary changes to /etc/modules.conf or so if there is one, in the contents of, extracted/mounted initrd image. Or edit the init/linuxrc whichever is present. Either way, ensure ide is loaded before sata. Once done, either re-pack them into archive or simply unmount depending on what initrd was to begin with. Finally gzip it and you have your own initrd.

Last edited by kevkim55; 04-25-2006 at 04:02 AM.
 
Old 04-25-2006, 09:32 AM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Original Poster
Rep: Reputation: 197Reputation: 197
rhoekstra: In my opinion initrd is still being used in most distros.. certainly in Redhat families..

While fedora still uses initrd - in that it has the files - it makes quite a bit of use of initramfs feature of the 2.6 kernels. If you want a custom DSDT, or have a weird boot configuration... this is the thing to use.

http://www.linuxdevices.com/articles/AT4017834659.html

kevkim55:
Use "pre-install" in modules.conf ? Something like ->
pre-install ide-driver /sbin/modprobe -k sata-driver
... ahhh: that's the sort of thing. Thanks.
 
Old 04-26-2006, 09:15 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,675

Rep: Reputation: Disabled
@Simon_Bridge Thank you for the link .
 
  


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
Too Many Modules Loaded XSIWILL Suse/Novell 2 02-24-2006 10:13 PM
how to determine if pcmcia service is loaded correctly glorsplitz Linux - Hardware 1 09-24-2005 03:32 PM
Change Loaded Modules thadco Linux - Hardware 1 09-06-2005 07:58 PM
How to determine drivers loaded by Knoppix JonEtc Linux - Newbie 2 09-01-2005 12:39 AM
What modules loaded in a apache2 gianh Linux - Software 0 05-27-2004 07:31 AM


All times are GMT -5. The time now is 01:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration