Information is written to and read from the storage medium as it moves past devices called
read-and-write heads that operate very close (often tens of nanometers) over the magnetic surface. The read-and-write head is used to detect and modify the magnetisation of the material immediately under it. There are two magnetic polarities, each of which is used to represent either 0 or 1. The magnetic surface is conceptually divided into many small sub-
micrometer-sized magnetic regions, referred to as magnetic domains, (although these are not
magnetic domains in a rigorous physical sense), each of which has a mostly uniform magnetisation. Due to the
polycrystalline nature of the magnetic material, each of these magnetic regions is composed of a few hundred magnetic
grains. Magnetic grains are typically 10 nm in size and each form a single true
magnetic domain. Each magnetic region in total forms a
magnetic dipole which generates a
magnetic field. In older
hard disk drive (HDD) designs the regions were oriented horizontally and parallel to the disk surface, but for newer disks, the orientation was changed to
perpendicular to allow for closer magnetic domain spacing. Older hard disk drives used
iron(III) oxide (Fe2O3) as the magnetic material, but current disks use a
cobalt-based alloy. For reliable storage of data, the recording material needs to resist self-demagnetisation, which occurs when the magnetic domains repel each other. Magnetic domains written too close together in a weakly magnetisable material will degrade over time due to rotation of the
magnetic moment of one or more domains to cancel out these forces. The domains rotate sideways to a halfway position that weakens the readability of the domain and relieves the magnetic stresses. A write head magnetises a region by generating a strong local magnetic field, and a read head detects the magnetisation of the regions. Early HDDs used an
electromagnet both to magnetise the region and to then read its magnetic field by using
electromagnetic induction. Later versions of inductive heads included Metal In Gap (MIG) heads and
thin-film heads. As data density increased, read heads using
magnetoresistance (MR) came into use; the electrical resistance of the head changed according to the strength of the magnetism from the platter. Later development made use of
spintronics; in read heads, the magnetoresistive effect was much greater than in earlier types, and was dubbed
"giant" magnetoresistance (GMR). In today's heads, the read and write elements are separate, but in close proximity, on the head portion of an actuator arm. The read element is typically
magneto-resistive while the write element is typically thin-film inductive. The heads are kept from contacting the platter surface by the air that is extremely close to the platter; that air moves at or near the platter speed. The record and playback head are mounted on a block called a slider, and the surface next to the platter is shaped to keep it just barely out of contact. This forms a type of
air bearing. == Magnetic recording classes ==