How is data stored on a hard disk drive quizlet?

Data storage on a hard disk drive involves writing and reading magnetic patterns on a series of spinning platters inside the hard drive enclosure. Hard disk drives use non-volatile magnetic storage, meaning the data persists even when the drive is powered off. This makes hard drives well-suited for long term data storage in desktop computers, servers, and data centers.

Some key principles for understanding hard drive data storage include:

– Data is encoded and written electromagnetically in tracks on platters which spin at high speeds.
– The data bits are encoded by the direction of magnetic polarity.
– Read/write heads float just above the platter surfaces on an air bearing and magnetize or detect bit patterns.
– Data is organized in concentric tracks divided into logical block addresses (sectors) as the fundamental storage units.
– Lower level formatting divides tracks radially into sectors and initializes sector headers with control information.
– The file system manages logical block addressing and the mapping of files to LBAs.
– Advanced encoding schemes like perpendicular recording allow for greater bit densities.
– Faster rotational speeds, more platters/heads, and caching improve performance.
– Redundant arrays of inexpensive disks (RAID) provide fault tolerance.

Understanding these fundamental principles helps explain how drives can reliably store vast amounts of data and makes clear the evolution of hard drive technology over decades of advancement. Now we’ll look at each of these aspects of hard drive data storage in more detail.

Magnetic Storage Fundamentals

At the core of any hard disk drive is a stack of magnetically coated platters designed to store data by magnetizing tiny areas of the coating to represent 1s and 0s. The main components involved in reading and writing the magnetic patterns representing data on a hard drive include:

– Platters – smooth circular disks made of glass or aluminum, coated with a thin magnetic layer. Typically multiple platters are stacked on a spindle to provide more surfaces for data storage.

– Read/Write Heads – electromagnetic coils that can flip the magnetic orientation of areas on the platter as they pass over the surfaces. The heads also contain sensor elements to detect magnetic polarity.

– Head Actuator – the mechanism that precision positions the heads over specific tracks and sectors on the platter surfaces.

– Spindle Motor – spins the platters at high RPM rates up to 15,000 RPM in some drives. Faster spin rates reduce seek times.

– Head Actuator Motor – pivots the head actuator arm to move the heads from track to track.

– Controller – the drive’s embedded processor and firmware that performs error checking, wear leveling, caching, etc.

The inner and outer tracks of a hard drive platter have equal byte capacities despite growing in circumference as they extend outwards. This is achieved by squeezing more bits per inch towards the outer edges through increased bit density. The drive controller seamlessly presents a series of logical block addresses (LBAs) to the host system mapping to physical sectors spread across the platter surfaces.

Magnetic Polarity Encoding

Within each microscopic region on a platter’s magnetic coating, the magnetic field aligning the atoms is polarized in either a north or south orientation. These two possibilities for magnetic polarity allow binary 1s and 0s to be encoded. As the platter rotates under the head, the electromagnetic coil can flip regions between north and south to write data. To read the data, the magnetized areas passing under the head induce small electric currents in the reading sensor proportional to the magnetic field alignment.

Early drives used longitudinal recording where the magnetic orientation aligning regions was horizontal or longitudinal. This was replaced by perpendicular recording where the magnetic polarity is set in a vertical/perpendicular north-south alignment. Perpendicular recording allows for greater bit densities as smaller regions can be magnetized.

Tracks and Sectors

Data storage space on a hard drive platter is divided first into concentric tracks circling the disk and further subdivided into sectors representing angular divisions like pizza slices. Tracks located towards the inside of the platter have a smaller circumference than outer tracks. But drives compensate by squeezing more bits into the magnetic coating at the outer tracks.

Fixed block architecture (FBA) is a common hard drive implementation where 512 byte sectors are the minimum addressable storage units. A given platter surface may contain tens of thousands of tracks with each track holding hundreds of sectors. The total sector count can reach into the billions for high capacity drives. Logical block addressing (LBA) allows the host operating system to access any sector by its unique LBA number, abstracting this from the physical locations.

Low Level Formatting

Before a hard drive can reliably store files and data, it must first go through a process called low level formatting. This initializes the sector headers with control information used internally by the drive and assigns LBAs. The process overwrites any existing data. Low level formatting is typically done at the factory but can also be performed by end users. The steps may include:

– Servo track writes – Defines the radial tracks by writing permanent magnetic patterns for the head actuator to follow.

– Sector header writes – Initializes each sector’s header with control info like the LBA and error checking codes.

– Surface analysis – Scans for and remaps any bad sectors or tracks detected.

– Zero fill – Writes zeros to the user data area of each sector.

The result is a working set of concentric tracks divided into sectors addressable by LBA and ready for the host file system.

File System’s Role

While the drive handles the mechanics of storing bits magnetically, the file system in the operating system manages logical addressing and the organization of files. It is the job of the file system to keep track of which LBAs correlate to which files and directories. When a program requests to open a file, the file system translates the filename and path to a list of LBAs where the file’s data is stored. It also organizes the file hierarchy and directory structures.

