[3.3.3] Magnetic/optical/solid-state

Magnetic, optical, and solid-state storage: how they work and when to use them

Computers need somewhere to keep data and software when the power is off. This is the job of secondary storage. In IGCSE Computer Science you should be able to describe the operation of the three major storage families - magnetic, optical, and solid-state - and give sensible examples of devices that use each technology. Understanding how they work helps you justify choices in real scenarios such as selecting an archive format, picking a system drive, or moving data between devices.

All storage technologies make trade-offs among capacity, speed, cost per gigabyte, durability, and portability. There is no single “best” technology; the right answer depends on what matters most in a particular situation. The sections below explain the physical principles and practical behaviour of each type, then compare them using realistic use-cases.

What “operation” means here

In this context, the operation of a storage device refers to how it stores bits as physical changes, how those bits are read back reliably, and how data is organised into tracks/blocks or pages/sectors. Although you do not need to memorise exact data rates, understanding the mechanism explains strengths and weaknesses - for example, why hard disks can fail due to shock, why optical discs resist electromagnetic fields, or why SSDs are fast but have a limited number of program/erase cycles per cell.

How each technology stores data

The following subsections summarise the core mechanisms. Use the tabs to see concise, parallel explanations of how bits are written, how they are read, and typical device examples.

How bits are stored

Data is recorded as patterns of magnetisation on a coating of ferromagnetic material. In a hard disk drive (HDD), circular platters spin at high speed while a moving read/write head positions over tracks and sectors. Writing changes the magnetic orientation of tiny regions; reading senses those changes as electrical signals. Magnetic tape uses a long ribbon where data is written sequentially along tracks.

Strengths and limits
  • Pros: very low cost per gigabyte; large capacities; HDDs suitable for general bulk storage; tape excellent for long, inexpensive archives.
  • Cons: mechanical parts - slower access than SSDs; sensitive to shock when spinning; tape has slow random access because it must rewind/fast-forward.
Common devices
  • 3.5-inch or 2.5-inch HDDs in desktops and some laptops
  • External USB hard drives
  • LTO and other data backup tapes in enterprise environments
How bits are stored

Data is encoded as a pattern of pits and lands along a spiral track. A laser reflects off the disc surface; differences in reflection are converted into digital signals. CD and DVD rely on infrared or red lasers; Blu-ray uses a shorter wavelength blue-violet laser to store more data per area. There are read-only (pressed), recordable (-R) and rewritable (-RW/+RW) versions; rewritable uses a phase-change material that can be switched by heat from the laser.

Strengths and limits
  • Pros: good for distribution of media/software; resistant to electromagnetic interference; long shelf life if stored correctly; inexpensive media.
  • Cons: relatively slow access and transfer; capacity limited compared with modern drives; requires a compatible optical drive; discs can be scratched or warped.
Common devices
  • CD-ROM for audio/software (≈700 MB)
  • DVD-ROM/±R/±RW for video/software (≈4.7–8.5 GB)
  • Blu-ray (25–100+ GB) for high-definition video or data backup
How bits are stored

Solid-state storage uses arrays of floating-gate transistors that trap or release electrons, representing 0/1 (and sometimes multiple levels per cell, e.g. MLC/TLC). A controller manages pages and blocks, performs wear-levelling to spread writes, and uses error-correcting codes (ECC) to protect data integrity. Because there are no moving parts, access latency is very low.

Strengths and limits
  • Pros: very fast access and high throughput; silent; low power; excellent shock resistance; compact form factors (M.2, microSD).
  • Cons: higher cost per GB than HDD; finite program/erase cycles per block; performance can vary with drive/controller quality.
Common devices
  • Solid-State Drives (SATA or NVMe) as system drives
  • USB flash drives; SD/microSD cards
  • Embedded eMMC/UFS storage in phones and tablets

Choosing storage for real scenarios

Below, three contrasting situations are presented side by side to highlight how design priorities change the recommended technology.

Recommended: Solid-state (SSD). Rationale: very low latency for launching the operating system and applications; silent; low power for laptops. Many modern systems use NVMe SSDs which connect directly to high-speed interfaces for even better throughput.

Why not HDD? Cheaper per GB but noticeably slower for random access, leading to longer boot and load times. Why not optical? Too slow and inconvenient for frequent read/write operations.

Recommended: Magnetic tape (institutional) or HDD with redundancy; for small personal archives, Blu-ray can be considered. Rationale: lowest cost per GB (tape/HDD) and well-understood backup workflows; optical discs are immune to many electrical faults and are write-once for tamper resistance.

Considerations: store copies in multiple places, check media periodically, and keep drives/readers available for future access.

Recommended: Solid-state flash such as SD/microSD or SSDs in rugged enclosures. Rationale: no moving parts so far less sensitive to vibration or drops; compact; very fast sustained recording for cameras and data loggers when using high-grade cards.

Why not HDD? Susceptible to damage from knocks while spinning. Why not optical? Not practical for continuous writing or in-the-field use.

Feature comparison at a glance

Feature Magnetic (HDD/Tape) Optical (CD/DVD/Blu-ray) Solid-state (Flash/SSD)
Typical capacity (consumer) HDD: 1–20+ TB; Tape: very large in data centres CD: 700 MB; DVD: 4.7–8.5 GB; Blu-ray: 25–100+ GB SSD: 256 GB–4 TB+; Cards: 32 GB–1 TB
Access speed Moderate; mechanical latency; tape very slow random access Slow to moderate; drive spin-up and seek time Very fast; low latency; high throughput
Durability to shock Fair (HDD fragile when spinning); tape robust when stored Must avoid scratches/heat; unaffected by magnets Excellent; no moving parts
Cost per GB Low (HDD/tape cheapest) Low for small sizes; scales poorly for large data Higher than HDD; falling over time
Portability External HDDs are portable but heavier Light discs; require a drive Very portable (USB sticks, microSD)
Write endurance No fixed cycle limit; mechanical wear over years Recordable once (-R); rewritable has finite cycles Finite program/erase cycles; managed by wear-levelling
Best for Bulk storage, backups, archives (tape), media libraries Distribution, long-shelf-life copies, media playback System drives, mobile devices, fast data capture

Reliability and integrity techniques you should know

  • File systems organise data into files/folders and maintain metadata. Journalling file systems help protect against corruption on power loss.
  • Redundancy such as backups or RAID arrays mitigates individual device failure.
  • ECC on SSDs and error correction on optical discs and tape detect/correct read errors caused by wear or defects.

Key terminology

  • Track: circular path on an HDD platter where data is stored; divided into sectors.
  • Spiral track: continuous path used on optical discs for reading/writing.
  • Floating-gate transistor: flash memory cell that traps charge to represent data.
  • Wear-levelling: SSD controller technique to spread writes across cells so no block wears out prematurely.
  • Cost per gigabyte: useful metric when comparing technologies for large storage needs.
  • Latency: time to start transferring data after a request; very low on SSDs, higher on HDDs/optical.

 Key Takeaways

  • Magnetic storage writes patterns of magnetisation; offers huge capacities and low cost but slower, with moving parts.
  • Optical discs use lasers to read pits and lands; good for distribution and shelf life, but limited capacity and slower access.
  • Solid-state storage uses flash cells and a controller; exceptionally fast and durable but with higher cost per GB and finite write cycles.
  • Choose technology based on priorities: speed (SSD), bulk/cheap storage (HDD/tape), distribution or tamper-evident copies (optical).
  • Reliability improves with ECC, backups/RAID, journalling file systems, and sensible handling/storage conditions.