Module 10 · Spinning Platters

How does a hard drive read one file?

Lesson 10.2 · Magnets on a Spinning Plate

Jenny · Sarah

Spinning too fast to see. An arm darting across.

Jenny finds a video of a hard drive with its lid off.

The platters spin so fast they look still. An arm darts across them in jerky little moves. Sarah asks why it doesn’t touch.

Jenny says the head floats on a cushion of air thinner than a fingerprint, and if it ever touches, the drive is toast.

The short answer

The arm swings to the right track, waits for the right spot to spin under it, then reads the magnets as they fly by. The clicking Jenny heard is the arm seeking, over and over, because starting Windows means thousands of little files in thousands of places.

Try it yourself

Step through what happens when Grandma Ruth opens one cat photo.

FileTrackSpot
cat-on-couch.jpg1,840sector 212

The operating system looks up where the photo lives: which track (one ring on the platter), and which spot on that ring.

Step 1 of 5
See it in 3DHow a hard drive finds one piece of a file

What you just did has a name

Platters, heads and tracks

Inside a hard drive, platters (the discs) spin thousands of times a minute.

Each surface is divided into rings called tracks, and each track into small slices called sectors.

A head on a moving arm floats just above the surface, flipping the direction of tiny magnetic patches to write and sensing them to read.

To get any piece of data, the arm has to move to the right track and wait for the right sector to spin by.

A few more things

Spinning fast

Laptop drives usually spin at 5,400 turns a minute, desktop drives at 7,200, some server drives faster. Faster spinning means less waiting.

A very close flyer

The head flies a tiny fraction of a hair’s width above the platter. A speck of dust is a boulder at that scale, which is why drives are sealed.

Don’t drop it running

A bump while the head is flying can make it touch the platter and scratch it. That’s called a head crash, and it can destroy data.

Go deeper

The longer version, if you want it.

Fragmentation

When a drive fills up and files get added and deleted over years, a single file can end up scattered in pieces across different tracks. Reading it means many seeks instead of one. That’s fragmentation, and it makes old hard drives even slower.

Defragmenting rearranges files so each one sits in one piece. Windows does it automatically on hard drives. SSDs don’t need it, because they have no arm to move.

Quick check

What takes most of the time when a hard drive reads a small file?

Let’s take it slower

It’s a record player that has to find a song. First you lift the needle and move it to the right ring: that’s the seek. Then you wait for the start of the song to come around: that’s the wait. Then it plays: that’s the read. Imagine doing that hundreds of times a second, for every little file. That’s a hard drive starting Windows.

More examples

1

Starting the computer

Booting loads thousands of small files from all over the drive. That’s thousands of seeks, which is why Grandma Ruth’s laptop takes four minutes.

2

Copying one big movie

One big file in one place reads quickly, because the arm barely moves. Hard drives are fine at big files and bad at many small ones.

Back to the question

So how does a hard drive read one file?

Show the answer

The arm swings to the right track, waits for the right spot to spin under it, then reads the magnets as they fly by. The clicking Jenny heard is the arm seeking, over and over, because starting Windows means thousands of little files in thousands of places.

More on this: SSD vs. HDD: which is better?

One last question

Put the steps of a hard drive read in order.

Tap the pieces in order. Tap one again to take it back.

…
Talk Card

Talk Card · 10.2

A hard drive reads data by moving an arm to the right track and waiting for the right spot to spin around. The moving and waiting are why it’s slow.

How Computers Work · pettigrewlab.com/learn

Next lesson