# Magnetic-tape data storage

Magnetic-tape data storage is a system for storing digital information on magnetic tape using digital recording.
Tape was an important medium for primary data storage in early computers, typically using large open reels of 7-track, later 9-track tape. Modern magnetic tape is most commonly packaged in cartridges and cassettes, such as the widely supported Linear Tape-Open (LTO) and IBM 3592 series. The device that performs the writing or reading of data is called a tape drive. Autoloaders and tape libraries are often used to automate cartridge handling and exchange. Compatibility was important to enable transferring data.
Tape data storage is now used more for system backup, data archive and data exchange. The low cost of tape has kept it viable for long-term storage and archive.

## Open reels

Initially, magnetic tape for data storage was wound on 10.5-inch (27 cm) reels. This standard for large computer systems persisted through the late 1980s, with steadily increasing capacity due to thinner substrates and changes in encoding. Tape cartridges and cassettes were available starting in the mid-1970s and were frequently used with small computer systems. With the introduction of the IBM 3480 cartridge in 1984, described as "about one-fourth the size ... yet it stored up to 20 percent more data", large computer systems started to move away from open-reel tapes and towards cartridges.

### UNIVAC

Magnetic tape was first used to record computer data in 1951 on the UNIVAC I. The UNISERVO drive recording medium was a thin metal strip of 0.5-inch (12.7 mm) wide nickel-plated phosphor bronze. Recording density was 128 characters per inch (198 micrometres per character) on eight tracks at a linear speed of 100 in/s (2.54 m/s), yielding a data rate of 12,800 characters per second. Of the eight tracks, six were data, one was for parity, and one was a clock, or timing track. Making allowances for the empty space between tape blocks, the actual transfer rate was around 7,200 characters per second. A small reel of mylar tape provided separation between the metal tape and the read/write head.

### IBM formats

IBM computers from the 1950s used ferric-oxide-coated tape similar to that used in audio recording. IBM's technology soon became the de facto industry standard. Magnetic tape dimensions were 0.5-inch (12.7 mm) wide and wound on removable reels. Different tape lengths were available with 1,200 feet (370 m) and 2,400 feet (730 m) on mil and one half thickness being somewhat standard. During the 1980s, longer tape lengths such as 3,600 feet (1,100 m) became available using a much thinner PET film. Most tape drives could support a maximum reel size of 10.5 inches (267 mm). A so-called mini-reel was common for smaller data sets, such as for software distribution. These were 7-inch (18 cm) reels, often with no fixed length—the tape was sized to fit the amount of data recorded on it as a cost-saving measure.
CDC used IBM-compatible 1⁄2-inch (13 mm) magnetic tapes, but also offered a 1-inch-wide (25 mm) variant, with 14 tracks (12 data tracks corresponding to the 12-bit word of CDC 6000 series peripheral processors, plus 2 parity bits) in the CDC 626 drive.
Early IBM tape drives, such as the IBM 727 and IBM 729, were mechanically sophisticated floor-standing drives that used vacuum columns to buffer long u-shaped loops of tape. Between servo control of powerful reel motors, a low-mass capstan drive, and the low-friction and controlled tension of the vacuum columns, fast start and stop of the tape at the tape-to-head interface could be achieved. The fast acceleration is possible because the tape mass in the vacuum columns is small; the length of tape buffered in the columns provides time to accelerate the high-inertia reels. When active, the two tape reels thus fed tape into or pulled tape out of the vacuum columns, intermittently spinning in rapid, unsynchronized bursts, resulting in visually striking action. Stock shots of such vacuum-column tape drives in motion were emblematically representative of computers in movies and television.
Early half-inch tape had seven parallel tracks of data along the length of the tape, allowing 6-bit characters plus 1 bit of parity written across the tape. This was known as 7-track tape. With the introduction of the IBM System/360 mainframe, 9-track tapes were introduced to support the new 8-bit characters that it used. The end of a file was designated by a special recorded pattern called a tape mark, and end of the recorded data on a tape by two successive tape marks. The physical beginning and end of usable tape was indicated by reflective adhesive strips of aluminum foil placed on the backside.
Recording density increased over time. Common 7-track densities started at 200 characters per inch (CPI), then 556, and finally 800; 9-track tapes had densities of 800 (using NRZI), then 1600 (using PE), and finally 6250 (using GCR). This translates into about 5 megabytes to 140 megabytes per standard length (2,400 ft, 730 m) reel of tape. Effective density also increased as the interblock gap (inter-record gap) decreased from a nominal 3⁄4 inch (19 mm) on 7-track tape reel to a nominal 0.30 inches (7.6 mm) on a 6250 bpi 9-track tape reel.
At least partly due to the success of the System/360, and the resultant standardization on 8-bit character codes and byte addressing, 9-track tapes were very widely used throughout the computer industry during the 1970s and 1980s. IBM discontinued new reel-to-reel products replacing them with cartridge based products beginning with its 1984 introduction of the cartridge-based 3480 family.

