Study Guide
Secondary and Cloud Storage
How a computer keeps its files permanently: how magnetic hard disk drives, optical discs and solid-state flash memory each store data, how to choose between them, and what cloud storage is and when it is, and is not, the better choice.
Lesson 3.7 Computer Systems
For: Cambridge IGCSE Computer Science learners
Stage: Think
A year of photographs
A school photography club (a made-up one) takes about 3,000 photographs in a year, and wants to keep them all for at least ten years. The club’s computer has RAM, and the editing program the club uses is loaded into that RAM while it runs.
Think it through
Why can’t the club simply leave its photographs in RAM? Give two reasons.
- Hint 1: What happens to RAM when the power is switched off?
- Hint 2: Remember the desk and the locker: which holds more, and which is cleared every evening?
Show what happens
First, RAM is volatile: its contents are lost when the power is switched off, so the photographs would be gone each night. Second, RAM is limited in size and is needed for the programs in use, so it cannot hold years of photographs. The club needs the locker, not the desk.
The club needs secondary storage. It is not accessed directly by the CPU, and it is necessary for the more permanent storage of data: programs, documents, photographs and everything else that must survive a power cut. A program or file has to be copied from secondary storage into RAM before the CPU can use it, and a saved file is copied back.
Secondary storage keeps its contents without power, so it is non-volatile, and it holds far more than RAM. This lesson looks at the three ways a device can do it, called magnetic, optical and solid-state, and then at a fourth choice, storing the data on someone else’s computers, called the cloud.
Check your understanding
Show the answer
Answer: C. It is not accessed directly by the CPU, and it keeps data permanently.
Secondary storage is permanent, and the CPU does not reach it directly.
Stage: Predict
Storing data with magnetism
Imagine a flat disc coated with a material that can be magnetised in tiny patches. Each patch can be magnetised one of two ways, say north-side-up or north-side-down.
Think it through
Using patches that can face one of two ways, how could a disc store the 0s and 1s of a file? What two jobs would a device need to do, to write the file and to read it back?
- Hint 1: Which of the two directions could mean 0? Which could mean 1?
- Hint 2: What would set the direction of a patch? What would detect it later?
Show what happens
Let one direction mean 0 and the other mean 1; a file is then a long pattern of patches. To write, the device needs something that can set the direction of a patch, and to read it needs something that can sense the direction of a patch as it passes. That is how magnetic storage works.
Magnetic storage keeps data as patches of magnetism on the surface of one or more flat, circular platters. The main example is the hard disk drive (HDD).
- Each platter surface is divided into tracks: thin rings, one inside the other.
- Each track is divided into sectors: small pieces of the ring, which are the smallest blocks that are read or written.
- The platters spin on a central spindle, often thousands of times a minute.
- A read/write head sits on the end of a moving arm, a tiny distance above the surface (not touching it). Each head contains an electromagnet. To write, a current through the electromagnet makes a magnetic field that sets the direction of the patch beneath it, and reversing the current reverses the direction. To read, the magnetised patches passing underneath the head cause tiny electrical signals in it, and the pattern of directions is read back as 0s and 1s.
Because the data is magnetism, it stays when the power is switched off.
The operating system asks for a file. These are the movements inside the drive that follow.
Operating system
Step 1 of 5: A request arrives
The drive is asked for the data stored in a particular sector of a particular track.
Arm and read/write head
Step 2 of 5: The head moves to the track
The arm swings the head across the spinning platter until it is above the right track. This is a physical movement, and it takes time.
Platter
Step 3 of 5: The platter turns the sector round
The head waits for the platter to rotate until the right sector passes underneath it.
Read/write head
Step 4 of 5: The patches are detected
As the sector passes, the directions of the magnetised patches produce signals in the head’s electromagnet.
Drive electronics
Step 5 of 5: The signals become data
The pattern of directions is turned into 0s and 1s and sent on to be copied into RAM.
Check your understanding
Show the answer
Answer: A. The head moving to the right track, and the platter turning the right sector under it.
The head must move to the track, and the platter must rotate the sector round.
Stage: Predict
Storing data with light
A shiny silver disc has a mirror-like flat surface. Now imagine that its surface carries a long, thin pattern of tiny dents, and that a very narrow beam of laser light is shone along the pattern and a sensor watches the reflection.
Think it through
Where the surface is flat, the light bounces straight back to the sensor. Where there is a dent, the light is scattered and less returns. How could a pattern of flat parts and dents store data?
- Hint 1: Think of the sensor’s two possible readings: a lot of light, or less light.
Show what happens
The sensor’s two readings, plenty of reflected light or less, can stand for the two binary values. A long pattern of flat parts and dents is then a long pattern of 0s and 1s. This is how an optical disc works.
Optical storage uses a laser to read and write data on a disc. The surface of the disc has a single long track in the shape of a spiral. Along it, flat areas called lands and tiny dents called pits make the pattern of data. A laser shines on the track and a sensor measures the light reflected: a land reflects the light back strongly and a pit scatters it, so the sensor can tell them apart and the pattern is read as 0s and 1s.
How the pattern gets there depends on the disc. The pits of a disc that is sold ready-made, such as a film, are pressed into it when it is made. A recordable disc is written at home by a more powerful laser that makes marks which reflect less light, as pits do.
There are three common kinds of optical disc, of the same size but very different capacity, because a laser with a shorter wavelength can read smaller pits that are packed closer together:
| Disc | Laser | Typical capacity (one layer) |
|---|---|---|
| CD | infrared | about 700 megabytes |
| DVD | red | about 4.7 gigabytes |
| Blu-ray | blue-violet | about 25 gigabytes |
Check your understanding
Show the answer
Answer: C. A shorter-wavelength laser lets its pits be smaller and closer together.
A shorter-wavelength laser reads smaller pits, so more fit on the disc.
Stage: Think
Storing data with no moving parts
A USB drive has nothing that moves: no spinning platter, no arm and no laser. It still keeps its files for years, with no power, in a pocket.
Think it through
A tiny electronic part has no moving pieces and no magnet, yet it must remember a 0 or a 1 with the power off. What could it do, physically, to “remember”?
- Hint 1: What small physical thing could be trapped in a part, and stay there?
- Hint 2: Think of electric charge as something that can be stored and then left alone.
Show what happens
It could trap electric charge in a place from which it cannot easily leak away. A trapped charge is a physical change that stays when the power goes, and the part can later check whether charge is there or not. That is the idea of flash memory.
Solid-state storage is made of electronic chips with no moving parts. It uses flash memory, built from millions of tiny cells. Each cell is a transistor, a very small electronic switch, with two gates:
- the control gate, which the device uses to apply voltages;
- the floating gate, a small piece of material surrounded by insulation, so that any electrons that get into it are trapped.
To write, a voltage at the control gate pushes electrons through the insulation into the floating gate. A cell with trapped charge stands for one binary value (say 0) and a cell with none for the other (1). To read, the device applies a small voltage to the control gate and checks whether the transistor lets a current through: the charge in the floating gate changes that. To erase, a voltage the other way drains the charge out again.
Because the charge stays trapped when the power is off, flash memory is non-volatile. Examples are the solid-state drive (SSD), the SD card and the USB drive.
Flash cells wear out slowly: each one can only be erased and rewritten a limited number of times, so drives are designed to spread the writes around.
The cells can be wired together in two ways, called NAND and NOR (named after the logic gates their wiring resembles).
Do not confuse: NAND flash and NOR flash
- How are the cells wired?NAND
- In series, in strings of cells, which takes up little space.So a chip holds a lot of data, at a low cost for each gigabyte.
- How are the cells wired?NOR
- In parallel, so that each cell can be reached on its own and read quickly.But it takes more space, so a chip holds less and costs more for each gigabyte.
- Where is it used?NAND
- For storing large amounts of data.An SSD, an SD card, a USB drive.
- Where is it used?NOR
- For small amounts of fixed code that must be read quickly.The firmware inside a device.
Check your understanding
Show the answer
Answer: A. It traps electric charge, which stays when the power is off and stands for a binary value.
The floating gate traps charge.
Apply it
Show the answer
Answer: C. The hard disk drive, because its head floats above a spinning platter and a knock can make them touch.
A hard disk drive has moving parts that a knock can damage; an SSD has none.
Stage: Explain
Which kind is it?
Three kinds of secondary storage have now been met. Sort a set of descriptions between them.
| Description | Kind of storage |
|---|---|
| A head with an electromagnet moves over a spinning platter | |
| Pits and lands on one long spiral track | |
| Cells with a control gate and a floating gate | |
| A CD, a DVD or a Blu-ray disc | |
| Has no moving parts at all | |
| A hard disk drive | |
| An SD card, a USB drive or an SSD |
- Magnetic: platters, tracks, sectors, electromagnets. Optical: laser, pits, lands. Solid-state: flash, gates, no moving parts.
Show the completed table
| Description | Kind of storage |
|---|---|
| A head with an electromagnet moves over a spinning platter | magnetic |
| Pits and lands on one long spiral track | optical |
| Cells with a control gate and a floating gate | solid-state |
| A CD, a DVD or a Blu-ray disc | optical |
| Has no moving parts at all | solid-state |
| A hard disk drive | magnetic |
| An SD card, a USB drive or an SSD | solid-state |
Putting the three side by side shows why a computer is often built with more than one. These are typical comparisons, and exact figures change as technology improves:
| Magnetic (HDD) | Optical (CD, DVD, Blu-ray) | Solid-state (SSD, SD card, USB drive) | |
|---|---|---|---|
| Moving parts | Yes: spinning platters and a moving head | Yes: a spinning disc and a moving laser | None |
| Speed of access | Slower: the head and platter must move | Slowest of the three | Fastest |
| Capacity | Very large, many terabytes | Small: from 700 megabytes to about 25 gigabytes for one layer | Large, up to a few terabytes in an SSD |
| Cost for each gigabyte | Low | Low for a disc, but each holds little | Higher than a hard disk drive, and falling |
| Robustness | Can be damaged by knocks | Scratches can make it unreadable | Withstands knocks well, and is silent |
Stage: Apply
Choosing the right storage
The club wants to keep a full archive of 4 terabytes of photographs, which it looks at only occasionally. It will sit on a desk in the school and never be moved. Which kind of secondary storage is best?
- List what matters. A very large capacity, a low cost for each gigabyte, and no need to be carried or to be especially fast.
- Test each kind against that list. An optical disc holds far too little: several hundred discs would be needed. Flash memory is fast and tough, but costs more for each gigabyte, and the club does not need speed or toughness for a drive that never moves.
- Choose, and say why. A magnetic hard disk drive: it holds terabytes cheaply, and its slower access and its moving parts do not matter on a desk.
The answer depends on what matters in the situation, not on one kind being best everywhere.
Apply it
Show the answer
Answer: B. An SD card, because it has no moving parts, is tough and is easily removed.
Portable and often knocked: solid-state.
Apply it
Show the answer
Answer: A. A DVD or Blu-ray disc, because discs are cheap to make and post, and ordinary players read them.
A film for many customers: an optical disc is cheap and widely playable.
Apply it
Show the answer
Answer: B. Eli is right about cost, but the school wants speed, quiet and toughness, which suit an SSD better.
Judge each kind against what the situation needs.
Stage: Discover
Storage on someone else’s computers
A pupil’s phone falls into a river. Two days later, on a new phone, every photograph from the last three years appears again, after the pupil signs in to an account.
Think it through
The photographs were not on the lost phone any more. Where must they have been, and what must the new phone have done to get them?
- Hint 1: The photographs came back without any cable. What does that say about how the new phone reached them?
Show what happens
They must have been kept somewhere else, on a computer that is not the phone, and the new phone fetched them across the internet after the pupil proved who they were by signing in.
Cloud storage keeps a user’s data on servers run by a provider, in large buildings called data centres, and the user reaches it remotely over the internet. The data is not stored on the user’s own device (although a copy may be). That is the opposite of local storage, where the data is on a device the user owns and has with them, such as a drive inside a laptop or a USB drive.
The word “cloud” suggests that data floats about with nothing underneath it. It does not. Cloud storage always needs physical servers and storage devices, which are hard disk drives and solid-state drives like those in this lesson, housed in data centres that need electricity, cooling and staff to run. “The cloud” means the provider’s computers.
Each statement below is an advantage of the cloud compared with local storage, or a disadvantage. Sort them.
| Statement | A or D |
|---|---|
| The files can be opened from a phone, a laptop or a school computer, wherever there is a connection | |
| Opening a very large video takes a long time on a slow connection | |
| If the laptop is stolen, the files are still safe | |
| A fee has to be paid every month for as long as the space is needed | |
| More space can be added within minutes, without buying a new drive | |
| The provider’s computers hold the data, and a break-in at the provider could expose it | |
| A friend can be given access to a folder by sending a link | |
| There is no access at all when there is no internet connection |
- A: remote access, backup if the device is lost, easy to add space and to share. D: needs a connection, a continuing cost, and trusting the provider.
Show the completed table
| Statement | A or D |
|---|---|
| The files can be opened from a phone, a laptop or a school computer, wherever there is a connection | A |
| Opening a very large video takes a long time on a slow connection | D |
| If the laptop is stolen, the files are still safe | A |
| A fee has to be paid every month for as long as the space is needed | D |
| More space can be added within minutes, without buying a new drive | A |
| The provider’s computers hold the data, and a break-in at the provider could expose it | D |
| A friend can be given access to a folder by sending a link | A |
| There is no access at all when there is no internet connection | D |
Stage: Apply
Local, cloud, or both?
Apply it
Show the answer
Answer: B. Keep the records on a local drive the clinic controls, and add a cloud copy for backup.
Weigh the connection, the sensitivity and the risk of loss.
Apply it
Show the answer
Answer: C. The same files can be reached from every device, and survive the loss of one.
The same files on every device is the cloud’s strength.
Apply it
Show the answer
Answer: A. Cloud files sit on physical servers and drives, which can fail; providers protect them by keeping copies.
The cloud is someone else’s hardware.
Stage: Consolidate
Show what you know
Think it through
The photography club will keep 4 terabytes of photographs for ten years, and members want to look at them from home. Explain which storage you would use, and why. You may combine local and cloud storage.
Show a model answer
A good answer picks storage by the needs and says why. For example: “The club keeps the master archive on a hard disk drive at school, because it holds terabytes cheaply and does not need to be moved or very fast. Because members want to see photographs from home, the club also puts copies in cloud storage, which can be reached from any device, though it costs a monthly fee and needs an internet connection. The cloud copy also protects the photographs if the school’s drive fails.”
Check your understanding
Show the answer
Answer: C. Magnetic: the direction of magnetised patches, read by a head.
Magnetic: directions of magnetism.
- Secondary storage is not accessed directly by the CPU, and keeps programs and data permanently. It is non-volatile.
- Magnetic storage (the hard disk drive) has spinning platters divided into tracks and sectors. A read/write head with an electromagnet writes and reads patches of magnetism. It holds a lot cheaply but is slower, and its moving parts can be damaged.
- Optical storage (CD, DVD, Blu-ray) uses a laser to read pits and lands on a spiral track. Discs are cheap and portable but hold little and are slow.
- Solid-state storage (SSD, SD card, USB drive) is flash memory, built from cells with a control gate and a floating gate that traps charge. NAND suits large storage and NOR suits fast reading of small amounts. It has no moving parts, so it is fast, silent and tough, and costs more for each gigabyte.
- Cloud storage keeps data on a provider’s physical servers, reached remotely over the internet. Its advantages are access from any device, protection if a device is lost and easy extra space. Its disadvantages are the need for a connection, a continuing cost and trusting the provider with the data.
- The best storage depends on what the situation needs: judge each kind against it.
Sources and scope
- What this lesson is. The seventh lesson of the Computer Systems module, written for this site. It teaches Cambridge IGCSE Computer Science (0478) points 3.3.2, 3.3.3, 3.3.5 and 3.3.6 (2026 to 2028, version 6): secondary storage, magnetic, optical and solid-state storage, and cloud storage. With Lesson 6 it covers all of point 3.3. Its curriculum links are provisional and imply no endorsement by any examination board. It has not been approved by the site owner.
- Original material. The photography club, the lost phone, the clinic, the journalist and the people named are fictional and were written for this lesson.
- Simplified on purpose. Capacities, speeds and costs are typical figures that change as technology improves. A real hard disk drive has several heads and a more complicated layout of its tracks; a real optical disc stores data in the changes between pits and lands, not simply in whether the surface is a pit or a land; flash cells can hold more than one bit, and the controller of a flash drive does more than this lesson describes (for example, moving data around to spread wear). NAND and NOR are described by their uses, not their circuits.
The number system with only two digits, 0 and 1, in which each column is worth twice the column to its right.
A single binary digit: 0 or 1. The smallest unit of data a computer stores.
Storage on servers in remote data centres that a user reaches over the internet, rather than on a device they own.
The part of a computer that carries out instructions: it fetches each instruction from memory, decodes it and executes it, processing data so that a result can be output.
A magnetic storage device in which read/write heads move over fast-spinning platters to read and write data.
A small electronic circuit that takes one or more binary inputs and produces one binary output according to a fixed rule. A NOT gate has exactly one input.
Secondary storage that records data as tiny patches magnetised in one of two directions on a spinning platter, such as a hard disk drive.
Memory that keeps its contents when the power is switched off.
Secondary storage that records data as pits and lands on a disc and reads them with a laser, such as a CD, DVD or Blu-ray disc.
The computer’s main working memory: it holds the programs and data in use, and can be both read and changed, but loses its contents when the power is switched off.
Storage that the CPU cannot access directly, used to keep programs and data permanently, such as a hard disk drive or a solid-state drive.
A storage device that keeps data in flash memory and has no moving parts.
Secondary storage with no moving parts that keeps data as electrical charge trapped in flash memory cells, as in an SSD, an SD card or a USB drive.
A standard interface for connecting devices to a computer, which sends data serially and can also supply power.
Memory that loses its contents when the power is switched off.
Your progress on this lesson
Saved in this browser only. It is not sent anywhere, does not follow you to another device, and is lost if you clear this site’s data.
This browser is not allowing the site to save progress, so it will be forgotten when you leave the page.