Secondary Storage

Pull the plug on a computer and its main memory (RAM) forgets everything in an instant. Yet your photos, your homework, your games and the operating system itself are all still there when you switch back on. Where were they hiding? On secondary storage — the hardware whose whole job is to keep data safely even when the power is off.

Because it holds on to data without electricity, secondary storage is called non‑volatile. This is where files and programs live when they are not being used. When you open an app, the computer copies it from slow, roomy secondary storage into fast, cramped RAM to actually run it; when you save, the changes are written back to secondary storage so they survive the next power‑off.

Almost every device has some — a laptop's internal drive, the USB stick in your pocket, a DVD, a games console's disk, the memory card in a camera. They come in three main families, and this page is about how each one actually works and when you would choose it.

1. Magnetic storage — the hard disk drive (HDD)

A hard disk drive stores data as microscopic magnetised spots on one or more spinning metal platters. A north‑or‑south magnetic direction stands for a 1 or a 0. The platters whirl at thousands of revolutions per minute while a tiny read/write head on the end of a swinging arm floats a hair's breadth above the surface, magnetising spots to write and sensing them to read.

Because the data is arranged in concentric circular tracks, the head has to physically move to the right track and then wait for the spot to spin round underneath it. Those moving parts make HDDs the slowest family and the most easily damaged by a knock — but they are cheap per gigabyte and come in huge capacities (many terabytes), which is why they still fill servers and cheap desktops.

2. Optical storage — CD, DVD and Blu‑ray

Optical discs store data along one enormously long spiral track as a pattern of microscopic bumps and flats — traditionally called pits and lands. A laser shines on the spinning disc: a pit and a land reflect the light differently, and the drive turns that changing reflection into 1s and 0s.

The three types are really the same idea with a shorter‑wavelength laser each generation, so the pits can be packed tighter and the disc holds more:

Optical discs are cheap, light and easy to post, which made them perfect for selling music, films and game installers. But they are low capacity by modern standards, slow, and scratch easily — so they are fading fast in the age of downloads and streaming.

3. Solid‑state storage — SSDs and flash

Solid‑state storage has no moving parts at all. Instead of magnetism or lasers, it traps electrical charge inside billions of tiny flash memory cells; the presence or absence of charge stores a 1 or a 0, and the charge stays put with the power off. The same technology appears as a solid‑state drive (SSD) inside a laptop, as a USB flash drive, and as the memory card in a phone or camera.

With nothing to spin or seek, there is no waiting for a head to move — so solid‑state is by far the fastest family, silent, low‑power and shock‑resistant (great for something you carry around). The trade‑off is cost: it is the most expensive per gigabyte, though prices keep falling and SSDs have now replaced HDDs in most new laptops and phones.

A little. Every time a flash cell is erased and rewritten it takes a tiny amount of wear, so a cell has a limited number of write cycles (still tens of thousands or more). Drives spread writes evenly across all their cells — a trick called wear levelling — so in normal use an SSD easily outlasts the computer it lives in. Reading data causes no wear at all.

Comparing the three families

There is no single "best" secondary storage — each family wins on some measures and loses on others. The usual things to compare are capacity, speed, cost per gigabyte, durability and portability.

Magnetic (HDD) Optical (CD/DVD/Blu‑ray) Solid‑state (SSD/flash)
How it works Magnetised spots on spinning platters Pits & lands read by a laser Charge trapped in flash cells (no moving parts)
Capacity Very high (many TB) Low (0.7–50 GB) High (up to several TB)
Speed Slow Slow Very fast
Cost per GB Low (cheapest) Very low per disc, but tiny capacity High
Durability Fragile — damaged by knocks Scratches easily Shock‑resistant, no moving parts
Portability Bulky, heavy Light, easy to post Very portable (USB stick, card)

Notice the pattern: magnetic gives the most gigabytes for your money, solid‑state gives the most speed and toughness, and optical gives a cheap, mailable disc for distributing a fixed set of files.

Choosing the right type

In an exam you will often be asked to recommend a storage type for a scenario and justify it. The trick is to match the scenario's priority to a family's strength:

The single most common mistake is muddling secondary storage with main memory (RAM). They are completely different jobs:

A good sanity check: if the power cut would lose it, it was in RAM; if it survives the power cut, it was on secondary storage. "I have 8 GB of memory and 512 GB of storage" means 8 GB of RAM to work in and 512 GB to keep things. See RAM vs ROM for the memory side of the story.

Don't just answer "SSD" because it is newest, or "HDD" because it is biggest. Read what the scenario prioritises. A cheap bulk backup of finished videos values cost and capacity (HDD), while a laptop that must boot fast and get knocked about values speed and durability (SSD). Marks come from linking your choice to the right property — "an SSD, because it has no moving parts so it is faster and survives being dropped" — not from naming a type on its own.