Primary and Secondary Storage
Why Computers Need Different Types of Storage
No single storage technology can do everything well. The storage inside a computer is organised into a hierarchy: the fastest storage sits closest to the CPU (registers, then cache), but it is tiny and expensive. Cheaper, larger storage sits further away but takes longer to access. Understanding where each type fits — and why — is essential for your exam.
Storage falls into two broad categories. Primary storage is directly accessible by the CPU: it includes RAM, ROM, cache and flash memory. Secondary storage is not directly accessible by the CPU; files must be loaded into primary storage before the CPU can work with them.
RAM — Random Access Memory
RAM is the computer’s main working memory. Everything the CPU is actively using — the operating system, open applications, files being edited — is held in RAM. RAM is volatile: it loses all its contents when power is removed. It is also read/write: the CPU can both read from it and write to it during normal operation.
The more RAM a computer has, the more programs it can keep open simultaneously without slowing down. A typical modern desktop might have 8 GB to 32 GB of RAM. RAM connects to the CPU via the memory bus; access time is around 50–100 nanoseconds, much slower than cache but far faster than any secondary storage device.
ROM — Read-Only Memory
ROM is non-volatile — it keeps its contents when the power is off. As its name suggests, it is read-only under normal operation: the CPU can read from it but cannot change its contents during normal use. ROM holds firmware such as the BIOS (Basic Input/Output System), which runs first when a computer starts, checking hardware and loading the operating system from secondary storage.
Because ROM retains data without power, it is ideal for storing start-up instructions. Without ROM, a computer would not know how to begin loading the operating system after being switched on.
Flash Memory and Virtual Memory
Flash memory is a form of non-volatile storage that can be both read from and written to without requiring power to retain its data. USB flash drives, SD cards, smartphones and solid-state drives all use flash memory. Because it has no moving parts, it is more durable than magnetic hard drives and faster to access.
Virtual memory is not a physical component but a technique. When RAM fills up, the operating system moves the least-recently-used sections of RAM to a reserved area on the secondary storage device (a ‘page file’ or ‘swap space’). This frees up RAM for the task currently in use. The downside is significant: secondary storage is far slower than RAM, so heavy use of virtual memory causes the system to slow dramatically — a problem called thrashing.
Volatile (loses data without power): RAM, cache. Non-volatile (retains data without power): ROM, flash memory, all secondary storage devices. Virtual memory uses secondary storage, so it is non-volatile, but using it is slow.
Secondary Storage — The Four Types
Secondary storage provides permanent, high-capacity storage for files, programs and data. There are four types you must be able to compare on five criteria: capacity, durability, portability, speed and cost.
Magnetic Storage (HDD)
Magnetic hard disk drives (HDDs) store data as tiny magnetised regions on spinning metal platters. A moving read/write head swings over the platter surface to read or write data. HDDs offer very high capacity (up to several TB for consumer drives) at a relatively low cost per gigabyte. However, the mechanical moving parts make them slower than solid-state alternatives and more vulnerable to physical shock.
Solid-State Storage (SSD)
Solid-state drives (SSDs) use the same flash memory technology as USB drives, but in a larger, faster form. Because there are no moving parts, SSDs access data much faster than HDDs (access times measured in microseconds rather than milliseconds), are silent, run cooler, and withstand knocks and drops far better. The trade-off is cost: SSDs cost significantly more per gigabyte than HDDs, though the gap has narrowed in recent years.
Optical Storage
Optical storage uses a laser to read (and sometimes write) data encoded on a disc surface. CDs hold around 700 MB, DVDs 4.7 GB (or 8.5 GB dual-layer) and Blu-ray discs up to 50 GB. Optical media is highly portable and cheap per disc, but access speed is slow compared to SSDs and HDDs, and discs can be scratched, making them less durable for frequent daily use.
Cloud Storage
Cloud storage stores files on remote servers accessed via the internet, such as Google Drive, OneDrive or iCloud. From the user’s perspective, files are available on any internet-connected device anywhere in the world. Capacity is theoretically unlimited (you simply pay for more storage). However, access speed depends on the internet connection, and there are concerns about security (files held by a third party) and privacy (who can access the data). If the internet connection fails, files may be temporarily inaccessible.
Comparison summary: SSDs are faster and more durable than HDDs but more expensive per GB. HDDs offer higher capacity per pound. Optical media is cheap and portable but slow and scratchable. Cloud storage is accessible anywhere but needs internet and raises security concerns.
The table below compares the four secondary storage types on the five criteria your exam uses:
| Criterion | HDD (Magnetic) | SSD (Solid-State) | Optical (DVD) | Cloud |
|---|---|---|---|---|
| Capacity | Very high (multi-TB) | High (2 TB+) | Low (4.7 GB) | Effectively unlimited |
| Durability | Fragile (moving parts) | Very durable (no moving parts) | Can be scratched | High (server-side redundancy) |
| Portability | Moderate (heavy) | Good (light) | High (small disc) | Very high (any device, anywhere) |
| Speed | Moderate (~100 MB/s) | Fast (~500 MB/s+) | Slow (~10 MB/s) | Depends on internet speed |
| Cost | Low per GB | Higher per GB | Very low per disc | Subscription-based |
This exam uses base-2 prefixes for storage calculations. The specification defines the storage units this way, so a base-10 answer will not match the expected value:
- 1 KB (kilobyte) = \(2^{10}\) = 1,024 bytes
- 1 MB (megabyte) = \(2^{20}\) = 1,048,576 bytes
- 1 GB (gigabyte) = \(2^{30}\) = 1,073,741,824 bytes
For image storage calculations: multiply width (pixels) × height (pixels) × bit depth (bits per pixel). This gives the total in bits. Divide by 8 to get bytes, then divide by 1,024 repeatedly for KB, MB, GB. Forgetting to divide by 8 at the first step is the most common error.