Originally (until 1990/91), what is now understood as the interface to the hard disk was not located on the hard disk of consumer disks. This required a controller in the form of an ISA plug-in card. Among other things, this controller addressed the disk via an ST506 interface (with the modulation standards MFM, RLL or ARLL). The capacity of the disk was also dependent on the controller, and the same applied to data reliability. A 20 MB MFM disk could store 30 MB on an RLL controller, but possibly with a higher error rate.
Due to the separation of controller and medium, the latter had to be low-level formatted (sectoring) before use. In contrast to these earlier hard disks with stepper motors, more modern hard disks are equipped with linear motors that require sectoring and, above all, writing of the servo information during manufacture and can otherwise no longer be low-level formatted.
With ESDI, part of the controller was integrated into the drive to increase speed and reliability. SCSI and IDE disks then ended the separation of controller and storage device. Instead of the earlier controllers, they use host bus adapters, which provide a much more universal interface. HBAs exist as separate plug-in cards as well as on motherboards or integrated into chipsets and are often still referred to as "controllers".
Serial ATA interfaces are used almost exclusively as interfaces for internal hard disks in the desktop area today. Until a few years ago, parallel ATA (or IDE, EIDE) interfaces were still common here. However, the IDE interface is still widely used in game consoles and hard disk recorders.
In addition to SATA, SAS and Fibre Channel have become established for servers and workstations. For a long time, mainboards were usually equipped with two ATA interfaces (for max. 4 drives), but these have now been almost completely replaced by (up to 10) SATA interfaces.
A fundamental problem with parallel transmissions is that with increasing speed it becomes more and more difficult to manage different propagation times of the individual bits through the cable as well as crosstalk. For this reason, parallel interfaces are increasingly reaching their limits. Serial lines, especially in conjunction with differential line pairs, now allow significantly higher transmission rates.
ATA (IDE)
Jumpers on an ATA hard disk determine whether it is the drive with address 0 or 1 of the ATA interface (device 0 or 1, often referred to as master or slave respectively). Some models allow a limitation of the capacity of the drive reported to the operating system or BIOS, whereby the hard disk can still be operated in the event of incompatibilities; however, the unreported disk space is wasted.
By specifying the ATA bus address, two hard disks can be connected to one ATA interface of the mainboard. Most mainboards have two ATA interfaces, called primary ATA and secondary ATA, i.e. "first" and "second ATA interface". Therefore, a total of up to four hard disks can be connected to both ATA interfaces of the motherboard. Older motherboard BIOSes only allow the computer to boot from the first ATA interface, and only if the hard disk is jumpered as master.
However, the ATA interfaces are not only used by hard disks, but also by CD-ROM and DVD drives. Thus (without an additional card) the total number of hard disks plus loadable drives (CD-ROM, DVD) is limited to four (floppy disk drives have a different interface). CompactFlash cards can be connected via adapter and used like a hard disk.
There are a few things to keep in mind with extensions:
- The first drive is to be jumped as "Master" - usually the default setting of drives; only a possible second drive on a cable is jumpered to "Slave". Some drives have a third option "Single Drive". This is used when the drive is alone on the cable; if a "slave" drive is added, the first one must be jumped as "master". This option is then often called "Master with Slave present".
- Where master or slave sit (at the end of the cable or "in the middle") doesn't matter (unless both drives are jumpered to Cable Select). "Slave alone" works most of the time, but is not considered cleanly configured and is often prone to interference. Exception: With the newer 80-pin cables, the slave should be connected in the middle; the connectors are labeled accordingly.
The ideal distribution of the drives to the individual ports is disputable. It should be noted that traditionally two devices on the same cable share the speed and that the slower device occupies the bus longer and can thus slow down the faster one. In the common configuration with a hard disk and a CD/DVD drive, it is therefore advantageous to use each of these two devices with its own cable to an interface on the motherboard. In addition to the jumpers, there is an automatic mode for determining the addresses ("cable select"), which however requires suitable connection cables, which were not very common in the past, but have become standard since ATA-5 (80-pin cables).
ESDI
→ Main article: Enhanced Small Disk Interface
Parallel SCSI
The address of parallel SCSI hard disks cannot only be selected between two addresses like IDE hard disks, but between 7 or 15 addresses depending on the controller used. For this purpose there are three or four jumpers on older SCSI drives for defining the address - called SCSI ID number - which allow up to 7 or 15 devices per SCSI bus to be addressed individually. The maximum number of possible devices results from the number of ID bits (three for SCSI or four for Wide-SCSI), taking into account the address #0 occupied by the controller itself. In addition to jumpers, it was rare to find address setting by a small rotary switch. In modern systems the IDs are assigned automatically (according to the order on the cable), and the jumpers are only relevant if this assignment is to be influenced.
In addition there are other jumpers like the (optional) write protection jumper, which allows to lock a hard disk against writing. Furthermore, depending on the model, power-on delays or the startup behavior can be influenced.
SATA
Since 2002 hard disks with Serial ATA (S-ATA or SATA) interface are offered. The advantages over ATA are the higher possible data throughput and the simplified cable routing. Extended versions of SATA have further functions that are particularly relevant for professional applications, such as the ability to exchange data carriers during operation (hot plug). In the meantime, SATA has practically established itself, and the latest hard disks are no longer offered as IDE versions since the transfer rates theoretically possible with IDE have almost been reached.
In 2005, the first hard disks with Serial Attached SCSI (SAS) were introduced as a potential successor to SCSI for the server and storage sector. This standard is partially downward compatible with SATA.
Serial Attached SCSI (SAS)
SAS technology is based on the established SCSI technology, but sends the data serially and does not connect the devices via a common bus, but individually via dedicated ports (or port multipliers). In addition to the higher speed compared to conventional SCSI technology, theoretically more than 16,000 devices can be addressed in a network. Another advantage is the maximum cable length of 10 meters. SATA connectors are compatible with SAS, as are SATA hard disks; however, SAS hard disks require a SAS controller.
Fibre Channel Interface
Communication via Fibre Channel interface is even more powerful and was originally developed primarily for use in storage subsystems. As with USB, the hard disks are not addressed directly, but via an FC controller, FC HUBs or FC switches.
Queuing in SCSI, SATA or SAS data transfer
So-called queues are used above all with SCSI disks and with newer SATA hard disks. These are software procedures as part of the firmware that manage and, if necessary, buffer the data between the request from the computer side and physical access to the storage disk. When queuing, they line up the requests to the disk in a list and sort them according to the physical position on the disk and the current position of the write heads, in order to read as much data as possible with as few revolutions and head positioning as possible. The hard disk's own cache plays a major role here, since the queues are stored in it (see also: Tagged Command Queuing, Native Command Queuing).
Precursor of the serial high-speed interfaces
The first widespread serial interfaces for hard disks were SSA (Serial Storage Architecture, developed by IBM) and Fibre Channel in the variant FC-AL (Fibre Channel-Arbitrated Loop). SSA hard disks are practically no longer manufactured today, but Fibre Channel hard disks continue to be built for use in large storage systems. Fibre Channel refers to the protocol used, not the transmission medium. Therefore, despite their name, these hard disks do not have an optical but an electrical interface.