★ wanayoo — archive 1999 http://howstuffworks.com/hard-disk.htmNouvelle recherche | Portail wanayoo

How Stuff Works



How Hard Disks Work
by Marshall Brain

Sponsored by
Dell.com

Dell has been in the business of custom configuring and delivering computers for over a decade, and Dell's web site is known world-wide for its quality and completeness. Click here to learn more about Dell and try out different configurations!


Related Articles!
If you are interested in computers you may also be interested in the other articles in the How Stuff Works Computer Category. You can Click Here to see a complete list of articles in this category!

Nearly every desktop computer and server in use today contains one or more hard disk drives. Every mainframe and supercomputer is normally connected to hundreds of them. You can even find VCR-type devices and camcorders that use hard disks instead of tape. These billions of hard disks do one thing well - they store changing digital information in a relatively permanent form. They give computers the ability to remember things when the power goes out.

In this edition of How Stuff Works we'll take apart a hard disk so that you can see what's inside, and also discuss how they organize the gigabytes of information they hold in files!

Hard Disk Basics
Hard disks have been around since they were invented in the 1950s. They started as large disks up to 20 inches in diameter holding just a few megabytes. They were originally called "fixed disks" or "Winchesters" (a code name used for a popular IBM product). They later became known as "hard disks" to distinguish them from "floppy disks". Hards disks have a hard platter that holds the magnetic medium, as opposed to the flexible plastic film found in tapes and floppies.

At the simplest level, a hard disk is not that different from a cassette tape. Both hard disks and cassette tapes use the same magnetic recording techniques described in the HSW article entitled How Tape Recorders Work. Both hard disks and cassette tapes also share the major benefits of magnetic storage - the magnetic medium can be easily erased and rewritten, and it will "remember" the magnetic flux patterns stored onto the medium for many years.

Let's look at the big differences between the cassette tapes and hard disks so you can see how they differ:

Because of these differences, a modern hard disk is able to store an amazing amount of information in a small space. A hard disk can also access any of its information in a fraction of a second.

A typical desktop machine will have a hard disk with a capacity of between 2 and 8 gigabytes. Data is stored onto the disk in the form of files. A file is simply a named collection of bytes. The bytes might be the ASCII codes for the characters of a text file, or they could be the instructions of a software application for the computer to execute, or they could be the records of a data base, or they could be the pixel colors for a GIF image. No matter what it contains, however, a file is simply a string of bytes. When a program running on the computer requests a file, the hard disk retrieves its bytes and sends them to the CPU one at a time.

There are two ways to measure the performance of a hard disk:

The other important parameter is the capacity of the drive - the number of bytes it can hold.

Inside a Hard Disk
The best way to understand how a hard disk works is to take a look inside. [Note that opening a hard disk ruins it, so this is not something to try at home unless you have a defunct drive.]

Here is a typical hard disk drive:

It is a sealed aluminum box with controller electronics attached to one side. The electronics control the read/write mechanism and the motor that spins the platters. The electronics also assemble the magnetic domains on the drive into bytes (reading) and turn bytes into magnetic domains (writing). The electronics are all contained on a small board that detaches from the rest of the drive:

Underneath the board are the connections for the motor that spins the platters, as well as a highly-filtered vent hole that lets internal and external air pressures equalize:

Removing the cover from the drive reveals an extremely simple but very precise interior:

In this picture you can see:

In order to increase the amount of information the drive can store, most hard disks have multiple platters. This drive has three platters and six read-write heads:

The mechanism that moves the arms on a hard disk has to be incredibly fast and precise. It can be constructed using a high-speed linear motor.

Many drives use a "voice coil" approach - the same technique used to move the cone of a speaker on your stereo moves the arm.

Storing the Data
Data is stored on the surface of a platter in sectors and tracks. Tracks are concentric circles, which sectors are pie-shaped wedges on a track, like this:

A typical track is shown in yellow, while a typical sector is shown in blue. A sector contains a fixed number of bytes - for example, 256 or 512. Either at the drive or the operating system level, sectors are often grouped together into clusters.

The process of low-level formatting a drive establishes the tracks and sectors on the platter. The starting and ending points of each sector are written onto the platter. This process prepares the drive to hold blocks of bytes. High-level formatting then writes the file-storage structures like the file allocation table into the sectors. This process prepares the drive to hold files.

Links

There's lots of detailed information on hard disks available on the web. The following liks should help you get started.

Formatting and Partitioning

FAT and File Management Hardware IDE and SCSI Interfaces


How Stuff Works Power Panel
Table of Contents
A complete list of all HSW articles

About Marshall Brain
Information about the creator of HSW

Search
Search for any word or concept in HSW

Citing HSW
Information about citing HSW in articles and papers

Question of the Day
Ask questions or browse hundreds in the archive

Books
A variety of books for people interested in how stuff works

HSW Newsletter
Sign up to receive the monthly HSW newsletter

Contacting HSW
Contact HSW directly with email

What's New
Review newsletters to chart HSW's development

Awards
Check out HSW's awards and reviews!

Disclaimer
The disclaimer required by the lawyer

Author Information
Learn how you can write for HSW

HSW Fan Buttons
Link to HSW with these snazzy fan buttons!
Suggestions
Leave a suggestion in the suggestion box


BYG Publishing How Stuff Works (http://www.howstuffworks.com) is a production of
BYG Publishing, Inc.
http://www.bygpub.com - questions@bygpub.com
P.O. Box 40492 - Raleigh, NC 27629

© 1998 BYG Publishing, Inc. All rights reserved.





Click Here!