LinuxQuestions.org
Help answer threads with 0 replies.
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 03-22-2006, 05:54 PM   #1
rlinuxr
Member
 
Registered: Jul 2003
Posts: 35

Rep: Reputation: 15
SATA & SCSI Conflict?


I have a Dell Dimension Desktop with SATA hard disk.
I installed Red Hat 3.0 (Update 6).
The kernel names the local hard disk as /dev/sda, which I understand is how Linux handles SATA.

Then, I installed Adaptec PCI SCSI card and attached an external SCSI hard disk. The problem is that after the machine is rebooted, Linux does not show this device as /dev/sdb (or sdc etc) as I would expect.

If during restart, I press CTRL+A to get into Adaptec SCSI utilities, I see that the external disk is there and I can even format it. The machine BIOS also shows the external SCSI disk under "Boot Device Order" information.

What could be wrong here?

Interesting thing is that if I do the same on another Dell box with P(ATA) local instead of SATA, and using the same Adaptec PCI card, the external SCSI disk gets picked up as /dev/sda. The PATA disk in this case is /dev/hdb as you would expect for an IDE device.

I would appreciate any help with this issue.

Thanks,
Ravi.
 
Old 03-22-2006, 07:40 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Does the command as root show anything ' fdisk -l '?
 
Old 03-22-2006, 08:00 PM   #3
rlinuxr
Member
 
Registered: Jul 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Hi Brian,

The 'fdisk -l' command only shows the local SATA drive as /dev/sda.

Thanks,
Ravi.
 
Old 03-23-2006, 10:09 AM   #4
rlinuxr
Member
 
Registered: Jul 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Can anyone please help?
 
Old 03-23-2006, 10:11 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Uh, my wild guess is the kernel has no built-in support for your SCSI controller and module (if exists) is not loaded. Try loading it manually.
 
Old 03-23-2006, 12:34 PM   #6
rlinuxr
Member
 
Registered: Jul 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks, Emerson.

I have the same exact kernel installed (in the same exact way) on the other box which has PATA drive instead of SATA and it works.
 
Old 03-23-2006, 04:23 PM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Could you run lsmod on both machines to see which SCSI modules are loaded?
 
Old 03-23-2006, 09:03 PM   #8
rlinuxr
Member
 
Registered: Jul 2003
Posts: 35

Original Poster
Rep: Reputation: 15
From the box that works fine:

# lsmod | grep -i scsi
scsi_mod 106924 3 [sg aic7xxx sd_mod]

From the box that does not work:

# lsmod | grep -i scsi
ide-scsi 12496 0
scsi_dump_register 2368 0 [ata_piix]
scsi_mod 115756 4 [sg ide-scsi ata_piix libata sd_mod]

Thanks.
 
Old 03-24-2006, 04:59 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
aic7xx is not loaded. What happens if you try to load it with modprobe?
 
Old 03-24-2006, 09:03 AM   #10
rlinuxr
Member
 
Registered: Jul 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Emerson, thanks for helping out. Appreciate it


# locate aic7xxx
/lib/modules/2.4.21-37.EL/kernel/drivers/scsi/aic7xxx
/lib/modules/2.4.21-37.EL/kernel/drivers/scsi/aic7xxx/aic79xx.o
/lib/modules/2.4.21-37.EL/kernel/drivers/scsi/aic7xxx/aic7xxx.o
/lib/modules/2.4.21-37.EL/kernel/drivers/scsi/aic7xxx_old.o
/lib/modules/2.4.21-37.ELsmp/kernel/drivers/scsi/aic7xxx
/lib/modules/2.4.21-37.ELsmp/kernel/drivers/scsi/aic7xxx/aic79xx.o
/lib/modules/2.4.21-37.ELsmp/kernel/drivers/scsi/aic7xxx/aic7xxx.o
/lib/modules/2.4.21-37.ELsmp/kernel/drivers/scsi/aic7xxx_old.o

# uname -a
Linux mastaba2 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:28:55 EDT 2005 i686 i686 i386 GNU/Linux

# modprobe -a /lib/modules/2.4.21-37.ELsmp/kernel/drivers/scsi/aic7xxx/aic7xxx.o
modprobe: Can't locate module /lib/modules/2.4.21-37.ELsmp/kernel/drivers/scsi/aic7xxx/aic7xxx.o

# cat /etc/modules.conf
alias eth0 tg3
alias scsi_hostadapter ata_piix
alias sound-slot-0 i810_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci
alias usb-controller1 ehci-hcd
alias scsi_hostadapter1 aic7xxx
 
Old 03-24-2006, 09:36 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
-a option is used only when you need to load multiple modules at once. Full path is also not needed. Try just plain modprobe aic7xxx. If it fails check dmesg.
 
Old 03-24-2006, 10:02 AM   #12
rlinuxr
Member
 
Registered: Jul 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Ok, that worked.

Now I can see the external scsi drive as /dev/sdb.

Not sure why it is not getting automatically loaded at boot time? Maybe I will put the modprobe command in one of the rc init files.

In any case, thanks a lot for your help. Truly appreciated.

Regards,
Ravi.
 
Old 03-24-2006, 10:22 AM   #13
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Glad to hear it
I'm sure there is an appropriate place where modules autoload from, for instance it is /etc/modules.autoload.d/<kernelversion> for Gentoo. Just find out how RH does it.
 
Old 03-24-2006, 01:11 PM   #14
rlinuxr
Member
 
Registered: Jul 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Ok. Resolved the boot time issue as well.

On RedHat, the modules to be autoloaded at boot time are specified in /etc/modules.conf file.

My original /etc/modules.conf file had the following entries:

alias eth0 tg3
alias scsi_hostadapter ata_piix
alias sound-slot-0 i810_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci
alias usb-controller1 ehci-hcd
alias scsi_hostadapter1 aic7xxx

Here, the aic7xx is listed last and the scsi adapter for local PATA drive (ata_piix) is listed almost at the top. I changed the entries as follows:

alias eth0 tg3
alias scsi_hostadapter1 aic7xxx
alias scsi_hostadapter ata_piix
alias sound-slot-0 i810_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci
alias usb-controller1 ehci-hcd

Basically, I listed aic_7xxx scsi adapter before the ata_piix one. After that I ran the following commands:

cp /boot/initrd-2.4.21-37.Elsmp.img initrd-2.4.21-37.Elsmp.img.bak
mkinitrd -v -f /boot/initrd-2.4.21-37.ELsmp

Rebooted the box, and bingo external scsi drive is immediately visible after reboot without having to do manual 'modprobe aic_7xxx' command.

Emerson -- thanks, once again.

Regards,
Ravi.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
via sata irq conflict install of fc5. fc4 worx fine tech960 Fedora 0 03-21-2006 08:12 PM
no SATA when compiled directly (SATA on SCSI) evil_empire Linux - Hardware 5 02-13-2006 04:06 AM
Mandrake 10.1 scsi conflict? md_lives Linux - Newbie 0 10-29-2004 11:11 AM
SCSI vs. SATA Joey.Dale Linux - Hardware 2 02-07-2004 12:16 AM
Some SCSI info && SATA proposition C.Loko Linux - Hardware 1 12-12-2003 02:42 PM

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

All times are GMT -5. The time now is 05:07 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