### DEC format

LINCtape, and its derivative, DECtape were variations on this "round tape". They were essentially a personal storage medium, used tape that was 0.75 inches (19 mm) wide and featured a fixed formatting track which, unlike standard tape, made it feasible to read and rewrite blocks repeatedly in place. LINCtapes and DECtapes had similar capacity and data transfer rate to the diskettes that displaced them, but their access times were on the order of thirty seconds to a minute.

## Cartridges and cassettes

In the context of magnetic tape, the term cassette or cartridge means a length of magnetic tape in a plastic enclosure with one or two reels for controlling the motion of the tape. The type of packaging affects the load and unload times as well as the length of tape that can be held. In a single-reel cartridge, there is a takeup reel in the drive while a dual reel cartridge has both takeup and supply reels in the cartridge. A tape drive uses one or more precisely controlled motors to wind the tape from one reel to the other, passing a read/write head as it does.
A different type is the endless tape cartridge, which has a continuous loop of tape wound on a special reel that allows tape to be withdrawn from the center of the reel and then wrapped up around the edge, and therefore does not need to rewind to repeat. This type is similar to a single-reel cartridge in that there is no take-up reel inside the tape drive.
The IBM 7340 Hypertape drive, introduced in 1961, used a dual reel cassette with a 1-inch-wide (2.5 cm) tape capable of holding 2 million six-bit characters per cassette.
In the 1970s and 1980s, audio Compact Cassettes were frequently used as an inexpensive data storage system for home computers, or in some cases for diagnostics or boot code for larger systems such as the Burroughs B1700. Compact cassettes are logically, as well as physically, sequential; they must be rewound and read from the start to load data. Early cartridges were available before personal computers had affordable disk drives, and could be used as random access devices, automatically winding and positioning the tape, albeit with access times of many seconds.
In 1984 IBM introduced the 3480 family of single reel cartridges and tape drives which were then manufactured by a number of vendors through at least 2004. Initially providing 200 megabytes per cartridge, the family capacity increased over time to 2.4 gigabytes per cartridge. DLT (Digital Linear Tape), also a cartridge-based tape, was available beginning 1984 but as of 2007 future development was stopped in favor of LTO.
In 2003 IBM introduced the 3592 family to supersede the IBM 3590. While the name is similar, there is no compatibility between the 3590 and the 3592. Like the 3590 and 3480 before it, this tape format has 1⁄2-inch (13 mm) tape spooled into a single reel cartridge. Initially introduced to support 300 gigabytes, the sixth generation released in 2018 supports a native capacity of 20 terabytes.
Linear Tape-Open (LTO) single-reel cartridge was announced in 1997 at 100 gigabytes and in its eighth generation supports 12 terabytes in the same sized cartridge. As of 2019 LTO has completely displaced all other tape technologies in computer applications, with the exception of some IBM 3592 family at the high-end.

## Technical details
### Linear density

Bytes per inch (BPI) is the metric for the density at which data is stored on magnetic media. The term BPI can refer to bits per inch, but more often refers to bytes per inch.
The term BPI can mean bytes per inch when the tracks of a particular format are byte-organized, as in nine-track tapes.

### Tape width

The width of the media is the primary classification criterion for tape technologies. One-half-inch (13 mm) has historically been the most common width of tape for high-capacity data storage. Many other sizes exist and most were developed to either have smaller packaging or higher capacity.

### Recording method

Recording method is also an important way to classify tape technologies, generally falling into two categories: linear and scanning.

#### Linear

The linear method arranges data in long parallel tracks that span the length of the tape. Multiple tape heads simultaneously write parallel tape tracks on a single medium. This method was used in early tape drives. It is the simplest recording method, but also has the lowest data density.
A variation on linear technology is linear serpentine recording, which uses more tracks than tape heads. Each head still writes one track at a time. After making a pass over the whole length of the tape, all heads shift slightly and make another pass in the reverse direction, writing another set of tracks. This procedure is repeated until all tracks have been read or written. By using the linear serpentine method, the tape medium can have many more tracks than read/write heads. Compared to simple linear recording, using the same tape length and the same number of heads, data storage capacity is substantially higher.

