The Complete PC Upgrade & Maintenance Guide, Sixteenth Edition
The Complete PC Upgrade & Maintenance Guide, Sixteenth Edition
The Complete PC Upgrade & Maintenance Guide, Sixteenth Edition
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. No part of this publication
may be stored in a retrieval system, transmitted, or reproduced in any way, including but not limited to photocopy, photograph,
magnetic or other record, without the prior agreement and written permission of the publisher.
ISBN: 0-7821-4431-4
SYBEX and the SYBEX logo are either registered trademarks or trademarks of SYBEX Inc. in the USA and other countries.
TRADEMARKS: Sybex has attempted throughout this book to distinguish proprietary trademarks from descriptive terms by following
the capitalization style used by the manufacturer. Copyrights and trademarks of all products and services listed or described herein
are property of their respective owners and companies. All rules and laws pertaining to said copyrights and trademarks are inferred.
This document may contain images, text, trademarks, logos, and/or other material owned by third parties. All rights reserved. Such
material may not be copied, distributed, transmitted, or stored without the express, prior, written consent of the owner.
The author and publisher have made their best efforts to prepare this book, and the content is based upon final release software
whenever possible. Portions of the manuscript may be based upon pre-release versions supplied by software manufacturers. The
author and the publisher make no representation or warranties of any kind with regard to the completeness or accuracy of the
contents herein and accept no liability of any kind including but not limited to performance, merchantability, fitness for any particular
purpose, or any losses or damages of any kind caused or alleged to be caused directly or indirectly from this book.
Sybex Inc.
1151 Marina Village Parkway
Alameda, CA 94501
U.S.A.
Phone: 510-523-8233
www.sybex.com
4431.book Page 257 Friday, May 20, 2005 12:33 AM
Chapter 8
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 258 Friday, May 20, 2005 12:33 AM
Introduction
Hard disks are important because they store most of the important data that a computer user creates,
manipulates, and references in daily work. When upgrading and repairing computers, it’s useful to
understand the technical aspects of hard disk technology so you’ll have a better picture of what can
go wrong and how to fix it. This chapter presents a technical overview of hard disk technology from
a hardware perspective and explains what factors separate one disk from another and why some
disks may be subject to capacity limitations in certain systems.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 259 Friday, May 20, 2005 12:33 AM
Disk Basics
A disk is a form of nonvolatile storage. That means whatever is placed on the disk remains there even
when the computer’s power is turned off (unlike with RAM, which is volatile storage.) Another name
for nonvolatile storage is secondary storage. (You’ll probably see a question that asks about secondary
storage if you take the A+ exam.)
There are two technologies for disk storage: magnetic and optical. Magnetic disks store data in pat-
terns of positive and negative magnetic charge in tiny metal particles on the disk surface. Each tran-
sition between a positive and negative area is interpreted as a 1 bit; each spot that lacks a transition
is interpreted as a 0 bit. Optical disks, in contrast, store data in patterns of greater and lesser reflec-
tivity. As with magnetic disks, a 1 bit is represented by a change (from either greater to lesser or lesser
to greater), and a 0 bit is represented by a lack of change. Examples of optical discs include CD-ROM,
CD-R, and DVD. Chapter 9, “CD-ROM and DVD Drives,” covers optical discs in greater detail; this
chapter will focus on magnetic disks.
A hard disk is called hard because the platters inside the disk casing are rigid and fairly thick.
They’re made of aluminum or glass, and they’re coated with a fine dusting of iron particles. Multiple
disk platters are stacked on a spindle inside the hard disk cartridge. Each platter is capable of holding
billions of bits of data per square inch. A motor on the spindle drives the platters at high speeds—any-
where from 3600 to 12,000 revolutions per minute (rpm).
Each platter is the same physical diameter as every other platter in the stack. Most desktop hard
disks today use 31⁄2 -inch platters, and most notebook computers use 21⁄2 -inch platters. IBM Micro-
drives have platters that are even smaller: 1 inch. Hard disks are mostly interchangeable with one
another at a given size. For example, if you need to replace the hard disk in a notebook PC, you could
go into any computer store and buy any brand of 21⁄2 -inch hard drive. (Different drives have different
performance specs and capacities, of course, as I’ll get to later in this chapter.)
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 260 Friday, May 20, 2005 12:33 AM
The platters are permanently sealed inside an airtight metal casing. The sealed enclosure prevents
foreign contaminants such as dust particles, fingerprints, or smoke particles from affecting the vari-
ous components and operation of the disk drive. This is necessary because the read/write heads oper-
ate very close to the surface of the disk. The slightest little particle of dust can cause a head crash, which
can occur if the head makes contact with the disk surface itself or if the head touches particles on the
disk surface.
Each side of each platter has its own read/write head, which consists of a sensor that reads the
magnetic charges on the disk surface and a magnet that can change the charge on specified areas to
write to the disk. All of the read/write heads for the platters are connected to a single actuator arm that
moves in and out in response to requests from its controller. Figure 8.1 shows a cutaway view of a typ-
ical hard disk drive.
Figure 8.1
Cutaway view of a hard
disk drive
Disk Geometry
To understand how disks store data, you need to understand disk geometry. No, it’s not a new kind
of math! Disk geometry refers to the electronic organization of any type of disk drive, the actual phys-
ical number of heads, cylinders, tracks, and sectors. The following sections look at each of those items
in detail.
Heads
A hard disk has an electromagnetic read/write head for each side of each platter, so when a specification
describes the number of heads, you automatically also know the number of platters. For example, if
a drive has three platters, it has six heads. The sides of the platter are also referred to as surfaces.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 261 Friday, May 20, 2005 12:33 AM
NOTE Hard drives today have two specifications for heads: logical and physical. The physical refers
to the number of platter sides. The logical refers to the way the drive is addressed by its controller.
A typical number of logical heads is 16. This will become clearer later in the chapter when you learn
about sector translation. For now, just know that when you see 16 as the number of disk heads in a
drive’s specification, it probably doesn’t actually have eight platters. It only appears to because of
the way its physical specs are manipulated by its controller.
The read/write heads mount on an actuator arm that moves the heads over the surface of the plat-
ter on a thin cushion of air to the proper track. A servo system generates feedback, which accurately
positions the read/write heads. All the heads are on the same arm, so they are all at the same in-out
position at the same time in relation to the stack of platters. That’s okay, though, because hard disk
data isn’t stored in a physically contiguous way. Each of those heads can be writing data at the same
time for the same file, and the operating system will still see that data as being all part of a single file.
As mentioned earlier in the chapter, the read/write heads read by looking for transitions between
positive and negative magnetic charges. When a head finds a change in the polarity, it sends an elec-
trical pulse to the disk controller that says 1. When enough time passes that it might have found a
change but it did not, the disk controller interprets the silence as a 0.
Tracks
Like the growth rings on a tree cross-section, each side of each platter contains concentric rings called
tracks. Each possible in-out position of the actuator arm denotes a separate track. The exact number
of tracks that a disk can have per surface varies depending on the sensitivity of the drive’s inner
mechanical parts. On 1.44-megabyte (MB) floppy disks, there are typically 80 tracks per side, and very
old hard disks might have 305 tracks per side. On modern hard disks, there may be 16,000 or more
tracks per side. Each track is numbered. The outermost track is 0, with the numbers increasing as you
move toward the center spindle (see Figure 8.2).
Figure 8.2
Tracks are concentric
rings on a platter surface.
Track
Cylinders
Remember that all the read/write heads are on a single actuator arm, so they have no choice but to
move as a group. Well, all of the tracks simultaneously accessible at a single actuator arm position are
known as a cylinder. For example, if the actuator arm has positioned the read/write heads on the out-
ermost track on each platter, then the collection of outermost tracks are forming a cylinder there col-
lectively. It’s as if someone took a doughnut-shaped cookie cutter and sliced down through all the
platters to capture all the tracks in a certain spot (see Figure 8.3).
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 262 Friday, May 20, 2005 12:33 AM
Figure 8.3
It’s easier to store data on the same track on each platter—it can all
The relationship be accessed without moving the read/write head back and forth.
between tracks and
cylinders on a disk
All of the same tracks on one platter
are collectively known as a cylinder.
Platters
The number of tracks per surface is identical to the number of cylinders. Therefore, in the specifi-
cations for a drive, manufacturers don’t report the number of tracks, but instead they report the num-
ber of cylinders. If you know the number of heads and you know the number of cylinders, you can
multiply them to find out the number of tracks overall.
Sectors
Each track of a platter is further divided into individual segments called sectors. Sectors are created by
a series of straight lines that cut the platter into pie-shaped wedges, as in Figure 8.4.
Figure 8.4
Sectors are sections
of a track.
A sector is the smallest accessible unit on a disk. Sectors may vary slightly in their physical size,
with the ones at the outer edges of the disk being larger than the inner ones; however, all sectors hold
exactly the same amount of data: 512 bytes. In addition to containing data, each sector also contains
a few extra bytes dedicated to error detection and correction and internal disk control.
The number of sectors per track varies depending on the drive, anywhere from 8 (on the oldest
type of floppy disk) to 60 or more (on modern hard disks).
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 263 Friday, May 20, 2005 12:33 AM
Logical Geometry
As mentioned previously, physical geometry refers to the electronic organization of any type of disk
drive—the actual physical number of heads, cylinders, tracks, and sectors. In the olden days of com-
puting (1980s), the physical and logical geometries of a drive were identical. Some problems arose
with that system, however, as drives became larger in capacity and ZBR became an option.
One way to add more capacity to a drive was to add an additional platter or two. However, having
a large number of platters meant using a hefty spindle motor and a fair amount of power, and it made
the hard disk’s physical dimensions unwieldy. The ideal number of physical platters for a hard disk
seemed to be three in terms of size and power consumption. Another way to eke out more capacity
was to use ZBR so that there could be more sectors on the outer edges of the platters, but the BIOS
couldn’t grasp the concepts of certain cylinders having different numbers of sectors.
To accommodate larger drives without increasing the platter count, and to account for ZBR, logical
geometry was introduced. It allows a drive to have two separate geometries: physical and logical. The
drive manufacturer establishes the logical geometry, which is a set of bogus values for the cylinders,
heads, and sectors on the disk. The disk controller gives these bogus values to the basic input/output
system (BIOS). The hard disk controller provides automatic translation between the logical and physi-
cal geometry. The physical geometry is totally hidden. Table 8.1 is an example of the difference between
a drive’s physical and logical geometry (it contains the specifications of one of my hard disks).
In most systems today, additional translation takes place such as logical block addressing (LBA)
to allow large drives to be recognized by the BIOS and operating system. You’ll look at these later in
the chapter.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 264 Friday, May 20, 2005 12:33 AM
Heads 16 6
Sector Translation
Nearly all motherboards provide built-in support for Enhanced Integrated Drive Electronics (EIDE)
devices, but with this support comes some limitation.
The AT BIOS command set—developed by IBM for hard disk support and implemented in EIDE—
specifies some limitations on the CHS (cylinder/head/sector) values for drives. Specifically, it limits
a disk’s logical geometry to 1024 cylinders, 16 heads, and 63 sectors per track. This adds up to a hard
disk size of 528MB. This specification was later enhanced to support up to 256 heads for a maximum
capacity of 8.4 gigabytes (GB). (More on that part shortly.)
NOTE So if the limit for EIDE is 8.4GB, how come we have 200GB and larger EIDE hard disks on the
market today? Obviously, that’s not the limit anymore. This and subsequent barriers have been bro-
ken, and you’ll learn how that was done later in this chapter, in the “INT13 Addressing” section.
Capacity wasn’t a problem until around 1994, when consumers began demanding higher-capacity
drives and manufacturers became capable of delivering them.
The main problem was the cylinder limit. Drive manufacturers could make drives tens or even hun-
dreds of thousands of tracks physically, but the PC BIOS couldn’t address them. One solution has been
to change the BIOS limitation—and that did happen eventually. But another solution has been to spoof
the drive’s CHS values reported to the BIOS so that they appear to be within the acceptable specs.
Just as the drive’s inner circuitry allows it to have a different logical geometry than physical, sector
translation allows the BIOS to see the drive’s logical geometry by way of a translation table that converts
its values to something it can accept. This allows the BIOS to address more of the capacity of the drive.
Two main methods of sector translation have been used; the following sections look at some of them.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 265 Friday, May 20, 2005 12:33 AM
Real-World Advice
Nearly every BIOS can autodetect hard disks these days, but if you ever have to manually enter the CHS val-
ues for a drive in BIOS, keep in mind that the BIOS expects you to enter the untranslated logical geometry.
When you set its translation setting in BIOS to Large or LBA, it’ll take care of any further translation itself.
Real-World Advice
LBA is the preferred translation method today, and modern drives and BIOS will default to it. You can assume
that any EIDE hard disk you buy today will use LBA and that the BIOS will set it up that way automatically.
INT13 Addressing
As you just learned, ECHS and LBA are two different ways of breaking the 528MB barrier for drive
sizes. By the early ‘90s, however, hard disk sizes had grown to the point where another barrier needed
to be broken: the 8.4GB barrier imposed by INT13.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 266 Friday, May 20, 2005 12:33 AM
INT13 is a set of programming routines built into the read-only memory (ROM) chips on the mother-
board or an input/output (I/O) interface card. The ROM BIOS uses INT13 routines to boot from a drive.
(INT is short for interrupt, but it’s a different kind of interrupt than the IRQs that the operating system
uses to communicate with hardware.)
The use of INT13 requires specific hard disk parameters and exact head, cylinder, and sector
addressing. Conventional INT13 functions use 24 bits to represent the disk geometry, as shown in
Table 8.2.
8 bits Head number 256 heads (28) that the system can address
6 bits Sector number 63 sectors (26 – 1) that the system can address
Therefore, for conventional CHS addressing, using the values 1024 × 256 × 63, it’s possible to address
up to 16,515,072 sectors. And at 512 bytes per sector, you get a theoretical disk capacity of 8.4GB.
LBA views the available address bits as a single number. Larger disks require a BIOS and operat-
ing system that support INT13 extensions or an operating system that bypasses the BIOS and INT13.
INT13 uses 24-bit addressing.
To circumvent the 8.4GB limitation, BIOS developers circa 1995 included extended INT13 func-
tions that use 32 bits to represent addresses, taking the maximum capacity up to 137GB.
NOTE No, we haven’t topped out yet! ATA-6, which you’ll read about in Chapter 10, “Understand-
ing and Installing ATA Drives” (and also briefly in the “Summary of Capacity Barriers” section later
in this chapter), bumps up the maximum to 144 petabytes (that is, 144 million gigabytes), blowing
that 137GB limitation out of the water. That’s why you can walk into a store today and buy a 200GB
hard disk that will work in any new PC.
If a disk drive has a capacity greater than 8.4GB, using INT13 extensions requires changes both to
the BIOS and to the operating system. Note that later versions of Windows 95 and all subsequent ver-
sions (98, Me, XP) already support these extensions, as do most other current operating systems.
Windows NT 4 and Linux don’t. The Windows 2000 and 2003 setups don’t determine whether BIOS
INT13 extensions are enabled or available for use before allowing the creation of a system partition
with more than 1024 cylinders or typically larger than 8.4GB.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 267 Friday, May 20, 2005 12:33 AM
The EIDE interface up through ATA-5 uses 28 bits to represent the disk address, as shown in Table 8.3.
The BIOS records the information in defined registers; it records the starting address of the data on
the disk, the length of the data transfer, and the read or write command.
4 bits Head address in the 16 heads (24) that the system can address
head register
8 bits Sector address in the 255 sectors (28 – 1) that the system
sector register can address
Therefore, for CHS addressing for the EIDE interface using the values 65,536 × 16 255, it’s possible
to address up to 267,386,880 sectors. And at 512 bytes per sector, you get a theoretical disk capacity
of 137.4GB.
The 137.4GB limitation has recently been broken with the introduction of the ATA-6 standard, which
uses 48-bit addressing and allows for hard disks as big as 144 petabytes (144 million gigabytes), 100,000
times bigger than ATA-5 could support! You’ll learn more about ATA standards in Chapter 10.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 268 Friday, May 20, 2005 12:33 AM
To overcome this limit, BIOS designers implement one of two translating algorithms for convert-
ing the INT13 API address to the ATA address. The first is BitShift translation, which changes the
cylinder and head values so that the total number of sectors remains the same. This is the most
common translation method. The second algorithm is the LBA assist translation; a system can use
this translation only if the drive supports LBA addressing.
The 2.1GB barrier The most common cause of this barrier is the use of a 16-bit file system such
as FAT16 in MS-DOS. There is also a much rarer scenario in which an older BIOS might report a
disk as 2.1GB even though it is actually larger; this can be fixed with a BIOS update. To tell the dif-
ference, check the drive capacity in BIOS Setup; if it appears correctly there but wrong in the oper-
ating system, it’s the FAT16 thing.
The 4.2GB barrier Some operating systems store the number of heads as an 8-bit value. This can
cause a problem if the BIOS reports 256 heads and BitShift translation is in use. If this is the case,
the maximum capacity is 4.2GB. Note that the LBA assist translation never reports more than 255
heads, so the problem doesn’t exist where the drive and BIOS support LBA.
The 8.4GB barrier The BIOS limitation of 8.4GB (1024 × 256 × 63 × 512) causes this barrier. New
extended INT13 functions were added around 1995 to overcome this barrier. The new extension
passes a 64-bit LBA address in a device address packet. Extended INT13 passes the packet through
host memory rather than through host registers. If the drive supports LBA, the BIOS passes the
lower 28 bits of this address directly to the ATA registers. If LBA support isn’t present, the BIOS
converts the LBA address to a CHS and passes that address to the ATA registers.
The 32GB barrier In some systems, the motherboard BIOS can’t address drives greater than
32GB. This is an LBA addressing limit in the particular BIOS code on the motherboard. It was an
issue mostly on the pre-1999 Award BIOS. All BIOS manufacturers have now made corrections in
their core BIOS, so any motherboard with a BIOS date of 2000 or higher shouldn’t have this prob-
lem. Contact your motherboard manufacturer for information and for a BIOS update if necessary.
The 137GB barrier IDE/ATA drives conforming to ATA-5 standard and lower are limited to 137GB
because of the 28-bit addressing between the controller and the drive. However, ATA-6 has introduced
48-bit addressing, which has increased the maximum size for ATA disks to 144 petabytes. Just make
sure the motherboard or I/O board you’re using to control a drive larger than 137GB is ATA-6 com-
pliant so that it supports 48-bit addressing, and make sure you have Windows XP Service Pack 1 or
higher installed on the PC.
The 144PB barrier 144 petabytes is the current limit on ATA-6 drives, but it’s so far out there that
it’s almost not worth considering as a “limit” at all. A petabyte is a million gigabytes, and who on
earth is going to have a hard disk larger than 144 million gigabytes? At this point, nobody even
comes close. But remember that in the original IBM PC, nobody could imagine needing a hard disk
bigger than 10MB, so in time this barrier too will likely become constrictive and someone will have
to figure out a way around it.
NOTE A thousand gigabytes is a terabyte, and a thousand terabytes (in other words, a million
gigabytes) is a petabyte.
So, what do all these limits mean to you as you are assembling or upgrading a computer? The next
couple of sections sort out that information.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 269 Friday, May 20, 2005 12:33 AM
Real-World Advice
Don’t assume your operating system supports 48-bit disk addressing. Pre–August 2002 versions of Windows XP
don’t, for example, unless you install Windows XP Service Pack 1 or higher. Support is enabled by default with
Service Pack 1. To determine whether you have Service Pack 1, look on the General tab in System Properties. See
Microsoft Knowledge Base article 303013 for more detailed help. Go to http://support.microsoft.com to
access the Knowledge Base.
A drive that’s smaller than 137GB should work well in almost any fairly modern system—you
have to go all the way back to 1995 to find one that won’t take it (except for the few quirky Award
BIOS systems I mentioned earlier). If the BIOS won’t see it as its full size, try updating the BIOS if pos-
sible. If the operating system won’t format it as anything larger than 2.1GB, make sure you are for-
matting it as FAT32 or NTFS.
We haven’t talked yet about drive interfaces in this chapter (that’s coming up soon), but there is
also the interface issue to consider. New drives can be purchased with either EIDE or Serial ATA
interfaces, and an older system probably will not have native support for Serial ATA. You can buy
adapters that allow serial ATA drives to run on EIDE interfaces, and vice versa, but what’s the point
of that? You lose all the performance advantages of serial ATA in a kludged situation like that.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 270 Friday, May 20, 2005 12:33 AM
Real-World Advice
One way to pull files off a DriveSpace disk is to boot up a virtual machine running Windows 98 in a program
like VMWare. This saves you from having to have access to a whole separate PC. To do this, you’ll need
VMWare (www.vmware.com) and a full installation version of Windows 98. Install VMWare, and then cre-
ate a new virtual machine and install Windows 98 on it. Set it up to access the DriveSpace drive, and pull
the files off to another disk—or decompress the drive using the DriveSpace 3 utility in Windows 98. If the
DriveSpaced drive contains a bootable copy of Windows 98 on it already, you can set up the virtual
machine to boot from that physical hard disk.
NOTE Today’s EIDE drives are usually advertised as UltraATA—for example, UltraATA/133. ATA is
a set of standards governing disk interfacing with a PC, and UltraATA is…well, a simplistic answer
is that it’s a fast type of ATA. I’ll explain more about those ATA standards in Chapter 10.
A hard disk is typically designed to use only one interface, so you must choose the hard disk interface
before you choose the hard disk itself. There’s one exception to that, however. If you are using an external
hard drive, it will typically support both USB and FireWire interfaces. Further, you can buy drive enclo-
sures that let you convert an internal hard disk (usually EIDE) to a USB or FireWire external model.
Real-World Advice
Virtually any EIDE drive can be turned into a USB or FireWire drive with a drive enclosure. This is handy
not only for moving files between computers, but also for troubleshooting. A well-equipped technician
should have a 21⁄2 -inch and 31⁄2 -inch drive enclosure in his or her arsenal.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 271 Friday, May 20, 2005 12:33 AM
Serial ATA Faster than regular EIDE. Fast becoming the new Will soon be standard on all new
Easy to connect and standard for desktop systems. systems, so any hardware you
configure. You’ll pay a higher price for it buy will be more likely to be
than for drives that work on usable in future systems than the
the standard EIDE/ATA ordinary EIDE.
ribbon cable interface.
SCSI Fewer problems than EIDE Few motherboards provide Used primarily in high-end
with multiple drives SCSI support natively, so you servers, Redundant Array of
operating at once on the need a SCSI interface card to Inexpensive Discs (RAIDs). Used
same cable. Chainable such which to connect the drive. to be faster than EIDE, but newer
that multiple drives share a EIDE standards have leveled the
single IRQ. playing field. Can be either
internal or external.
USB and Fast, easy to connect and USB hard drives are currently These are two competing interface
IEEE 1394 disconnect. Convenient to external only. FireWire hard standards with similar benefits
(FireWire) share drives between disks can be internal or and performance levels. Most
systems. external. motherboards natively support
USB but not FireWire. However,
you can add an interface card for
FireWire that will allow both
internal and external FireWire
drives to be connected. This is
significant because it makes
FireWire a viable competitor with
Serial ATA for a mainstream hard
disk connection method.
Legacy May be the only usable Very old technology for Obsolete.
Parallel interface for an external connecting external hard
drive on a system that lacks disks. Slow and awkward.
USB or SCSI support.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 272 Friday, May 20, 2005 12:33 AM
Figure 8.5
Reading a particular sector involves two steps:
Reading a sector on a disk
First, move the head to the desired Then, once the head is over that track,
track. That is called seek. wait for the sector to spin under the head.
The wait is called the latency period.
Moving the head takes a lot longer than waiting for the sector to come around. So low seek times
(the time to move the head) are critical to good disk performance.
Table 8.5 shows the formula you’ll want to remember.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 273 Friday, May 20, 2005 12:33 AM
halfway across the disk, rather than one-third?” The reason is that most accesses are short seeks—just
a few tracks.
In the dawn of PC hard drives, companies sold hard disks with seek times of almost 100ms. Today,
the average seek time on a new drive is between 5ms and 10ms. In general, the low speed depends on
what you’re willing to spend. For example, my desktop system has an 80GB EIDE hard disk with a
seek time of 8.9ms—not the worst around, but not the fastest, either. Seek times are built into a drive.
There’s no way for you to improve a drive’s seek time, short of getting a new drive.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 274 Friday, May 20, 2005 12:33 AM
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 275 Friday, May 20, 2005 12:33 AM
higher standards are also referred to as Ultra ATA (UATA) or Ultra DMA (UDMA), along with their
theoretical maximum transfer rates: ATA-4 is UDMA/66 (for 66MB per second), ATA-5 is UDMA/100,
and ATA-6 is UDMA/133. Serial ATA is not a part of that system; it’s a separate specification all to itself.
When shopping for a hard disk for a high-performance system, it’s worth paying more for support
for the latest ATA standards. However, in order for the drive to take advantage of the high transfer
rates afforded by the latest technology, it must be placed in a system with motherboard support for
that standard (or an add-on controller board that supports it) and must be used with a special 80-wire
ribbon cable. Therefore, it’s not worth paying extra for support for the fastest modes on an old system
that will not support them. Chapter 10 explains this in much more detail.
Buffer/Cache Size
Disk drives are slow—I mean, really slow. Your computer uses RAM memory that responds to
requests in tens of nanoseconds, but the disk drive responds to requests in tens of milliseconds. That’s
six orders of magnitude difference in speed!
Whenever you’re moving data between a faster medium and a slower one, adding a cache to hold
recently used or anticipated data can improve performance by reducing the amount of data that
needs to travel through the bottleneck area. You’ve already seen this in previous chapters with the
level 1 and level 2 caches on either side of the CPU, for example.
A hard disk’s performance can similarly be improved by caching. Many manufacturers refer to the
cache as a buffer in their drive specifications.
A disk cache seeks to use the speed of memory to bolster the effective speed of the disk. The cache
is held in memory chips and is usually one to a few megabytes. The operating system can access data
previously placed in the disk cache on an as-needed basis. Using this disk cache can cut down on the
number of physical seeks and transfers from the hard disk itself. Smart caching algorithms generally
mean that there is no need to change the size of the disk cache. A typical cache size for a modern hard
disk is 2MB, but high-performance drives usually have more (8MB, for example).
This cache buffer acts as a holding area for one or more tracks or even a complete cylinder’s worth
of information in case you need it. This cache buffer can be effective in speeding up both throughput
and access times.
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.
4431.book Page 276 Friday, May 20, 2005 12:33 AM
Modern DMA uses the programming built into the disk itself to make the transfer. These are
expressed in new drive standards today as Ultra DMA or UDMA, and the latest versions are capable
of transfer rates of up to 133MB per second. You’ll learn more about UDMA when I talk about ATA
standards in Chapter 10.
Some versions of Windows don’t enable UDMA/66 and higher support by default; you must go
in and make some Registry changes to make that happen. I’ll explain those changes in Chapter 12,
“Partitioning, Formatting, and Managing Drives.”
Copyright © 2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved.