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.

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

Which statement about secondary storage is correct?
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?

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.

Reading one file from a hard disk drive

The operating system asks for a file. These are the movements inside the drive that follow.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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

Which two physical movements make a hard disk drive slower to reach data than RAM is?
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?

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:

DiscLaserTypical capacity (one layer)
CDinfraredabout 700 megabytes
DVDredabout 4.7 gigabytes
Blu-rayblue-violetabout 25 gigabytes

Check your understanding

Why can a Blu-ray disc hold much more data than a CD?
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”?

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

What does the floating gate of a flash memory cell do?
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

A laptop is dropped from a desk while it is switched on and its drive is working. Which kind of drive is more likely to lose data or be damaged, and why?
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.

Which kind of secondary storage does each description fit? Type magnetic, optical or solid-state.
DescriptionKind 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

    Show the completed table
    DescriptionKind of storage
    A head with an electromagnet moves over a spinning plattermagnetic
    Pits and lands on one long spiral trackoptical
    Cells with a control gate and a floating gatesolid-state
    A CD, a DVD or a Blu-ray discoptical
    Has no moving parts at allsolid-state
    A hard disk drivemagnetic
    An SD card, a USB drive or an SSDsolid-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 partsYes: spinning platters and a moving headYes: a spinning disc and a moving laserNone
    Speed of accessSlower: the head and platter must moveSlowest of the threeFastest
    CapacityVery large, many terabytesSmall: from 700 megabytes to about 25 gigabytes for one layerLarge, up to a few terabytes in an SSD
    Cost for each gigabyteLowLow for a disc, but each holds littleHigher than a hard disk drive, and falling
    RobustnessCan be damaged by knocksScratches can make it unreadableWithstands 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?

    1. List what matters. A very large capacity, a low cost for each gigabyte, and no need to be carried or to be especially fast.
    2. 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.
    3. 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

    A wildlife photographer’s camera is carried through forests and is often knocked, and the photographs must be removed from it and put on a computer. Which storage is most suitable inside the camera, and why?
    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

    A small company sells a film to customers by post, and customers play it in a player at home. Which storage suits the film itself, and why?
    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

    A school wants laptops that start quickly, are quiet and last when carried between lessons. Eli says: “A hard disk drive is the better choice because it holds more for the money.” What is the best reply?
    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?

    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.

    Is each statement an advantage (A) or a disadvantage (D) of cloud storage compared with storing the data locally? Type A or D.
    StatementA 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

      Show the completed table
      StatementA or D
      The files can be opened from a phone, a laptop or a school computer, wherever there is a connectionA
      Opening a very large video takes a long time on a slow connectionD
      If the laptop is stolen, the files are still safeA
      A fee has to be paid every month for as long as the space is neededD
      More space can be added within minutes, without buying a new driveA
      The provider’s computers hold the data, and a break-in at the provider could expose itD
      A friend can be given access to a folder by sending a linkA
      There is no access at all when there is no internet connectionD

      Stage: Apply

      Local, cloud, or both?

      Apply it

      A small clinic in a village has an unreliable internet connection and keeps sensitive patient records. Which plan is best justified?
      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

      A journalist travels widely and works on a laptop, a phone and a library computer. Which is the strongest reason to use cloud storage?
      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

      Zara says: “The cloud has no hardware, so my files in it cannot be lost to a broken disk.” What is wrong with this?
      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

      Which pair correctly matches a kind of storage with how it stores data?
      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.