#### Scanning

Scanning recording methods write short dense tracks across the width of the tape medium, not along the length. Tape heads are placed on a drum or disk which rapidly rotates while the relatively slow-moving tape passes it.
An early method used to get a higher data rate than the prevailing linear method was transverse scan. In this method, a spinning disk with the tape heads embedded in the outer edge is placed perpendicular to the path of the tape. This method is used in Ampex's DCRsi instrumentation data recorders and the old Ampex quadruplex videotape system. Another early method was arcuate scan. In this method, the heads are on the face of a spinning disk which is laid flat against the tape. The path of the tape heads forms an arc.
Helical scan recording writes short dense tracks in a diagonal manner. This method is used by virtually all current videotape systems and several data tape formats.

### Block layout and speed matching

In a typical format, data is written to tape in blocks with inter-block gaps between them, and each block is written in a single operation with the tape running continuously during the write. However, since the rate at which data is written or read to the tape drive varies as a tape drive usually has to cope with a difference between the rate at which data goes on and off the tape and the rate at which data is supplied or demanded by its host.
Various methods have been used alone and in combination to cope with this difference. If the host cannot keep up with the tape drive transfer rate, the tape drive can be stopped, backed up, and restarted (known as shoe-shining). A large memory buffer can be used to queue the data. In the past, the host block size affected the data density on tape, but on modern drives, data is typically organized into fixed-sized blocks which may or may not be compressed or encrypted, and host block size no longer affects data density on tape. Modern tape drives offer a speed matching feature, where the drive can dynamically decrease the physical tape speed as needed to avoid shoe-shining.
In the past, the size of the inter-block gap was constant, while the size of the data block was based on host block size, affecting tape capacity – for example, on count key data storage. On most modern drives, this is no longer the case. Linear Tape-Open type drives use a fixed-size block for tape (a fixed-block architecture), independent of the host block size, and the inter-block gap is variable to assist with speed matching during writes.
On drives with compression, the compressibility of the data will affect the capacity.

### Sequential access to data

Tape is characterized by sequential access to data. While tape can provide fast data transfer, it takes tens of seconds to load a cassette and position the tape head to selected data. By contrast, hard disk technology can perform the equivalent action in tens of milliseconds (3 orders of magnitude faster) and can be thought of as offering random access to data.
File systems require data and metadata to be stored on the data storage medium. Storing metadata in one place and data in another, as is done with disk-based file systems, requires repositioning activity. As a result, most tape systems use a simplified filesystem in which files are addressed by number, not by filename. Metadata such as file name or modification time is typically not stored at all. Tape labels store such metadata, and they are used for interchanging data between systems. File archiver and backup tools have been created to pack multiple files along with the related metadata into a single tape file. Serpentine tape drives (e.g., QIC) offer improved access time by switching to the appropriate track; tape partitions are used for directory information. The Linear Tape File System is a method of storing file metadata on a separate part of the tape. This makes it possible to copy and paste files or directories to a tape as if it were a disk, but does not change the fundamental sequential access nature of tape.

### Access time

Tape has a long random access time since the deck must wind an average of one-third the tape length to move from one arbitrary position to another. Tape systems attempt to alleviate the intrinsic long latency, either using indexing, where a separate lookup table (tape directory) is maintained which gives the physical tape location for a given data block number (a must for serpentine drives), or by marking blocks with a tape mark that can be detected while winding the tape at high speed.

### Data compression

Most tape drives now include some kind of lossless data compression. There are several algorithms that provide similar results: LZW (widely supported), IDRC (Exabyte), ALDC (IBM, QIC) and DLZ1 (DLT). Embedded in tape drive hardware, these compress a relatively small buffer of data at a time, so cannot achieve extremely high compression even of highly redundant data. A ratio of 2:1 is typical, with some vendors claiming 2.6:1 or 3:1. The ratio actually obtained depends on the nature of the data so the compression ratio cannot be relied upon when specifying the capacity of equipment, e.g., a drive claiming a compressed capacity of 500 GB may not be adequate to back up 500 GB of real data. Data that is already stored efficiently may not allow any significant compression and a sparse database may offer much larger factors. Software compression can achieve much better results with sparse data, but uses the host computer's processor, and can slow the backup if the host computer is unable to compress as fast as the data is written.
The compression algorithms used in low-end products are not optimally effective, and better results may be obtained by turning off hardware compression and using software compression (and encryption if desired) instead.
Plain text, raw images, and database files (TXT, ASCII, BMP, DBF, etc.) typically compress much better than other types of data stored on computer systems. By contrast, encrypted data and pre-compressed data (PGP, ZIP, JPEG, MPEG, MP3, etc.) normally increase in size if data compression is applied. In some cases, this data expansion can be as much as 15%.

### Encryption

Standards exist to encrypt tapes. Encryption is used so that even if a tape is stolen, the thieves cannot use the data on the tape. Key management is crucial to maintain security. Compression is more efficient if done before encryption, as encrypted data cannot be compressed effectively due to the entropy it introduces. Some enterprise tape drives include hardware that can quickly encrypt data.

### Cartridge memory and self-identification

Some tape cartridges, notably LTO cartridges, have small associated data storage chips built in to record metadata about the tape, such as the type of encoding, the size of the storage, dates and other information. It is also common for tape cartridges to have bar codes on their labels in order to assist an automated tape library.

## Viability

Tape remains viable in modern data centers because:
* it is the lowest cost medium for storing large amounts of data;
* as a removable medium it allows the creation of an air gap that can prevent data from being hacked, encrypted or deleted;
* its longevity allows for extended data retention which may be required by regulatory agencies.
The lowest cost tiers of cloud storage can be supported by tape.

## High-density magnetic media

In 2002, Imation received a US$11.9 million grant from the U.S. National Institute of Standards and Technology for research into increasing the data capacity of magnetic tape.
In 2014, Sony and IBM announced that they had been able to record 148 gigabits per square inch with magnetic tape media developed using a new vacuum thin-film forming technology able to form extremely fine crystal particles, a tape storage technology with the highest reported magnetic tape data density, 148 Gbit/in² (23 Gbit/cm²), potentially allowing a native tape capacity of 185 TB. It was further developed by Sony, with announcement in 2017, about reported data density of 201 Gbit/in² (31 Gbit/cm²), giving standard compressed tape capacity of 330 TB.
In May 2014, Fujifilm followed Sony and made an announcement that it will develop a 154 TB tape cartridge in conjunction with IBM, which will have an areal data storage density of 85.9 GBit/in² (13.3 billion bits per cm²) on linear magnetic particulate tape. The technology developed by Fujifilm, called NANOCUBIC, reduces the particulate volume of BaFe magnetic tape, simultaneously increasing the smoothness of the tape, increasing the signal to noise ratio during read and write while enabling high-frequency response.
In December 2020, Fujifilm and IBM announced technology that could lead to a tape cassette with a capacity of 580 terabytes, using strontium ferrite as the recording medium.

## Chronological list of tape formats

* 1951: UNISERVO
* 1952: IBM 7-track
* 1958: TX-2 Tape System
* 1961: IBM 7340 Hypertape
* 1962: LINCtape
* 1963: DECtape
* 1964: 9-track
* 1964: Magnetic tape selectric typewriter
* 1966: 8-track tape
* 1972: Quarter-inch cartridge (QIC)
* 1975: KC standard, Compact Cassette
* 1976: DC100
* 1977: Tarbell Cassette Interface
* 1977: Commodore Datasette
* 1979: DECtape II cartridge
* 1979: Exatron Stringy Floppy
* 1981: IBM PC Cassette Interface
* 1983: Sinclair ZX Microdrive
* 1984: Sinclair QL Microdrive
* 1984: Rotronics Wafadrive
* 1984: IBM 3480 cartridge
* 1984: Digital Linear Tape (DLT)
* 1986: SLR
* 1987: Data8
* 1989: Digital Data Storage (DDS) on Digital Audio Tape (DAT)
* 1992: Ampex DST
* 1994: Mammoth
* 1995: IBM 3590
* 1995: StorageTek Redwood SD-3
* 1995: Travan
* 1996: AIT
* 1997: IBM 3570 MP
* 1998: StorageTek T9840
* 1999: VXA
* 2000: StorageTek T9940
* 2000: LTO-1
* 2003: SAIT
* 2003: LTO-2
* 2003: 3592
* 2005: LTO-3
* 2005: TS1120
* 2006: T10000
* 2007: LTO-4
* 2008: TS1130
* 2008: T10000B
* 2010: LTO-5
* 2011: TS1140
* 2011: T10000C
* 2012: LTO-6
* 2013: T10000D
* 2014: TS1150
* 2015: LTO-7
* 2017: TS1155
* 2017: LTO-8
* 2018: TS1160
* 2021: LTO-9
* 2023: TS1170