Re: SATA & SCSI

From: Rod Smith (rodsmith_at_rodsbooks.com)
Date: 03/28/04


Date: Sat, 27 Mar 2004 21:15:04 -0500

On Sat, 27 Mar 2004 16:26:54 -0700, chuck wrote:

> I have a ASUS P4P800. Last week my 9gb hda drive flaked out
> on me and Compusa had a deal on a SATA (160/$99) - seemed to
> be a message from somewhere... Any how I installed my new
> SATA. Works fine. But when I connect my scsi drive the system
> won't boot - seems my SATA drive comes up as /dev/sda and
> the scsi drive says "we're here" - both of them as sda.
> Ah... did I just lock myself out from using any scsi drives?

They *SHOULD* work together. The system should see one drive as /dev/sda
and the other as /dev/sdb. That's the way it works for me, with a SCSI Zip
disk as /dev/sda and an SATA hard disk driven via the libata drivers as
/dev/sdb. What makes you think that your system is trying to map both
drives to /dev/sda? (I'm not trying to say you're wrong, just asking for
more information.) A couple of possibilities occur to me to work around
the problem:

1) Use a PATA driver for the SATA controller. I gather that this is
   possible with some SATA controllers but not others. Check
   http://linuxmafia.com/faq/Hardware/sata.html for more information.
   If you're successful, your SATA drive will show up as a /dev/hdx
   device (/dev/hda, /dev/hde, or whatever) rather than as /dev/sda.
2) Build your boot device's support into your kernel and load the other
   device's support as a module, then load the module after you boot.
   With luck this temporal separation of the driver registration will
   work around any conflict that exists.

It also occurs to me that your problem might not be one of both drives
trying to be /dev/sda, but of the device filenames of your drives changing
when you add support for the second "SCSI" device. In other words, the
device you'd been identifying as /dev/sda becomes /dev/sdb when you add
the new device. That'll throw off the boot process, and you'll probably
get an error message about the kernel being unable to locate the root
filesystem. (I don't recall the exact wording, though.) If this is what's
happening, changing entries in /etc/fstab and the value you pass to the
kernel as the root device (in your LILO or GRUB configuration) will fix
the problem. Alternatively, option #2, above, should do the trick, as well.

-- 
Rod Smith, rodsmith@rodsbooks.com
http://www.rodsbooks.com
Author of books on Linux, FreeBSD, and networking


Relevant Pages

  • Re: eSATA support
    ... SATA drive: a harddrive that uses the SATA interface. ... It has these maddingly easy to break off data cable connector. ... most prevalent of all the SATA drives in the market. ... eSATA connector is different. ...
    (microsoft.public.windowsxp.hardware)
  • Re: RedHat 10 wishlist
    ... But performance is not everything SATA ... the smaller form factor drives. ... > kernel, ... >> REdhat is to wrap more stuff into its coming workstation release that I ...
    (alt.os.linux.redhat)
  • Re: eSATA support
    ... these eSATA ports to connect to a SATA drive whether in a naked configuration ... The most basic way is a SATA drive connects to a SATA connector on the ... SATA drives are hot plugable, I have not worked up the courage to turn off ...
    (microsoft.public.windowsxp.hardware)
  • RE: SCSI vs SATA
    ... I think of SATA as the cheap SCSI. ... The drives are fast, ... The main advantage of the SCSI drives is the ... Spec's for the drive had access time at 9.0 ...
    (microsoft.public.windowsxp.general)
  • Re: Debian stable & SATA drive
    ... am planning on changing my hard drive configuration to include SATA. ... I will probably just wait for Etch to ... Except you won't get kernel updates from debian and will have to ... because the root filesystem will on a RAID array on three SATA drives. ...
    (Debian-User)