From: James H. Newman on
A PC has come my way with a motherboard with a single IDE
controller, plus a PCI IDE RAID controller PCI card. The boot drive and
another hard drive are connected to the IDE controller, whereas the DVD
writer and yet another hard drive are connected to the RAID controller.

My current Linux kernel is unable to detect the DVD writer and
the third hard drive. I assume that I must build a kernel containing RAID
support. Is that all there is to it? I mean, do I have to know any
specifics about the RAID controller itself, or will Linux recognize it no
matter what, just as it recognizes IDE hard drives? Must one tackle any
configuration other than the usual stuff for IDE drives?

I have done a google search and found some pointers, but since I
know nothing about RAID controllers I find them a bit confusing. Some
idiot-proof pointers would be welcome. By the way, I would like this to
work under Slackware 12.
From: Dances With Crows on
James H. Newman staggered into the Black Sun and said:
> single IDE controller, plus a PCI IDE RAID controller PCI card.
> My current Linux kernel is unable to detect the DVD writer and the
> third hard drive [on the PCI card]. I assume that I must build a
> kernel containing RAID support. Is that all there is to it? I mean, do
> I have to know any specifics about the RAID controller itself?

If you know the make+model of the PCI card, you will know which module
you have to modprobe. "lspci" will help out a great deal here. Like
so:

mallory:~$ lspci | grep IDE
00:06.0 IDE : nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE : nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE : nVidia Corporation CK804 Serial ATA Controller (rev f3)

....obviously, I have a CK804 here, which is supported by the sata_nv
module according to a grep -rli ck804 /usr/src/linux/drivers/ .

> or will Linux recognize it no matter what, just as it recognizes IDE
> hard drives?

You'll have to do something similar to what's described above. If this
controller card is treating the disk as a "RAID set" or something like
that instead of as a normal disk, the data on it might not be usable.

> By the way, I would like this to work under Slackware 12.

Slack users are expected to be able to handle these sorts of things. If
you want more hand-holding, use something like Ubuntu instead. You
should post the relevant output from lspci so that we could take a look
at it. HTH anyway,

--
The early bird who catches the worm works for someone who comes in
late and owns the worm farm. --Travis McGee
My blog: http://crow202.org/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
From: Sam on
James H. Newman writes:

> A PC has come my way with a motherboard with a single IDE
> controller, plus a PCI IDE RAID controller PCI card. The boot drive and
> another hard drive are connected to the IDE controller, whereas the DVD
> writer and yet another hard drive are connected to the RAID controller.
>
> My current Linux kernel is unable to detect the DVD writer and
> the third hard drive. I assume that I must build a kernel containing RAID
> support. Is that all there is to it?

No. Most Linux distributions already ship kernels that enable all supported
hardware. If you install a Linux distro on this hardware, it will either
automatically configure the correct module, or fail to detect your RAID
card. If the latter, your RAID card is not supported by the version of the
Linux kernel that ships with your Linux distribution.

If you install the RAID card after you already installed Linux, it's
possible that it may not get automatically recognized, even if it's
supported by the Linux kernel.

> I mean, do I have to know any
> specifics about the RAID controller itself, or will Linux recognize it no
> matter what, just as it recognizes IDE hard drives? Must one tackle any
> configuration other than the usual stuff for IDE drives?

If you identify your RAID controller's vintage, you may be able to do some
research and determine whether it is supported by the Linux kernel, and if
so, in which kernel version support was added by your hardware card.

> I have done a google search and found some pointers, but since I
> know nothing about RAID controllers I find them a bit confusing. Some
> idiot-proof pointers would be welcome. By the way, I would like this to
> work under Slackware 12.

Your first step is to determine whether or not your RAID card is supported
at all, by the Linux kernel. The kernel supports some, but not all RAID
cards. Most RAID Linux machines use Linux soft-RAID, which works with any
underlying platform, IDE or SCSI.

Once you determine that your RAID card should be supported by the Linux
kernel, and which was the first kernel release that added support for your
card, then you should be able to determine if Slackware ships the kernel
that includes the drivers for your RAID card, and determine the next step.

From: James H. Newman on
On Sat, 26 Jul 2008 02:01:49 +0000, Dances With Crows wrote:

> James H. Newman staggered into the Black Sun and said:
>> single IDE controller, plus a PCI IDE RAID controller PCI card. My
>> current Linux kernel is unable to detect the DVD writer and the third
>> hard drive [on the PCI card]. I assume that I must build a kernel
>> containing RAID support. Is that all there is to it? I mean, do I have
>> to know any specifics about the RAID controller itself?
>
> If you know the make+model of the PCI card, you will know which module
> you have to modprobe. "lspci" will help out a great deal here. Like
> so:
>
> mallory:~$ lspci | grep IDE
> 00:06.0 IDE : nVidia Corporation CK804 IDE (rev f2) 00:07.0 IDE : nVidia
> Corporation CK804 Serial ATA Controller (rev f3) 00:08.0 IDE : nVidia
> Corporation CK804 Serial ATA Controller (rev f3)
>
> ...obviously, I have a CK804 here, which is supported by the sata_nv
> module according to a grep -rli ck804 /usr/src/linux/drivers/ .
>
>> or will Linux recognize it no matter what, just as it recognizes IDE
>> hard drives?
>
> You'll have to do something similar to what's described above. If this
> controller card is treating the disk as a "RAID set" or something like
> that instead of as a normal disk, the data on it might not be usable.

This is what I get from lspci:

01:02.0 RAID bus controller: VIA Technologies, Inc. VT6410 ATA133 RAID
controller (rev 06)

My question is, how do I configure the kernel build environment
to include support for this hardware?



From: Dances With Crows on
James H. Newman staggered into the Black Sun and said:
> On Sat, 26 Jul 2008 02:01:49 +0000, Dances With Crows wrote:
>> James H. Newman staggered into the Black Sun and said:
>> mallory:~$ lspci | grep IDE
>> 00:06.0 IDE : nVidia Corporation CK804 IDE (rev f2) 00:07.0 IDE :
>> nVidia Corporation CK804 Serial ATA Controller (rev f3) 00:08.0 IDE :
>> nVidia Corporation CK804 Serial ATA Controller (rev f3)

>> ...obviously, I have a CK804 here, which is supported by the sata_nv
>> module according to a grep -rli ck804 /usr/src/linux/drivers/ .
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 01:02.0 RAID bus controller: VIA Technologies, Inc. VT6410 ATA133 RAID
> controller (rev 06)

> My question is, how do I configure the kernel build environment to
> include support for this hardware?

If you're using a distro kernel, the module is already in
/lib/modules/`uname -r`/ . Follow the procedure shown in the line
marked with a bunch of ^s to find the name of the module you need to
modprobe. You won't be looking for "ck804", of course, but for another
string that's unique to this particular piece of hardware. If you have
compiled a custom kernel, you need to compile the appropriate device
driver, which you can find using the same command. Then just do a "make
menuconfig", navigate to the right place, and set the appropriate option
to "M", "make modules && make modules_install", and you're good.

The fact that you're asking these questions makes me think you would be
better served by a distro that does more hand-holding.

--
Outside of a dog, a book is a man's best friend. Inside of a dog
it's too dark to read.
My blog: http://crow202.org/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see