Serial ATA

Standard SATA plug (above); connectors on the motherboard (red, below).
A harddisk with Serial ATA connected. The red cable on the left is the data cable, the one on the right supplies power.

Serial ATA (SATA or Serial Advanced Technology Attachment) is a standard that has been defined to connect storage devices or optical drives to a computer. The most common standard that was used beforehand was called ATA or IDE; it has been renamed PATA. The main difference between the two lies in the cables: SATA cables have seven wires, PATA cables have 40 or 80. Another difference is that with SATA, there is one cable for each device, while with PATA, all devices are connected to the same cable.

As of 2022, almost all desktop computers have a SATA interface. PATA is very rare nowadays, but some old computers still use it. Computers that still use PATA are mostly used for industrial applications and embedded systems. Some computers (mostly laptops) do not have a SATA interface. They have an M.2 NVME interface to connect NVME SSDs which are based on the PCIE standard. Some laptops also have an embedded flash memory. SATA will most likely disappear from laptops (and some computers) in the future and be replaced with M.2 NVME SSDs.

Technology and transfer speeds

 
Cables used to connect drives: On top, PATA, 80 wires, in the middle, PATA 40 wires, below (blue) SATA

Electric signals transmitted on a parallel bus made of several wires will influence each other, if the transfer speed is increased. This phenomenon is known as crosstalk. Another problem with PATA is that the termination of the bus is not specified. Serial ATA uses low-voltage differential signaling, which avoids most of these problems.

Serial ATA uses 8B/10B encoding. This means that 10 bits are used to transfer 8 bits. The first standard of SATA used 1.5 GBit/second transfer speed (or 1.2 GBit/second usable data rate). This is only slightly faster than the last PATA standard (ATA/133). Later standards doubled this rate, at almost every revision. These values are transfer speeds, because of signalling, the usable speed is 25% lower.

Other benefits are that SATA cables are much easier to handle than PATA cables. Some SATA drives can also be connected and disconnected while the computer is running. This is called hot swapping. Finally, some drives support a technology called "Native Command Queueing". This means that the drive can rearrange the order of what it's told to do so that it gets done faster.

From the first version, SATA has been fast enough for hard drives. The data needs to be read from a number of locations on the drive. Between the locations, the electronic device used for reading and writing has to be repositioned. Even with current drives, this does not happen fast enough so that the 1.2 Gbit/s poses a problem.

Revisions

As of 2016, there are five different revisions of the SATA standard.

Official name(s) Also called net data rate
Gbit/s Mbyte/s
Serial ATA 1.5 Gbit/s SATA I 1.20 150
Serial ATA 3.0 Gbit/s, SATA Revision 2.x SATA II, SATA-300 2.40 300
Serial ATA 6.0 Gbit/s, SATA Revision 3.x SATA III, SATA-600 4.80 600
SATA Express 8.0 Gbit/s (PCIe 3.x), SATA Revision 3.2 7.88 985
SATA Express 16.0 Gbit/s (PCIe 4.0), SATA Revision 3.2 15.76 1,969

SATA Express

SATA Express is a version of the SATA standard that uses the same protocol as PCI Express. Current solid state drives (SSDs) are able to saturate SATA III, specified at 6 Gbit/s. For this reason SATA Express has been introduced.

Compatibility

Diffferent versions of the Serial ATA standard are compatible with each other. This means that older devices can be operated on a newer controller, but they will only support the features and speed of the standard for which they were built. Similarly, devices built for a newer standard can be operated on an older controller. In this case, the controller is the limiting factor, and some of the newer functions may not be supported. An SAS (Serial Attached SCSI) controller is compatible with SATA drives, but a SATA controller is not compatible with SAS drives.

At the level of the operating system, SATA and PATA devices can be made to look the same. At the physical level, they are incompatible however.

Connectors

 
SATA ports on a drive: The short port on the left is used for transmitting data, the long one on the right is used to supply power.

To be usable, the devices using SATA need to be connected to the motherboard. This is probably the most visible difference between SATA and PATA. SATA drives have two different connectors, One connection is for transmitting the data and the other connection is for transmitting power. In some cases, both have been combined into one cable, to connect external drives. The normal case though is that two different connectors are used. Some connectors can be locked in place.

Power connector

Standard connector

 
Standard SATA power cable

PATA specified that power is transmitted using a 4 pin Molex connector. With SATA, this connector. The 4 pin Molex connector has also been used to power floppy drives. SATA changed this connector. With SATA, the power connector and the data connector look similar, but the power connector is wider than the data connector. The standard power connector has 15 pins. It is used for standard 3.5 inch and 2.5 inch drives.

Slimline and micro connector

Smaller form factors can also use a smaller power connector, It has six pins and a coding notch. For smaller drives, there is a connector with 8 pins. A coding notch makes sure that the power connector cannot be connected to the plug which transfers the data.

Data connector

As with the power connector, there are different versions of the data connector, for different applications. The standard connector has 7 pins, and is used for 3.5" and 2.5" drives. The most common other form factors are mSATA, and M.2 (or NGFF).

eSATA and eSATAp

eSATA is a version of SATA which is used to connect external drives. Its plugs are more robust, and its cables are more rugged. In this market, SATA competes with other standards, such as USB or Firewire. Many external drives are standard SATA drives in an external case. To be able to communicate over USB or Firewire, an extra electronic board is needed. This board translates between SATA and the external interface. When eSATA is used, no translation is necessary. Using USB or Firewire may have other benefits though.

There also is a version of eSATA called eSATAp. It combines the pins of the USB, those of SATA, and those of the power connector. This makes it possible to directly connect SATA or USB drives externally, with only one cable. In addition to the data, power is also transmitted over this cable, so no extra power connection is necessary.