Storage Hardware Fundamentals, Foundations of Computer Science – Study Notes
offline

Difficulty: Introductory | Prerequisites: None (first exposure to computer hardware concepts)

Big Picture

This material covers the physical and electronic technologies that store data in a computer system, from spinning magnetic platters to solid-state chips to optical discs. It sits near the beginning of most Foundations of Computer Science courses because every higher-level topic (operating systems, file systems, databases) assumes you know how data is kept when the power goes off. If you have never thought about what happens inside a hard drive or why your phone uses flash memory, start here. The concepts also appear in networking and cloud-computing modules later in the course.

TL;DR

Computers store data on nonvolatile media so it survives a power cycle. The main families are magnetic (hard drives), solid-state (SSDs and flash), and optical (CDs, DVDs, Blu-ray). Each technology trades off speed, capacity, cost, and durability differently, and choosing the right one depends on the workload.


Key Terms and Definitions

Storage medium

The physical material or hardware where data is recorded. A DVD disc and a flash memory card are both storage media.

In simple terms, the medium is the thing that holds your data.

Storage device

The hardware component that reads from or writes to a storage medium. A DVD drive or a flash memory card reader is a storage device.

Think of it as the machine that talks to the medium on the computer's behalf.

Nonvolatile storage

Storage that retains data even when the power is switched off. All storage media (hard drives, SSDs, optical discs, flash) are nonvolatile.

In simple terms, your files stay put when you unplug the computer.

Volatile memory

Memory that loses its contents when power is removed. RAM is the primary example.

Think of it as a whiteboard that gets wiped every time you leave the room.

Random access (direct access)

The ability to retrieve data from any location on the medium without reading through everything before it. Hard drives, SSDs, and flash memory all support random access.

In simple terms, you can jump straight to any file without rewinding.

Sequential access

Data must be read in the order it was stored. Magnetic tape drives are the classic sequential-access device.

Think of it as a cassette tape: to reach a song in the middle, you have to fast-forward past everything before it.

Platter

A sealed metal disc inside a hard drive, coated with magnetic particles. Data is stored by magnetising tiny regions on the platter's surface.

Track

A concentric circle on a hard drive platter where data is written.

Sector

A small segment of a track. Sectors are the basic read/write units on a magnetic disk.

Cluster

A group of sectors, and the smallest unit the operating system addresses when storing files.

Cylinder

The set of tracks at the same position across all platters in a multi-platter hard drive. Reading from one cylinder avoids moving the read/write head.

SSD (Solid-State Drive)

A storage device that uses flash memory chips instead of spinning platters. No moving parts, faster access, lower power draw, and more durable than an HDD.

SSHD (Solid-State Hybrid Drive)

A drive that pairs a traditional magnetic disk with a small amount of flash memory. Frequently used data is cached in the flash portion for near-SSD speed at a lower cost than a full SSD.

Flash memory

A type of nonvolatile storage that records data electronically by trapping electrons in memory cells. Used in USB drives, SD cards, SSDs, and embedded device storage.

Think of it as the silent, shock-proof chip inside your phone.

Optical disc

A thin plastic disc that stores data as a pattern of pits and lands read by a laser beam. CDs, DVDs, and Blu-ray discs are all optical media.

Pits and lands

The microscopic indentations (pits) and flat areas (lands) on the surface of an optical disc. Changes in reflectivity between pits and lands represent binary data.

Burning

The process of writing data to a recordable or rewritable optical disc using a laser.


Storage System Components, Volatility, and Access Types

Storage Medium vs. Storage Device

  • Every storage system has two parts: the medium (where data lives) and the device (what reads/writes it).

  • Example: a DVD disc is the medium; the DVD drive is the device. An SD card is the medium; the card reader is the device.

  • Storage devices are classified by location:

    • Internal – built into the computer (e.g. an internal hard drive or SSD).

    • External – connected via a cable or port such as USB (e.g. an external hard drive).

    • Remote – accessed over a network (e.g. a NAS box or cloud storage).

