A storage device (also called secondary storage or backing storage) keeps programs and data permanently, even when the power is off. Your files, your apps and the operating system itself all live on storage until they are needed, and then they are copied into RAM so the CPU can work on them. We compare storage devices using four features: capacity, access speed, access method and portability.
This lesson follows on from Memory Types and Features. If you did CSEC, Inside the Computer: Input, Processing, Memory, Storage and Output (IPOS) is a short refresher.
Storage and memory are not the same
| Main memory (RAM) | Storage (e.g. hard disk, SSD) | |
| Volatile? | Yes: lost when the power goes | No: kept with the power off |
| Capacity | Smaller (e.g. 8 to 32 GB in a laptop) | Much larger (e.g. 512 GB to several TB) |
| Speed | Very fast (nanoseconds) | Slower (microseconds to milliseconds) |
| Used for | What the CPU is working on now | Keeping files and programs for later |
The four features
Capacity
Capacity is how much data the device can hold, measured in bytes: MB, GB and TB. Remember 1 KB = 1024 bytes, 1 MB = 1024 KB, 1 GB = 1024 MB and 1 TB = 1024 GB. (Drive makers often use 1000 instead of 1024, which is why a new “1 TB” drive shows a little less space on a computer.)
Access speed
Access speed is how quickly data can be found and read or written. Two measures are used:
- Access time: how long it takes to find the data. On a hard disk this is the seek time (moving the head to the right track) plus the rotational delay (waiting for the right sector to spin under the head).
- Data transfer rate: how much data can be moved per second once it has been found, e.g. 150 MB/s.
Devices with moving parts (tape, hard disk, optical disc) are slower to access than solid state devices, which find data electronically.
Access method
The access method is the way the device gets to a particular piece of data:
- Sequential (serial) access: the data is read in order from the start, so to reach a record, every record before it must be passed. Magnetic tape works this way.
- Direct (random) access: the device can go straight to the data using its address. Disks (magnetic and optical) and solid state devices work this way. A hard disk is sometimes called semi-random, because the head goes straight to the track but then waits for the sector to come round.
More on this in Serial, Sequential, Direct (Random) Access and File Organisation and Access Methods.
Try it 1Sequential vs direct access
The same 20 records are stored on a tape and on a disk. Choose a record and watch how each device gets to it. Yellow = passed over (read), green = found.
Portability
Portability is how easily the device (and its data) can be carried and used on another computer. Small size, low weight, no separate power supply, a common connector such as USB, and the ability to survive knocks all make a device more portable. A USB flash drive is very portable; an internal hard disk is not meant to be moved.
Types of storage devices
Magnetic storage: hard disk and tape
A hard disk drive (HDD) stores data magnetically on spinning metal or glass platters. Each platter surface is divided into circular tracks, and each track into sectors. A read/write head on an actuator arm moves across the platter to the right track. Hard disks give a large capacity at a low cost per GB and allow direct access, but because of the moving parts they are slower than SSDs, use more power and can be damaged if dropped while running.

