How do I install Linux using Ultra 66 Controller Card?

stingbandel

Diamond Member
Jan 23, 2000
3,270
0
0
Hi, I am having problem using the controller card to install Linux Red Hat 7. I have 3 O/S right now. Win Me, Win 2K Pro and Win 2K Adv. Server. I have 2 hard drives. I use the primary one for all the 3 O/S above and want to use my other hard drive to set up Linux. All of them (all the O/S including Linux) were properly installed without using the controller card. I just hooked it up to the Ide connector on the motherboard. After finished installing all of them, I plugged it out the cables from the Ide connector, and swithced the cables to the controller card amd Linux couldn't be detected. It said something like kernell Panic, couldn't get the mount set up something like that. Is there a way I use a controller card to set up Linux? If somebody knows how to do it, can you lead me through it? I really need help on this since this is the first time I touched Linux and was not as success when I touched Windows for the first time. Do I need special driver or something like that? Any input would be appreciated so much. Thanks in advance for all the helps....

Darno
 

Dark

Senior member
Oct 24, 1999
639
0
0
Here is a copy/paste from the Linux doc
On kernels 2.1.113 and up, you can enable DMA for both drives on a given IDE interface using the ideX=dma kernel parameter, where X is the number of the interface (the first is 0). This may not actually force UDMA though.

And here is the link for all the article: Linux doc Ultra dma
 

stingbandel

Diamond Member
Jan 23, 2000
3,270
0
0
Since I have installed Linux using the ide connector from the motherboard, and it doesn't work with the controller card, do I have to reinstall Linux or just change the setting so Linux will detect the hard drive? Thanks in advance

Darno
 

stingbandel

Diamond Member
Jan 23, 2000
3,270
0
0
Can anybody give me more input? I need to get this going by this weekend? thanks in advance

Darno
 

Dark

Senior member
Oct 24, 1999
639
0
0
I'm not sure about that but this is what I did with Mandrake (Installed it on an ATA33 of the MB and reversed it back to ATA66 of the A7V) It worked perfectly. Did u read carefully the how-to?
 

jtshaw

Member
Nov 27, 2000
191
0
0
DON'T REINSTALL, IT WILL NOT HELP!!!:p What you need to do is this, keep the linux drive on the mainboard for now. Boot into linux, log in as root, or switch users to root or whatever and go to the /proc/ directory. Use your favorite text editor or viewer and open the pci file. This file is a dump of all your PCI devices (one of which should be the Ultra 66 Controller card. It should look something like this (without the letters in paranthesis) in the file:

RAID bus interface: Promise Technology Unknown device (rev 1). Vendor id=105a. Device id=4d33. Medium devsel. IRQ 12. Master Capable. Latency=32.
I/O at 0xe000. (a)
I/O at 0xd804. (b)
I/O at 0xd400. (c)
I/O at 0xd004. (d)
I/O at 0xc800. (e)

When you switch the linux drive to the controller typelinux ide2=a,b+2, ide3=c,d+2 at the LILO prompt and that should boot it, if it works you can edit lilo.conf in your /etc directory to do it automatically. Remember that the numbers corrisponding to a,b,c,d,e are in HEX so keep that in mind when doing the +2 operation. (ie 9+2 = B, not 11). If you pass the parameters right then linux will look at all four IDE channels you have, the two on the mainboard, and the two on the PCI card. If you have any questions fire away.
 

jtshaw

Member
Nov 27, 2000
191
0
0
Please, don't keep telling everyone with a linux problem to reinstall! Unless you make a huge mistake in the install everything should be fixable from the OS. On a problem like this one re-installing will get you nothing...unless you change distro's, which is another huge no-no in my mind. Instead of trying 5 million distros to get all your hardware supported from the get go I suggest actually learning how to install hardware drivers and stuff into the system. It really isn't that hard and once you get a better understand of the linux way of doing things you will be all the better for it.
 

jtshaw

Member
Nov 27, 2000
191
0
0
Just in case the a,b+2 ect. crap is confusing here is what the command to run linux for the example I/O adresses:

linux ide2=0x0e000,0xd806, ide3=0xd400,0xd006

I hope you can get it working:)
 

timco

Member
Aug 30, 2000
93
0
0
WARNING - LONG POST!

Linux has up to eight IDE devices:

