[nSLUG] serial ata device names

Bill Davidson bdavidso at supercity.ns.ca
Fri Jun 9 10:19:26 ADT 2006


>From /usr/src/linux/drivers/ide/Kconfig:

          There are two drivers for Serial ATA controllers.

          The main driver, "libata", exists inside the SCSI subsystem
          and supports most modern SATA controllers.

          The IDE driver (which you are currently configuring) supports
          a few first-generation SATA controllers.

          In order to eliminate conflicts between the two subsystems,
          this config option enables the IDE driver's SATA support.
          Normally this is disabled, as it is preferred that libata
          supports SATA controllers, and this (IDE) driver supports
          PATA controllers.

          If unsure, say N.

So it sounds like if you configure in the old IDE SATA driver, and you
have an old (!) SATA controller, then your SATA drive can be /dev/hdx.
Otherwise you configure the SCSI SATA drivers, and then your drive will
be /dev/sdx.

Keep in mind that /etc/fstab isn't actually used until fairly late in
the boot process.  You could easily keep a pair of fstab's
(say /etc/fstab.sdx and /etc/fstab.hdx) and, before mount gets called,
copy the appropriate one to /etc/fstab based on your kernel version.

On Fri, 2006-09-06 at 00:28 -0300, D G Teed wrote:
> Hi,
> I'm making a kernel for serial ATA.  I've seen Debian and
> Suse run on this particular hardware, and on Suse
> the drive was /dev/sda, while on Debian it was /dev/hda -
> both with 2.6 kernels.  I checked and Debian didn't have
> symlink for /dev/hda to achieve this.  Does anyone know
> what the trick is to keep using the hda style name?
> I'd prefer to go that way so I can flip back and forth
> between my vanilla kernel and the standard Debian one
> without requiring an edit of fstab from a rescue CDROM
> if my vanilla kernel won't boot.
> --Donald
> _______________________________________________
> nSLUG mailing list
> nSLUG at nslug.ns.ca
> http://nslug.ns.ca/cgi-bin/mailman/listinfo/nslug
Bill Davidson
bdavidso at supercity.ns.ca


More information about the nSLUG mailing list