Image: Hard drive.svg by Surachit, CC BY-SA 3.0, via Wikimedia Commons.
Magnetic tape stores data on a long plastic tape coated with magnetic material, wound inside a cartridge. Access is sequential, so finding one file can take a long time. But a tape cartridge holds a huge amount of data (18 TB or more) very cheaply and lasts for years, so tape is used by banks, businesses and data centres for backups and archives, where the data is written and read in order anyway.
Optical storage: CD, DVD and Blu-ray
Optical discs store data as tiny pits and flat areas (lands) along one long spiral track. A laser shines on the track and the drive detects how the light is reflected. Blu-ray uses a blue-violet laser with a shorter wavelength than the red laser of a DVD, so the pits can be smaller and packed closer together, giving more capacity.
- CD: about 700 MB. DVD: 4.7 GB (8.5 GB dual layer). Blu-ray: 25 GB per layer (50 GB dual layer).
- -ROM discs are pressed at the factory and are read only; -R discs can be written once; -RW discs can be erased and rewritten.
- Optical discs allow direct access but are slow, and they are cheap, light and very portable. They are used for distributing films, music and software, and for small backups, but they are much less common now than flash drives and the cloud.
Solid state storage: SSD, flash drive and memory card
Solid state devices store data in flash memory chips, a type of EEPROM (see Memory Types and Features). There are no moving parts, so they find data very quickly, use little power, are silent and survive knocks better than hard disks. They cost more per GB than hard disks, and each cell can only be rewritten a limited number of times.
- Solid state drive (SSD): replaces the hard disk inside most laptops and many desktops, so the computer starts and opens programs much faster.
- USB flash drive: pocket-sized, plugs into a USB port, ideal for carrying files between computers.
- Memory card (SD, microSD): tiny, used in cameras, phones, drones and game consoles.
Cloud storage
Cloud storage keeps your files on a provider’s servers (for example Google Drive or OneDrive), which you reach over the Internet. The real storage devices are hard disks and SSDs in the provider’s data centres. Capacity depends on your plan, there is nothing to carry, and your files are backed up off site. But you need an Internet connection, the speed depends on that connection, and you are trusting the provider with your data. See Cloud Storage vs Local Storage.
Try it 2Compare the storage devices
Tap one or more features. The table keeps only the devices that have all the features you chose. Capacities are typical values in 2026.
| Device | Typical capacity | Access speed | Access method | Portability |
|---|---|---|---|---|
| Hard disk (HDD) | About 1 TB to over 20 TB | Medium: access time of a few milliseconds (moving head, spinning platters) | Direct | Usually internal; external drives can be carried but are easily damaged if dropped |
| Magnetic tape | 18 TB or more per cartridge | Slow to find one item (seconds to minutes), fast once reading in order | Sequential | Cartridges are removed and stored off site |
| CD | 700 MB | Slow | Direct | Very portable, light and cheap |
| DVD | 4.7 GB (8.5 GB dual layer) | Slow | Direct | Very portable |
| Blu-ray | 25 GB per layer (50 GB dual layer) | Slow, but faster than DVD | Direct | Very portable |
| SSD | About 256 GB to 4 TB or more | Very fast: access time well under a millisecond | Direct (random) | Usually internal; external SSDs are small and tough |
| USB flash drive | About 16 GB to 1 TB | Fast to find data; copying speed varies a lot between drives | Direct (random) | Very portable: pocket size, USB plug, no separate power |
| Memory card (SD, microSD) | About 32 GB to 1 TB | Fast to find data; speed class printed on the card | Direct (random) | Very portable, tiny; needs a card slot or reader |
| Cloud storage | Depends on the plan, from a few GB free to several TB | Depends on your Internet connection | Direct, over a network | Nothing to carry: reach it from any device with Internet |
Try it 3Choose the right device
Read the scenario and tap the most suitable storage. A wrong answer gives you a hint, so you can try again.
Capacity and copying time
To check whether data fits, compare its size with the capacity, using the same unit. To estimate the copying time, divide the size by the transfer rate:
time (seconds) = size (MB) ÷ transfer rate (MB/s)
For example, a 4 GB video is 4 × 1024 = 4096 MB. At 100 MB/s it takes 4096 ÷ 100 ≈ 41 seconds. Watch the units: Internet speeds are given in megabits per second (Mbps), and there are 8 bits in a byte, so a 10 Mbps upload is only 10 ÷ 8 = 1.25 MB/s.
Try it 4Will it fit, and how long will it take?
Choose how much data to copy and a device. The calculator checks whether it fits and estimates the copying time. Speeds are examples only; real devices vary. 1 GB = 1024 MB.
Try 4 GB on a DVD-R, then on the cloud. Then try 30 GB on a Blu-ray.
Files live on storage: a C example
In Memory Types and Features we saw that a variable lives in RAM and is lost when the program ends. To keep a value, a program must write it to a file on a storage device. The first program below saves the value of score to a file with fopen and fwrite. The second program, run later (even after a restart), reads it back with fread.
#include <stdio.h>
int main()
{
int score = 95;
FILE *f = fopen("score.dat", "wb");
if (f == NULL)
{
printf("Could not open file\n");
return 1;
}
fwrite(&score, sizeof(score), 1, f);
fclose(f);
printf("Saved %d\n", score);
return 0;
}
#include <stdio.h>
int main()
{
int score = 0;
FILE *f = fopen("score.dat", "rb");
if (f == NULL)
{
printf("Could not open file\n");
return 1;
}
fread(&score, sizeof(score), 1, f);
fclose(f);
printf("Read %d\n", score);
return 0;
}
"wb" means write in binary mode and "rb" means read in binary mode. fwrite copies the bytes of score from RAM to the file, and fread copies them from the file back into RAM. Notice that the second program starts with score = 0, so any other value it prints must have come from storage. If you would rather store data as readable text, see Tutorial: Storing and loading data in a plain textfile.
Practice questions
1. Explain the difference between sequential access and direct access. Give one storage device that uses each.
Show answer
With sequential access the data is read in order from the start, so all the data before the item must be passed (magnetic tape). With direct access the device goes straight to the item using its address (hard disk, SSD, DVD).
2. Why can an SSD find a file much faster than a hard disk can?
Show answer
A hard disk must move its head to the track (seek time) and wait for the sector to rotate under it (rotational delay), so its access time is milliseconds. An SSD has no moving parts and finds data electronically, so its access time is far shorter and it is much faster.
3. A company backs up 40 TB of data every night and keeps the backups for seven years. Suggest a suitable storage medium and justify your choice.
Show answer
Magnetic tape: it has a very large capacity at a low cost per GB, cartridges last for years and can be stored off site, and since a backup is written and restored in order, sequential access is not a problem.
4. State two features that make a USB flash drive more portable than an internal hard disk.
Show answer
For example: it is small and light; it plugs into any USB port and needs no separate power; it has no moving parts, so it is not damaged easily if dropped.
5. Explain why a Blu-ray disc can hold more data than a DVD.
Show answer
Blu-ray uses a blue-violet laser with a shorter wavelength, so the pits can be smaller and the tracks closer together. More pits fit on the disc, so it holds more data (25 GB per layer compared with 4.7 GB).
6. A 2 GB file is uploaded to cloud storage over a 16 Mbps connection. Estimate the time taken. (1 GB = 1024 MB)
Show answer
16 Mbps ÷ 8 = 2 MB/s. 2 GB = 2048 MB. 2048 ÷ 2 = 1024 seconds, about 17 minutes.
7. Give one advantage and one disadvantage of cloud storage compared with a local hard disk.
Show answer
Advantage, for example: files can be reached from any device with Internet, and they are backed up off site. Disadvantage, for example: it needs an Internet connection and the speed depends on it; you rely on the provider to keep your data safe and private.
Homework
- Copy the comparison table from Try it 2 into your notebook. Add a column "One suitable use" and fill it in for each device.
- Find the storage on a computer or phone at home: the type (HDD, SSD or flash), the capacity and how much is free. Write down where you found the information.
Mastery quiz: Storage Devices
Your course badges: loading saved progress…
View badges
No course badges earned yet. Score 8/10 in a lesson quiz to earn its badge.
Saved in this browser on this device. Clearing browser data may remove your badges.
Answer all 10 questions. Earn this lesson’s badge at 8/10 or higher. Read the explanations, revisit the Try it activities and retry as often as you need. These are self-study badges, not formal grades.
Exam tips
- Specimen Unit 1 Paper 01 (2021), Item 8. A multiple-choice item on comparing how quickly different memory and storage devices give access to data (syllabus reference 1.1, Module 1). It tests whether you can rank electronic memory against storage devices, including older removable media you may not have used yourself. Put the options in order of speed in your head (registers, cache, RAM, then storage, with moving parts slowest) before you choose. Open the specimen paper and try it before you check the answer key.
- 2024 Unit 1 Paper 02, Question 1(b). Two parts that compare a storage device with RAM: a hard disk against RAM on access method and access speed, and RAM against a flash drive on volatility and portability, 3 marks each. It tests whether you can use the storage features from this lesson to explain a difference. For each named feature, say something about both devices and give a reason, for example the head has to move to the track and wait for the sector, so hard disk access is measured in milliseconds. Try it first, then compare with the solution on this site: 2024 U1 Q1.
- 2017 and 2018 Unit 2 Paper 02, Question 5. Storage comes back in Unit 2 with virtual memory, where pages of processes that do not fit in RAM are kept on the hard disk. Try the questions, then see the solutions on this site: 2017 U2 Q5 and 2018 U2 Q5.
- More worked answers are on the CS Solutions page.
General advice for storage questions (from the lesson content, not from a particular paper): when asked to choose a device, name it and justify it using the four features, capacity, access speed, access method and portability, linked to the scenario.
Try it 5Quick quiz
Tap an answer. All the questions are self-checks on this lesson.
Previous: Memory Types and Features. Next: the processor (CPU) and how it fetches instructions and data from memory (coming soon in this course; for now see 2009 U1 Q2 Part C). After that, data representation: how the bits on these devices stand for numbers and characters (Decimal to binary, Binary Manipulation).
Syllabus link: CAPE Computer Science (CXC A19/U2/21), Unit 1, Module 1: Computer Architecture. Specific Objective 1: state the purpose of the main components of a computer system (storage devices: capacity, access speed, access method, portability). U1 M1 SO1.
Attributions to media used in this post:
Hard disk diagram: Surachit, CC BY-SA 3.0, via Wikimedia Commons (File:Hard drive.svg).
Updates
7 Nov 2026: Added the shared course badge summary and lesson mastery quiz, with feedback, retries and browser-saved progress.
27 Oct 2026
- Draft created.
28 Oct 2026
- Exam references reworded and quiz questions rewritten.
© 2026 Vedesh Kungebeharry. All rights reserved.