Early on computers did not always have "Hard drives". The TRS-80 worked off a portable tape recorder.
If you want to see how they work today, look at:
Here are a couple of videos that explore the entrails.
Break.com-Inside a Hard Drive
How a Hard Drive Works
See all Topics