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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-22-2006, 05:54 PM
|
#1
|
Member
Registered: Jul 2003
Posts: 35
Rep:
|
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.
|
|
|
03-22-2006, 07:40 PM
|
#2
|
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:
|
Does the command as root show anything ' fdisk -l '?
|
|
|
03-22-2006, 08:00 PM
|
#3
|
Member
Registered: Jul 2003
Posts: 35
Original Poster
Rep:
|
Hi Brian,
The 'fdisk -l' command only shows the local SATA drive as /dev/sda.
Thanks,
Ravi.
|
|
|
03-23-2006, 10:09 AM
|
#4
|
Member
Registered: Jul 2003
Posts: 35
Original Poster
Rep:
|
Can anyone please help?
|
|
|
03-23-2006, 10:11 AM
|
#5
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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.
|
|
|
03-23-2006, 12:34 PM
|
#6
|
Member
Registered: Jul 2003
Posts: 35
Original Poster
Rep:
|
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.
|
|
|
03-23-2006, 04:23 PM
|
#7
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Could you run lsmod on both machines to see which SCSI modules are loaded?
|
|
|
03-23-2006, 09:03 PM
|
#8
|
Member
Registered: Jul 2003
Posts: 35
Original Poster
Rep:
|
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.
|
|
|
03-24-2006, 04:59 AM
|
#9
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
aic7xx is not loaded. What happens if you try to load it with modprobe?
|
|
|
03-24-2006, 09:03 AM
|
#10
|
Member
Registered: Jul 2003
Posts: 35
Original Poster
Rep:
|
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
|
|
|
03-24-2006, 09:36 AM
|
#11
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
-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.
|
|
|
03-24-2006, 10:02 AM
|
#12
|
Member
Registered: Jul 2003
Posts: 35
Original Poster
Rep:
|
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.
|
|
|
03-24-2006, 10:22 AM
|
#13
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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.
|
|
|
03-24-2006, 01:11 PM
|
#14
|
Member
Registered: Jul 2003
Posts: 35
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|