| ★ wanayoo — archive 1999 http://howstuffworks.com/hard-disk.htm | Nouvelle recherche | Portail wanayoo |
![]()
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!
![]()
|
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:
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:
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:
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

Click Here to see all of the articles in the HSW Computer category.
Click Here to see the How Stuff Works home page.
|
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.