← How Computers Work lessons

How a hard drive finds one piece of a file

A spinning platter, a swinging arm and a lot of waiting. Slow it right down and watch one read.

Interactive 3D hard drive with the lid off, reading one sector

This is the text version. With JavaScript on, it’s a 3D drawing you can play, slow down and turn.

Step by step

  1. Seek. The arm swings the head across the spinning platter to the ring the file is on, called a track. Moving a metal arm takes time: on a laptop drive this step alone takes about 10 milliseconds.
  2. Wait. The head is over the right track, but the piece it wants is somewhere else on the ring. There’s nothing to do but wait for the platter to carry it round. That’s half a turn on average, about 5.6 milliseconds at 5,400 rpm.
  3. Read. The sector slides under the head, and its tiny magnetic patches are read as ones and zeros that race up the ribbon cable to the drive’s chip. The sector is drawn far bigger than a real one so you can see it.
  4. Next. The next piece of the file is on another track, so the arm sets off again. A file scattered across the disk pays for the swing and the wait every time, which is why an old hard drive takes minutes to start Windows.

From the lesson

How does a hard drive read one file?

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.

Lesson 10.2: Magnets on a Spinning Plate

Why is a hard drive fine for movies but terrible for starting Windows?

The movie is one big file in one place, so the arm barely moves. Starting Windows is thousands of little files in thousands of places, so the arm never stops. The hard drive in Grandma Ruth’s laptop isn’t broken. It’s doing the job hard drives are worst at, all day.

Lesson 10.3: Waiting for the Plate

More 3D drawings

All How Computers Work lessons · See it in 3D