Sub topic 2
Hard Disk Drives: Platters, Heads, and Spindle Speeds
This chapter assumes you know what a motherboard, a power supply, and an expansion slot are. It also assumes you can tell storage from memory (RAM) and are comfortable with units such as GB, TB, and Gbps. Here you will learn how a hard disk drive (HDD) stores data, which specifications the A+ Core 1 exam tests, and which symptoms point to a failing drive.
How an HDD stores data
An HDD is a storage device that keeps data as magnetic patterns on spinning disks. It keeps the data when power is off, so it is persistent storage. The main parts are:
- Platters: rigid disks coated with a magnetic material. A drive has one or more, stacked on a common shaft. Both surfaces of a platter can hold data.
- Spindle motor: spins all the platters together at a fixed speed.
- Read/write heads: tiny electromagnets, one per platter surface, that sense or change the magnetic pattern. A head floats on a thin cushion of air a few nanometers above the surface. It does not touch the platter during normal operation.
- Actuator arm: a single assembly that moves all the heads together across the platters.
- Controller board: the circuit board on the underside of the drive. It manages the motor, the arm, and the SATA connection to the computer.
The platters are divided into tracks, which are concentric rings. Each track is divided into sectors, the smallest units the drive reads or writes. Sectors are traditionally 512 bytes, and newer drives use 4096 bytes (called Advanced Format).
Why an HDD takes time to answer a request
An HDD is a mechanical device, so each read has physical delays:
- Seek time: the actuator moves the heads to the right track.
- Rotational latency: the drive waits for the right sector to spin under the head. On average this is half a rotation.
- Transfer time: the data is read off the platter and sent to the computer.
Seek time and rotational latency together are the access time. They are the main reason an HDD is much slower than a solid-state drive (SSD) for small, scattered reads. Reading one large file stored in a continuous run is faster, because the heads barely move.
Spindle speed
The spindle speed is how fast the platters rotate, measured in revolutions per minute (RPM). A faster spindle cuts rotational latency and raises the rate at which data passes under the head.
| Spindle speed | Typical use | Trade-offs |
|---|---|---|
| 5400 RPM | Laptops, external drives, low-power systems | Quieter, cooler, lower power use, slower |
| 7200 RPM | Desktops, general-purpose use | The common default. Faster than 5400 RPM, with more noise and heat |
| 10,000 RPM | Servers, workstations | Faster and more expensive. Hotter, louder, and smaller in capacity per dollar |
| 15,000 RPM | Enterprise servers | The fastest HDDs. Highest cost, heat, and power use |
You can estimate average rotational latency as half of one rotation. At 7200 RPM, one rotation takes 60 / 7200 seconds, about 8.33 ms, so the average wait is about 4.17 ms.
def avg_rotational_latency_ms(rpm):
"""Average wait for the right sector: half of one rotation, in milliseconds."""
seconds_per_rotation = 60 / rpm
return seconds_per_rotation / 2 * 1000
for rpm in (5400, 7200, 10000, 15000):
print(f"{rpm} RPM: {avg_rotational_latency_ms(rpm):.2f} ms")This prints 5.56 ms, 4.17 ms, 3.00 ms, and 2.00 ms. A 15,000 RPM drive cuts the wait to about a third of a 5400 RPM drive's.
Capacity and cache
HDD capacity is cheap compared with SSD capacity, and consumer drives reach many terabytes. Capacity depends on how many platters the drive has and how densely data is packed on each one.
Most drives also have a small amount of fast memory called a cache or buffer. It holds recently used data and data waiting to be written. A larger cache can help, but it does not change the mechanical limits of the drive.
HDD strengths and weaknesses
The exam often asks you to compare an HDD with an SSD. For the HDD, remember:
- Cost: lowest cost per gigabyte, so it suits bulk storage.
- Speed: slower, especially for random access.
- Durability: moving parts make it sensitive to shock. Dropping a running laptop can make a head hit a platter, which is called a head crash.
- Noise and heat: you can hear it spin and seek, and it produces more heat than an SSD.
- Power: it uses more power, which matters in laptops.
Identifying drive type on a system
You often need to check which kind of drive a system has before you advise on an upgrade. On Windows, this PowerShell command lists each physical disk with its media type, bus type, and size:
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, BusType, SizeOn Linux, this command lists whole disks. A ROTA value of 1 means a rotational disk, which is an HDD. A value of 0 means a non-rotational drive such as an SSD.
lsblk -d -o NAME,ROTA,SIZE,TYPEDefragmentation
When a file is written in many separate pieces, the heads must jump between them. This is called fragmentation, and it slows an HDD down. Defragmentation rearranges the pieces so each file is stored in a continuous run. It helps HDDs.
Common failure symptoms
A failing HDD often warns you before it dies. Watch for these symptoms:
- Clicking or grinding noises: often a head or actuator problem. Back up and replace the drive at once.
- Slow file access and long freezes: the drive keeps retrying reads of damaged sectors.
- Files that will not open, or corrupted data: bad sectors on the platters.
- Missing drive or failure to boot: the controller board, the cable, or the drive has failed. Check the cable and power connectors first.
- S.M.A.R.T. warnings: S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) is a built-in monitor that reports drive health, and a warning means the drive predicts its own failure.
- Repeated Blue Screen errors or "operating system not found": possible disk corruption or a failing drive.
Disk checking tools can find and mark bad sectors. If the drive is failing, a repair does not fix it. Copy the data to another drive, then replace the failing one.
Common mistakes
- Assuming a higher RPM always means a better choice. A 5400 RPM drive is the right pick when low noise, low heat, and battery life matter more than speed.
- Confusing spindle speed with the SATA interface speed. RPM describes the platters, and the interface is the link to the computer. A fast interface does not make a slow platter fast.
- Defragmenting an SSD.
- Treating a clicking drive as a software problem and running repair tools that stress it further.
Exercise
A user's desktop has a 7200 RPM HDD. It has begun to make repeated clicking sounds, and files take a long time to open. What should you do first, and why?
Show answer
Back up the user's data immediately, if the drive can still be read, and then replace the drive. Clicking and slow access point to a failing head or actuator or to bad sectors. Running repair or defragmentation tools would add stress to a failing drive and could lose data.
Exercise
Using the average rotational latency formula (half of one rotation), calculate the average rotational latency of a 10,000 RPM drive in milliseconds.
Show answer
One rotation takes 60 / 10,000 = 0.006 seconds, which is 6 ms. Half of that is 3 ms.