Volatility

  • All storage media are nonvolatile: data persists without power.

  • Volatile memory (RAM) loses its contents the moment power is cut. RAM is used for active processing, not long-term storage.

  • The distinction matters because the operating system must move data from nonvolatile storage into volatile RAM before the CPU can work with it, and save results back again.

Access Types

  • Random access (direct access): the device can jump to any location on the medium and read immediately. Hard drives, SSDs, and flash memory all support this.

  • Sequential access: data is read in order from start to finish. Magnetic tape is the textbook example. To reach data in the middle of the tape, the drive must spool past everything before it.

  • Nearly every modern consumer storage device supports random access. Sequential access survives mainly in archival tape systems where cost per gigabyte matters more than speed.

Files, Filenames, and Folders

  • A file is any discrete item stored on a medium: a document, an image, a program, a song.

  • A filename is the user-assigned label that identifies the file.

  • A folder (also called a directory) is a named container that holds files and other folders, creating a hierarchy.

  • This hierarchy is what lets you organise thousands of files into a navigable tree rather than one flat list.


Hard Drives and Magnetic Recording Technologies

How a Hard Drive Works

  • A hard disk drive (HDD) stores data on sealed metal discs called platters, coated with magnetic particles.

  • A read/write head floats just above the spinning platter and magnetises tiny regions to represent binary 0s and 1s.

  • HDDs remain the primary mass-storage device in many desktops and servers because they offer high capacity at a low cost per gigabyte.

Magnetic Recording Technologies

  • Traditional Longitudinal Magnetic Recording: magnetic particles are aligned horizontally, parallel to the platter surface. This was the original approach and sets the baseline for storage density.

  • Perpendicular Magnetic Recording (PMR): bits stand upright rather than lying flat, packing more data into the same surface area. PMR replaced longitudinal recording as the standard in consumer drives.

  • Shingled Magnetic Recording (SMR): data tracks overlap like shingles on a roof, squeezing extra capacity out of the same platter. The trade-off is that rewriting overlapping tracks is slower, so SMR drives suit workloads that are mostly sequential writes (e.g. archival, surveillance footage).

  • Heat-Assisted Magnetic Recording (HAMR): a tiny laser briefly heats the platter surface so the write head can magnetise a smaller region. This pushes density higher still and is the technology behind the latest high-capacity enterprise drives.

Disk Organisation

  • Tracks: concentric circles on the platter surface.

  • Sectors: arc-shaped segments of a track, typically 512 bytes or 4 KB each. The sector is the basic unit the drive hardware reads or writes.

  • Clusters: groups of sectors. The file system (e.g. NTFS, ext4) treats a cluster as the smallest addressable unit when storing files.

  • Cylinders: the set of tracks at the same radial position across every platter in the drive. Accessing data within a single cylinder avoids moving the head arm, which is the slowest mechanical operation in an HDD.


Solid-State Drives, Hybrid Drives, and Optical Discs

Solid-State Drives (SSDs)

  • SSDs store data in flash memory chips. No spinning platters, no moving read/write heads.

  • Key advantages over HDDs:

    • Faster access times – data can be read or written in microseconds rather than milliseconds.

    • Lower power consumption – no motor to spin, so battery life improves in laptops.

    • Greater durability – no delicate mechanical parts to break if the device is dropped.

  • SSDs are now the default boot drive in most laptops and an increasingly common choice for desktops and servers.

Hybrid Drives (SSHDs)

  • A hybrid drive pairs a traditional magnetic platter with a small flash memory cache.

  • The drive's firmware monitors which data is accessed most often and keeps a copy in the flash portion.

  • The result is near-SSD speed for frequently used files, with HDD-level capacity at a lower price than a pure SSD.

  • SSHDs are a reasonable middle ground when budget or capacity rules out a full SSD.

