How a hard drive stores data on spinning platters
A hard disk drive, or HDD, holds one or more rigid platters coated with magnetic material. The platters spin at a fixed speed, often 5,400 or 7,200 revolutions per minute. A head on a moving arm floats just above the surface and senses or changes the magnetic direction of tiny regions, which represent bits.
Data sits in circular tracks split into sectors. The arm must first move to the right track, called seek time. Then it waits for the sector to rotate under the head, called rotational latency.
How an SSD stores data in flash cells
A solid-state drive, or SSD, stores bits in NAND flash cells. Each cell traps electrical charge in an insulated layer, and the amount of charge sets the stored value. A controller chip maps the addresses the computer uses to physical locations in the flash.
Flash is read and written in small units called pages but erased in larger blocks. Each cell survives only a limited number of erase cycles. The controller therefore spreads writes across the chips, a method called wear leveling.
Worked example: access time for one random read
Take a 7,200 rpm HDD. One revolution takes 60 / 7,200 = 0.00833 seconds, or 8.33 ms. On average the sector is half a turn away, so rotational latency is 8.33 / 2 = 4.17 ms.
Assume a typical average seek time of 9 ms. Total access time is 9 + 4.17 = 13.17 ms. If an SSD responds in about 0.1 ms, it is roughly 13.17 / 0.1 = 132 times quicker for one random read.
Common misconceptions
Some people think SSDs wear out almost at once. Flash cells do have a write limit, but normal use usually stays well below it. Others think SSDs are better in every way, yet HDDs usually cost less per terabyte. Defragmenting also does not help an SSD, because no head travels, and the extra writes only use up cell life.
Where each type is used
Most current laptops and phones use flash storage because it is quiet, light and resistant to shocks. Data centers use both: SSDs for databases needing fast random access and HDDs for bulk storage. Desktops often pair a small SSD for the operating system with a large HDD for files.
Key terms
- Platter
- A rigid disk coated with magnetic material inside a hard drive.
- Seek time
- The time the arm takes to move the head to the correct track.
- Rotational latency
- The wait for the target sector to rotate under the head.
- NAND flash
- Memory made of cells that hold data as trapped electrical charge and keep it without power.
- Controller
- The chip in an SSD that maps addresses, manages writes and spreads wear.
- Wear leveling
- Spreading writes across flash cells so none reaches its erase limit early.