Common file systems like NTFS, HFS+, ext4, and others have differing ways of organizing files, directories, and metadata. But the file system abstracts this logical view from the physical sectors. The LBAs making up a file may be scattered in a non-contiguous manner across the platters. But to programs and users, it appears as one contiguous address space representing the sequence of bytes making up the file. If new data exceeds the space initially allocated, the file system transparently handles finding available sectors elsewhere and appending them.

Some key responsibilities of the host file system using the raw sectors provided by a hard drive include:

– Tracking file to LBA mappings
– Reading and writing files accordingly
– Managing directory hierarchies
– Allocating and deallocating space
– Orchestrating data access requests
– Maintaining metadata like permissions and timestamps
– Providing caching

Performance Characteristics

Several technical factors determine the performance characteristics of a hard disk drive which store data much slower than RAM, CPU caches, or SSDs. But hard drives continue playing a key role thanks to high capacities and low costs. Some key metrics include:

Access Time – The delay between requesting data and the start of its transfer. Includes seek time, rotational latency, and command processing.

Seek Time – Time for the head actuator to position the heads over the correct track. Seeks are slower crossing more tracks.

Rotational Latency – Delay waiting for the platter to rotate until the requested sector passes under the head. Depends on RPM speed.

Data Transfer Rate – The sequential rate reading or writing data once the head is positioned. Faster drives spin platters faster and use more heads in parallel.

Buffer Size – Larger data buffers or caches on the drive mitigate transfer delays. Ample caching helps manage bursts in IO requests.

Interface Bandwidth – Faster drive interfaces like SAS or SATA Express provide more throughput. May require matching host bus adapter.

RPM Speed – Faster spindle rotation reduces both seek times and rotational latency. 15,000 RPM is a common high performance drive speed.

In addition to these core specs, other factors impacting hard drive performance include the time to ready/park heads during spin up/down and the track recording densities. Overall sustained transfer speeds range from 50-200+ MB/s for high performance drives. Enterprise level drives may incorporate dual actuators and processor ASICs for improved parallelism and processing. Server SANs and RAID arrays use multiple drives in concert for expanded throughput.

Hard Drive Capacities

Ongoing advances in hard drive engineering and technology have enabled enormous storage capacities as areal bit densities steadily increase. Some key innovations expanding capacities over previous decades include:

– Magnetoresistive/Giant Magnetoresistive/Tunneling Magnetoresistive sensors providing heightened sensitivities
– Smaller head gaps and floating heights under 1 microinch above platters
– Stronger error correction coding algorithms fit more bits in the same space
– Perpendicular magnetic recording for increased areal densities
– More platters and heads packed in the same form factor
– Heat-assisted magnetic recording using laser diodes to temporarily heat bits during writes
– Shingled magnetic recording with overlapped tracks like roof shingles
– Higher precision head actuators and servos, permitting narrower tracks and pitch
– Helium filled drives reduce turbulence and flutter for closer platters spacing
– Larger drive diameters enable use of more platters and larger disks

These and other advancements have grown capacities from just megabytes up to today’s multi-terabyte hard drives. Higher densities through recording innovations remain key to future growth. Larger form factors allow more platters which also multiply capacities. While flash memory and solid state drives are replacing hard disks in some roles, HDDs retain a substantial $15+ billion annual market thanks to ongoing tech improvements and low costs per terabyte.

Size Comparisons Over Time

Year Model Capacity
1980 IBM 3370 584 MB
1992 IBM 0663 1 GB
2003 Maxtor DiamondMax Plus 9 120 GB
2009 Seagate Barracuda LP 2 TB
2019 Western Digital Red 14 TB

This table helps illustrate the massive storage capacity growth, doubling roughly annually, as hard drive technology has improved over the decades. Multi-terabyte drives on the horizon hint at continued scaling.

Fault Tolerance With RAID

While the magnetic storage principles used in hard drives has proven reliable, the mechanical nature still leaves them prone to occasional failures. Redundant Arrays of Inexpensive Disks (RAID) help mitigate this by combining multiple drives with parity or mirroring. RAID improves fault tolerance and can even boost performance through striping.

Some common RAID configurations include:

RAID 0 – Block level striping across drives for improved speed. No redundancy.

RAID 1 – Disk mirroring with a duplicate drive storing the same data.

RAID 5 – Block level striping with distributed parity allowing single drive failures.

RAID 6 – Like RAID 5 but with double distributed parity strips allowing two failed drives.

RAID 10 – Striped sets mirrored, combining performance and redundancy.

The choice comes down to performance needs vs. fault tolerance requirements. Enterprise storage arrays and servers often use RAID to improve reliability and throughput. Consumer NAS may also offer RAID capabilities. The operating system works with the RAID adapter or controller to implement RAID processes transparently.

Conclusion

Hard disk drives continue evolving as a mature technology balancing performance, capacity, and costs. Their mechanical nature means they operate much slower than RAM, flash storage, or SSDs. But the low price per terabyte makes them ideal for massive data archives, cloud storage, backups, media libraries, and other large capacity needs. Engineers continue pushing the limits of areal densities through innovations like shingled recording, helium drives, and heat assisted magnetic recording, assuring hard drives have ongoing roles in the storage hierarchy.