Optical Discs

  • Optical discs store data as a spiral pattern of pits (tiny indentations) and lands (flat areas) on a plastic disc. A laser beam reads the data by detecting changes in reflectivity.

  • Main types and their capacities:

    • CD (Compact Disc) – roughly 700 MB.

    • DVD (Digital Versatile Disc) – 4.7 GB single-layer, 8.5 GB dual-layer.

    • Blu-ray Disc – 25 GB single-layer, 50 GB dual-layer, up to 128 GB with the BDXL standard. Ultra HD Blu-ray discs hold up to 100 GB for 4K video.

  • Disc writability categories:

    • Read-only – pressed at the factory with pre-recorded data (e.g. commercial music CDs, movie DVDs).

    • Recordable – can be written once by the user (e.g. CD-R, DVD-R, BD-R).

    • Rewritable – can be erased and rewritten multiple times (e.g. CD-RW, DVD-RW, BD-RE).

  • Optical drives can be internal or external. Writing data to a disc is called burning.


Flash Memory Devices

  • Flash memory stores data electronically by trapping electrons in memory cells on a chip. It is nonvolatile, fast, durable (no moving parts), and compact.

  • Flash is the dominant storage technology in mobile devices: smartphones, tablets, smartwatches, and cameras.

Common Form Factors

  • Flash memory cards (e.g. SD, microSD) – used in cameras, drones, and portable devices. Capacities now reach 1 TB for high-end SD cards.

  • USB flash drives (thumb drives, memory sticks) – self-contained units that plug into any USB port. Typical capacities range from a few gigabytes to several hundred gigabytes. Popular for quick file transfers and portable backups.

  • Embedded flash memory – chips soldered directly onto a device's circuit board, providing the internal storage in phones and tablets. The user cannot remove or swap them.

Why Flash Memory is Popular

  • Ease of use – plug in and go; no drivers needed on modern operating systems.

  • Small physical size – a microSD card is roughly the size of a fingernail.

  • Broad compatibility – USB ports and SD card slots are found on nearly every computer and many consumer electronics.

Real-World Application

Flash memory is the reason modern smartphones can be as thin and light as they are. A spinning hard drive would be too bulky, too fragile, and too power-hungry for a pocket device. The same logic applies to drones, action cameras, and wearables.


Common Misconceptions

  • "SSDs are a type of hard drive." They are not. A hard drive (HDD) uses spinning magnetic platters. An SSD uses flash memory chips with no moving parts. Both are storage devices, but the underlying technology is completely different.

  • "RAM and storage are the same thing." RAM is volatile (loses data on power-off) and is used for active processing. Storage (HDD, SSD, flash) is nonvolatile and keeps data long-term. They serve different roles in the system.

  • "All optical discs can be rewritten." Only discs labelled rewritable (e.g. CD-RW, DVD-RW, BD-RE) support multiple write cycles. Recordable discs (CD-R, DVD-R) can be written once. Read-only discs cannot be written to at all.

  • "Sequential access is always slower than random access." For most workloads, yes. But for large, linear reads (e.g. restoring a full backup), sequential access on tape can sustain very high throughput. The disadvantage is seeking to a random position, not raw read speed.


Why It Matters / Exam Flags

  • ⚠️ Be ready to distinguish storage medium from storage device. A classic exam question gives you a scenario and asks which is which.

  • ⚠️ Know the difference between volatile (RAM) and nonvolatile (all storage media). Expect a true/false or fill-in-the-blank on this.

  • ⚠️ Random vs. sequential access appears in almost every introductory storage exam. Be able to name a device that uses each type.

  • ⚠️ You may be asked to list the magnetic recording technologies in order of increasing density: longitudinal, perpendicular (PMR), shingled (SMR), heat-assisted (HAMR).

  • ⚠️ Optical disc capacities (CD ~700 MB, DVD ~4.7/8.5 GB, Blu-ray ~25/50 GB) are a favourite for multiple-choice questions.

  • ⚠️ The difference between recordable and rewritable discs is a common source of lost marks. Know that recordable means write-once.

  • ⚠️ Exam questions sometimes ask you to rank storage types by speed. A safe ordering for most contexts: SSD > HDD > optical > tape.


