LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-15-2005, 06:54 PM   #1
The Belgain
LQ Newbie
 
Registered: Dec 2004
Posts: 17

Rep: Reputation: 1
How to get SATA card drivers to load before md autodetection?


Hi there. I'm not quite sure if this is the right forum to post this to... feel free to move it if you want.

Well, I've created a software RAID5 partition on Linux (Slackware 10.0) using the mdadm tools, but the array isn't being recognised on startup (I need to manually re-assemble the array after each reboot to get it recognised).

Now the reason for this is that the array is on a Highpoint SATA controller card, for which I have compiled the drivers (it isn't supported natively), and I load them up during bootup by having added "modprobe hptr1540" to /etc/rc.d/rc.local. The problem is that md detects and mounts arrays before the highpoint driver is loaded, and therefore doesn't see my RAID5 array. How can I get the Highpoint drivers to load before the arrays get detected?

I assume there must be a way to do this, as this is a pretty common thing to be needing to do...

Thanks for the help guys...
 
Old 01-15-2005, 10:48 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Try placing the highpoint module in the ramdisk file. Make sure the module is decompress and you edit a script in the ramdisk file to load the module. You should not place modules that need to be loaded in rc.local. Its better to use /etc/modules.conf, /etc/modprobe.conf, or if you do not know the syntax of those files use /etc/rc.d/rc.modules.

I have not setup RAID yet. I know you are using RAID 5, but read howtos on RAID 0 and RAID 1 setups. You probably get some ideas how to get it working every time you boot in to Linux.
 
Old 01-16-2005, 05:42 AM   #3
The Belgain
LQ Newbie
 
Registered: Dec 2004
Posts: 17

Original Poster
Rep: Reputation: 1
Well, I've added the "modprobe hptr1540" line to /etc/rc.d/rc.modules, instead of /etc/rc.d/rc.local, and it doen't seem to have really made any difference: the driver still gets loaded after the md detection stage, which means the array doesn't get picked up.

Any ideas?
 
Old 01-16-2005, 07:04 AM   #4
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
Quote:
Try placing the highpoint module in the ramdisk file.
This is the answer to your problem. I myself have a Promise FastTrak 100TX2 RAID controller. I need to put the driver-module in my 'initrd' (initial ramdisk), so my kernel can be loaded from my RAID array (the ramdisk gets loaded before the kernel gets loaded). So do a search on howto create an initial ramdisk with your distro and kernel.
 
Old 01-16-2005, 08:10 AM   #5
The Belgain
LQ Newbie
 
Registered: Dec 2004
Posts: 17

Original Poster
Rep: Reputation: 1
Right... cheers, I'll have a look into that. Is it entirely necessary in my case though? I'm not trying to boot off the RAID array here... I just want it to be autodetected...
 
Old 01-16-2005, 08:55 AM   #6
The Belgain
LQ Newbie
 
Registered: Dec 2004
Posts: 17

Original Poster
Rep: Reputation: 1
Right.... well I've gone for the hacky solution of just adding this right at the end of my /etc/rc.d/rc.S file:

Code:
modprobe hptr1540
mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdb2
mount /dev/md0 /mnt/md0
This seems to work as far as I can see. It's obviously not an ideal solution, but it'll do I think. Is there any particular reason why this would be a bad idea?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nforce2/3/4 100% cpu load while IDE/SATA operations vlaman Linux - Hardware 4 11-13-2005 03:46 AM
Linux support: pci sata card vs integrated sata Synesthesia Linux - Hardware 2 10-17-2005 03:27 PM
sound card drivers wont load lquint Linux - Hardware 1 09-05-2005 03:34 PM
Using GRUB to load XP on *third* drive (SATA) gvaught Linux - General 11 02-07-2005 07:26 AM
New SATA Install freezes in USB 2.0 driver load MaddJackKidd Slackware 0 11-12-2003 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:39 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
Open Source Consulting | Domain Registration