How do computer hard drives works?

A hard drive has one or more platters, or disks, that stack together and spin in unison inside a sealed metal housing that contains firmware to control the reading and writing data to the drive and to communicate with the motherboard. Each disk is coated with a magnetic medium that holds data as magnetized spots.