RAM forgets everything the moment the power dies. So where do your photos, games and coursework actually live between sessions? On secondary storage — the permanent, non-volatile home for your files. There are three great families of it, and each writes data in a completely different way: magnetic, solid-state and optical.
Magnetic — the spinning hard disk
A hard disk drive (HDD) stores data as tiny magnetised patches on spinning metal platters, read by a moving arm — like a record player for data. Each patch is magnetised one way for a 1 and the other way for a 0, and the arm sweeps in and out to reach any spot on the disc. Because parts physically move, it's slower and more fragile than an SSD, and a hard knock while it's spinning can damage it. But it's cheap per gigabyte and holds enormous amounts, which makes it ideal for backups and bulk storage where speed matters less than capacity.
Solid-state — no moving parts
A solid-state drive (SSD) uses flash memory — electronic chips with no moving parts, like a giant, permanent version of a USB stick. That makes it much faster, silent, tougher and lower-power, which is why modern laptops boot in seconds. The trade-off: it costs more per gigabyte than an HDD.
Optical — reading with a laser
Optical media — CDs, DVDs, Blu-rays — store data as microscopic pits and bumps read by a laser. They're cheap and great for distributing films or music, but hold relatively little and are slow. Their use is fading as downloads take over.
| Type | How it stores data | Speed | Cost per GB | Moving parts? |
|---|---|---|---|---|
| Magnetic (HDD) | Magnetised patches on platters | Slower | Cheapest | Yes |
| Solid-state (SSD) | Flash memory chips | Fastest | Higher | No |
| Optical (disc) | Pits read by a laser | Slow | Low, small capacity | Yes (spins) |
Tip: match the storage to the job — SSD for speed, HDD for cheap bulk, optical for handing someone a physical disc. All three are non-volatile; that's what makes them storage rather than memory.