hda - primary master on motherboard
hdb - primary slave on motherboard
hdc - secondary master on motherboard
hdd - secondary slave on motherboard

If you have a PCI controller you get the following as well:

hde - primary master on PCI
hdf - primary slave on PCI
hdg - secondary slave on PCI
hdh - secondary slave on PCI

When you install Linux, it stores the hard drive settings in various files, including /etc/fstab, and /etc/lilo.conf too. Linux doesn't notice that you have moved your drive on to the PCI card and is still trying to use the old settings. There is a way round this, which I used to install SuSE 7. I installed it on hdc as the kernel didn't recognise my Promise ATA card. I just put the basic stuff on there as I was going to recompile a load of stuff anyway. After installing, I moved it on to my PCI card as hdf.

If you're using lilo (I don't - I have a Windows boot menu and I press '1' for 98SE, 2 for SuSE and 3 for DOS) - don't do so this time. Boot normally into Windows. Either wait for it to load completely and do a Start>Shutdown and reboot in DOS mode or press F8 whilst it's loading and get a DOS prompt there. You need a kernel and a copy of loadlin to do this. With loadlin you can tell it what the root partition is, overriding any settings.

To load Linux using loadlin, you need to type in something like this:

loadlin.exe vmlinuz root=DEVICE rw

Replace DEVICE with /dev/hdX, where X is the letter of your hard drive. Linux will boot (hopefully), but you might see some error messages and it will fail to load your /usr partition. If you boot into xdm or kdm, that won't work either. Hopefully the end result will be that you get a log in prompt - try switching terminals using ALT-F1 thru F8 to get a login. Log in as root (yes, really). Once you get your shell prompt, you can start changing stuff.

You probably won't have access to read and write to your root partition, so first you need to change that so you can change the files on there. There is an option with the mount utility that lets you remount an already mounted partition. I think the syntax is:

mount -o remount,rw /

Hopefully, this will result in a read/write / partition. This will allow you to edit the /etc/lilo.conf (if you use lilo) and /etc/fstab files.

If your /usr partition isn't on the same partition as /, you'll need to mount this manually, so you can get at your editors and X (if you want to use X). cd into /etc and type "cat fstab". This will list the contents of your filesystem table. You can use this info to find out the partition your /usr is on. Look for a line that has /usr in it (obviously). It will also have a /dev/hdXX bit in it. This is the device you'll use to mount to get at your /usr. You'll have to change this slightly to be able to mount on your new drive. So if /etc/fstab says that your /usr is on /dev/hdb4 (which it now isn't) and all of Linux is now on /dev/hdf (in various partitions), type this:

mount -t ext2 /dev/hdf4 /usr

Replace the /dev/hdf4 with whatever's appropriate for your system. You should get your /usr partition back, so you can run X if you want to edit the files from KDE or Gnome. If you do, you'll probably need to mount your swap as well, so I'd stick to something like pico, emacs or vi. I personally prefer pico as it's the simplest.

The files you'll need to edit are /etc/fstab and /etc/lilo.conf. Seeing as I don't know anything about lilo, all I can do is guess. Basically, with /etc/fstab, you need to replace any occurrences of the original installation device (e.g. /dev/hdb) with the new one (e.g. /dev/hdf). I'd imagine it's the same with /etc/lilo.conf.

Once you've finished editing, save your files and get back to your shell prompt. Type in "reboot" and your computer will reboot. If it brings up any error messages about mount points, partitions and so on you can probably ignore these. After rebooting, provided you did everything correctly, you should get your Linux back.

Hope this helps. Hopefully there aren't too many errors in it... :)
 

stingbandel

Diamond Member
Jan 23, 2000
3,270
0
0
wow... it's really complicated but I will try it anyway.. thanks guys, I really appreciate all the helps.

Darno
 

SUOrangeman

Diamond Member
Oct 12, 1999
8,361
0
0
FWIW, Mandrake 7.1 and 7.2 handle my HPT366 out of the box. I can only assume it handles Promise just the same. But, don't quote me. :)

-SUO
 

DocDoo

Golden Member
Oct 15, 2000
1,188
0
0
SUOrangeman... I'll quote you..... Yes it does ;)

Mandrake 7.2 configured my Promise controller (ATA-100) during install. It sure beats going at it the long way.