Hard disk drives store data using magnetic technology - tiny magnetic domains on spinning platers represent binary data. Read/write heads change or detect these magnetic patterns. This is different from optical storage (laser, like CDs/DVDs) or solid-state storage (electrical charge).