Quick Self-Test

  1. True or false: RAM is a type of nonvolatile storage. (False – RAM is volatile.)

  1. True or false: An SSD contains spinning platters. (False – SSDs use flash memory chips with no moving parts.)

  1. Fill in the blank: The smallest addressable unit the file system uses on a hard drive is a ________. (cluster)

  1. True or false: A CD-R disc can be erased and rewritten. (False – CD-R is recordable, meaning write-once. You need CD-RW for rewriting.)

  1. Fill in the blank: ________ magnetic recording uses a laser to heat the platter surface before writing. (Heat-Assisted, i.e. HAMR)


Practice Q&A

Q: What are the two fundamental components of any storage system?

A: The storage medium (where data is physically stored) and the storage device (the hardware that reads from or writes to the medium).

Q: Explain the difference between volatile and nonvolatile storage, and give one example of each.

A: Volatile storage (e.g. RAM) loses its data when power is removed. Nonvolatile storage (e.g. an SSD or hard drive) retains data without power.

Q: Name the four magnetic recording technologies discussed in this material and state the key advantage of each.

A: Traditional Longitudinal Recording (baseline approach, particles lie flat). Perpendicular Magnetic Recording/PMR (bits stand upright, higher density). Shingled Magnetic Recording/SMR (tracks overlap, maximises capacity). Heat-Assisted Magnetic Recording/HAMR (laser heats the surface, enables the highest density).

Q: A student says "my laptop's SSD is basically a fast hard drive." What is wrong with this statement?

A: An SSD and an HDD use entirely different technologies. An HDD stores data magnetically on spinning platters. An SSD stores data electronically in flash memory chips with no moving parts. They are both storage devices, but the mechanism is different.

Q: You need to choose between an HDD, an SSD, and an SSHD for a budget laptop used mainly for web browsing and document editing. Which would you recommend and why?

A: An SSHD is a reasonable choice here. It caches frequently accessed files (browser, OS files) in its flash portion for near-SSD speed, while still offering HDD-level capacity at a lower price than a full SSD. If budget allows, a pure SSD would be even better for responsiveness.

Q: What is the difference between a recordable optical disc and a rewritable optical disc?

A: A recordable disc (e.g. DVD-R) can be written to once. A rewritable disc (e.g. DVD-RW) can be erased and written to multiple times.

Q: Why is sequential access associated with magnetic tape rather than hard drives?

A: Tape stores data along a linear strip. To reach a specific point, the drive must spool through all the tape before it. Hard drives use spinning platters with a movable head that can jump to any track, supporting random access.


Connections to Other Topics

This material connects directly to file systems and operating systems modules, where you will learn how the OS manages tracks, sectors, and clusters through formatting and file allocation tables. It also feeds into computer architecture discussions about the memory hierarchy (registers, cache, RAM, storage) and why each level trades speed for capacity. If your course covers databases, understanding the speed difference between random and sequential access helps explain why indexing matters.


Related Terms / Search Tags

storage medium, storage device, volatile, nonvolatile, RAM, random access, direct access, sequential access, HDD, hard disk drive, platter, track, sector, cluster, cylinder, longitudinal recording, perpendicular magnetic recording, PMR, shingled magnetic recording, SMR, heat-assisted magnetic recording, HAMR, SSD, solid-state drive, flash memory, hybrid drive, SSHD, optical disc, CD, DVD, Blu-ray, BDXL, pits and lands, burning, recordable, rewritable, read-only, SD card, USB flash drive, embedded flash, memory card, thumb drive, internal storage, external storage, remote storage