A hard disk drive (HDD) is a data storage device. Learn how it works, its components, common capacities and how HDDs differ from solid-state drives.