Drives Are Storage Media
Drives Are Storage Media
Drives Are Storage Media
A drive is the name name for several types of storage media. There are also storage media,
which are not drives (RAM, Tape Streamers), but on these pages, we will discuss the drives.
Common to drive media is:
A file system can be assigned to them. l
They are recognized by the operating system and they are assigned a drive letter. l
During start up, drives are typically recognized by the PC system software (ROM-BIOS +
operating system). Thus, the PC knows which drives are installed. At the end of this
configuration, the appropriate drive letter is identified with each drive. If a drive is not "seen"
during start up, if will not be accessible to the operating system. However, some external
drives contain special soft-ware, allowing them to be connected during operation. Here some
examples of drives:
Storage media Drive letter
Floppy disks A: B:
Hard disk C: D: E:
CD ROM F:
MO drive G:
Network drive M:
RAM disk O:
On this and the following pages, I will describe the various drive types, their history and
technology. The last two drive types in the above table will not be covered.
Storage principles
Storage: Magnetic or optic. Data on any drive are digitized. That means that they are
expressed as myriad's of 0's and 1's. However, the storage of these bits is done in any of
three
principles:
The physical drive principle Disk types
Magnetic
Floppy disks
Hard disk
Syquest disks
Optic
CD ROM
DVD
Magneto optic
Zip drive
LS-120 disks
and others Interface
Individual drives are connected to other PC components through an interface. The hard disk
interface is either IDE or SCSI, which in modern PC's is connected to the PCI bus. Certain
drives can also be connected through a parallel port or the floppy controller:
Interface Drive
IDE and EIDE
Hard disks (currently up to 8 GB)
CD ROM
SCSI Hard disks (all sizes) and CD ROM
ISA (internet)
Floppy drives
CD ROM an MO drives connected through parallel port
Let us start evaluating the drives from the easy side:
Floppy drives
We all know diskettes. Small flat disks, irritatingly slow and with too limited storage capacity.
Yet, we cannot live without them. Very few PC's are without a floppy drive. Diskettes were
developed as a low cost alternative to hard disks. In the 60's and 70's, when hard disk prices
were exorbitant, It was unthinkable to use them in anything but mainframe and mini
computers.
The first diskettes were introduced in 1971. They were 8" diameter plastic disks with a
magnetic coating, enclosed in a cardboard case. The had a capacity of one megabyte. The
diskettes are
placed in a drive, which has read and write heads. Conversely to hard disks, the heads
actually
touch the disk, like in a cassette or video player. This wears the media.
Later, in 1976, 5.25" diskettes were introduced. They had far less capacity (only 160 KB to
begin with). However, they were inexpensive and easy to work with. For many years, they
were
the standard in PC's. Like the 8" diskettes, the 5.25" were soft and flexible. Therefore, they
were named floppy disks.
In 1987 IBM's revolutionary PS/2 PC's were introduced and with them the 3½" hard diskettes
we know today. These diskettes have a thinner magnetic coating, allowing more tracks on a
smaller surface. The track density is measured in TPI (tracks per inch). The TPI has been
increased from 48 to 96 and now 135 in the 3.5" diskettes.
Here you see the standard PC diskette configurations:
Diskette size Name Tracks per side Number of sectors
per tracks Capacity
5.25" Single side SD8 40 8 40 X 8 X 512 bytes = 160 KB
5.25" Double side DD9 40 9 2 X 40 X 9 X 512 bytes = 360 KB
5.25" Double side High Density DQ15 80 15 2 X 80 X 15 X 512 bytes = 1,2 MB
3.5" DD DQ9 80 9 2 X 80 X 9 X 512 bytes = 720 KB
3.5" HD DQ18 80 18 2 X 80 X 18 X 512 bytes = 1,44 MB
3.5" XD ( IBM only) DG36 80 36 2 X 80 X 36 X 512 bytes = 2,88 MB
Diskette drives turn at 300 RPM. That results in an average search time (½ revolution) of 100
ms.
The floppy controller
All diskette drives are governed by a controller. The original PC controller was named NEC
An illustrated Guide to disk drives - storage medias.
PD765. Today, it is included in the chip set, but functions like a 765. It is a programmable
chip.
It can be programmed to handle all the various floppy drive types: 5.25" or 3.5" drives, DD or
HD etc.
The controller has to be programmed at each start up. It must be told which drives to control.
This programming is performed by the start up programs in ROM (read module 2a). So you
don't have to identify available drive types at each start up, these drive parameters are saved
in CMOS RAM. The floppy controller reads data from the diskette media in serial mode (one
bit at a time. Like from hard disks). Data are delivered in parallel mode (16 bits at a time) to
RAM via a DMA channel. Thus, the the drives should be able to operate without CPU
supervision. However, in reality this does not always work. Data transfer from a diskette drive
can delay and sometimes freeze the whole PC, so no other operations can be performed
simultaneously.
When I test a hard disk, I emphasize practical applications. You can take a stopwatch and
measure, for example how long it takes to start Windows 95 or Word 97 (possibly including a
large file). That type of measurement can really tell you something about the hard disk's
performance. However they must be under comparable circumstances. System board, CPU,
and the driver program also influence the results.
IDE
Integrated Device Electronics. Under the IDE standard, the controller chip WD 1003 is
mounted directly on the hard disk, not on the IDE adapter. This means that the conversion to
parallel data is already done on the disk. Because of the short serial cable, this increases the
transfer speed significantly relative to MFM and RLL. IDE is a simple adapter. The adapter
itself contains only amplifying circuits to/from the I/O bus. Therefore it is inexpensive. The
IDE controller does not care whether the hard disk works internally with MFM or RLL coding.
ESDI
ESDI is an improvement over the ST506 standard. An ESDI disk operates on a common 16-
bit AT bus (ISA-bus), but it is better put together than an ordinary IDE. This results in an
almost doubling of the transfer speed between hard disk and controller/bus. ESDI is also
different in many other ways. Among the features are a sector on the hard disk which
identifies its number of tracks, cylinders, etc. This information is usually stored in CMOS.
EIDE
EIDE is the current standard for low cost, high performance hard disks. EIDE stands for
Enhanced IDE. That is precisely what it is. Some manufacturers call it ATA.
All Pentium system boards since 1995 have a built in EIDE controller. That allows the hard
disk to be connected directly to the system board. The EIDE standard is substantially
improved, relative to the old IDE. Here are some of the improvements:
The hard disk size can exceed the 528 MB, which was the IDE limit. l
The hard disk interface is moved from the ISA bus to the high speed bus PCI. l
Four units can be connected on the mainboard, which has two EIDE channels. Each
channel can be connected to a primary and a secondary unit.
Transfer speeds
With connection directly to the PCI bus, EIDE has transfer speeds and disk capacities which
far exceed the older controller principles. EIDE exists in different editions, such as PIO 3,
PIO 4 and Ultra DMA. The latter is the one to choose. The different PIO modes are
significant for transfer speed. PIO 3 can transfer up to 13 MB/sec, while PIO 4 promises 16.6
MB/sec. UDMA promises up to smashing 33 MB/sec. These numbers are theoretical and
they do not hold true in actual use. The fastest actual transfer speed you can experience
from an EIDE disk will be 5-10 MB/sec. That is still good.
Four units
The EIDE interface is not only intended for the hard disks. There are four channels, which
can be connected to four independent units:
Hard disks (must be on the primary channels, which on some system boards have the
greatest transfer capacity)
CD ROM drives l
DVD drives l
LS 120 drives and other MO drives l
Tape streamers l
EIDE is thus designed as an inexpensive all around interface, which can be connected to all
kinds of storage media. It has a clever auto detect function, which often makes it possible to
connect EIDE units such as hard disks directly to the system board and function immediately.
The BIOS in the PC will find the necessary instructions about the drive via the auto detect
function, and you need not make any adjustments in the CMOS Setup program, as was
necessary with earlier IDE units.
Tracks
Our data consist of bits, each of which is a burnt dent or a shiny spot on the CD-ROM disk.
Music CD's are designed much in the same manner. The bits are not splashed across the
disk, but arranged in a pattern along the track. Without that organization, you could not read
the data.
The platters in hard disks and floppies are organized in concentric tracks. There can be
hundreds of those from center to periphery:
About I/O units, expansion cards, adapters, etc.
Intro to I/O
This page should preferably be read together with module 2c, 2d, 5b and 5c. The first two
describe the I/O buses and the chip sets. Here we will look at the other end of the I/O buses,
the "exit." There are four I/O buses in the modern PC architecture and each of them has
several functions. They may lead internal and external ports or they lead to other controlling
buses. The four buses are:
The ISA and the PCI bus both end in a twofold exit: Internal I/O ports (LPT, KBD, COM1,
COM2, EIDE ao.) l Expansion slots in the system board, in which we can insert adapters.
Adapters
In a stationary PC, adapters are typically printed circuit boards called expansion boards or
expansion cards.
They form a link between the central PC unit and various peripherals. This is the so-called
open architecture.
Typically, adapters provide functions, which are separated from the system board. l
Adapters provide expansion capability to the PC. l There are PC's without expansion slots.
In that case all functions must be built into the system board. You could easily include chips
for graphics, ethernet, SCSI, and sound on the system board. This is not
common in stationary PC's. Portable, laptop PC's have nearly all electronics on the system
board. This is called closed architecture.
A traditional PC has a system board which contains all standard functions (except the
graphics chip). To this system board you can add various expansion cards, which control one
or more peripheral units:
IRQ's
When you install an expansion board in a slot, it gets connected to the I/O bus. Now the
board can send and receive data. But who regulates the traffic? Who gives clearance to the
new controller to send data? It would appear that data traffic could soon be chaotic.
To control data traffic on the I/O bus, the concept of IRQ (Interrupt ReQuest) was created.
Interrupts are a fundamental principle in the PC design. There are two types of interrupts:
Software Interrupts are used to call any number of BIOS routines. Hardware Interrupts are
the subject of this page.
Hardware Interrupts
The adapter or unit on the I/O bus uses the interrupt to signal request to send or receive
data. An interrupt signal is like a door bell. The unit signals by applying a voltage to one of
the wires in the bus - an IRQ. When the CPU acknowledges the signal, it knows that the unit
wants send or receive data, or is finished. The advantage of IRQ's is that the CPU can
manage other tasks, while an adapter "massages" its data. When the adapter has finished its
task, it will report to the CPU with a new IRQ. As an example, let us see how keyboard data
are handled. The keyboard send bits, serially, through the cable to the keyboard controller.
The controller organizes them in groups of 8 (one byte). Every time it has a byte, it sends an
IRQ to the I/O bus. The IRQ controller asks the CPU permission to use the bus, to send the
byte to wherever. The IRQ controller reports back to the keyboard controller, giving
clearance to send the next character (byte):
IRQ wires
Physically, the IRQ is a wire on the bus. This wire connects to all expansion slots. Therefore,
regardless of in which slot you install an adapter, the adapter can communicate with an IRQ.
The PC is "born" with 15 IRQ's, but five of them are internal, and can not be used with I/O
cards. We find 10 accessible IRQ's on the I/O busses. Each of those consist of a circuit
board wire, which goes through the entire bus. When you install an expansion card in a
vacant slot, one of the IRQ's is assigned to it.
When a signal arrives on an IRQ channel, that is a message to the CPU. It is told that a unit
wants to get on the bus. Which unit is to be identified through the IRQ number.
Next the unit is admitted to the bus, to send or receive data. When the transaction is
completed, another signal is transmitted to the CPU to indicate that the bus is vacant.
The IRQ's have different priorities, so the CPU knows which IRQ have priority, if two signals
are sent simultaneously.
The IRQ system is guided by a controller chip, like Intel 8259. It can handle 8 IRQ signals
and couple two of them together, via IRQ 2 or 9. All PC's with ISA bus include two 8259
chips.
I/O addresses
Finally, we need to mention how the the CPU finds all these units - adapters, ports. etc. They
all have an address - an I/O port number.
Each unit can be reached through one of more I/O ports. Each port is a byte port. That
means that 8 bits (one byte) can be transmitted simultaneously - parallel mode.
If the unit is on the ISA bus, it handles 16 bits at a time ( words). Then you link two
consecutive ports together, to make a 16 bit channel. If we talk about about a 32 bit PCI unit,
we link four byte ports together to get 32 bits width (called dword).
The PC has a built in listing of all I/O units, each of which has their own "zip code" - a port
address. Since the PC is basically a 16 bit computer, there are 2 in the 16 power possible
addresses (65,536) - from 0000H to FFFFH. They are described in the hexadecimal number
system as 5 digit numbers. Hexadecimal is a 16 digit number system. Digits go from 0 to 9
and continue with 6 letters A - H. Let me show you some examples of I/O addresses:
About Interfaces: EIDE, Ultra DMA and AGP
What is EIDE?
EIDE is the current standard for inexpensive, high performance hard disks. EIDE stands for
Enhanced IDE and that is precisely what it is. Some manufacturers (like Seagate) call it ATA.
You can think of EIDE as a bus - which is a host controller - which controls it, and you can
connect up to four units.
All Pentium system boards since 1995 have this EIDE controller built into the chip set. That
allows the hard disk and other EIDE units to be connected directly to the system board.
Improvements
The EIDE standard is a great improvement over the old IDE. Here are some examples:
The Hard disk can exceed the 528 MB IDE limit. Currently the largest EIDE disks are 8.5 l
GB and this number keeps increasing.
The hard disk's interface is moved from the ISA bus to the high speed PCI bus. l
Four units can be connected to the system board, which has two EIDE channels. Each
channel can be connected to a master and a slave unit.
The most important feature is the interface directly on the PCI bus. This has given EIDE
transfer speeds and disk capacities, which far exceed older controller principles.
Concurrently, there is a continual development of the protocols, which are needed for the
connection between the units and the EIDE bus.
Four units
The EIDE interface is not designed for hard disks only. There are four channels, which can
be connected to four independent units: Hard disks (which must be on the primary channel.
On some system boards, this has the greatest transfer capacity)l
CD ROM drives l
DVD drives l
LS-120 drives and other MO drives l
Tape streamers l
EIDE is thus designed as an inexpensive all-around interface, which can be connected to all
kinds of storage media.
Auto detect
The BIOS on the system board has a neat auto detect feature, which often allows EIDE units
to be connected directly and work immediately. The PC start up program automatically finds
the necessary information about the drive via the auto detect function. Sometimes you have
to assist the hard disk installation by activating the auto detect in the CMOS Setup program,
but often it runs by itself. You definitely do not have to key in information about cylinders,
etc., as you had to with earlier IDE units.
What is AGP?
A new bus has arrived on the PC. It is called AGP (Advanced Graphics Port). It is exclusively
designed for video cards AGP will probably not be in widespread use before 1998. Amongst
other things, the system must be supported by the operating system (Windows 98). Likewise,
it is claimed that the system bus
will be raised from the current 66 MHZ to 100 MHZ, to allow AGP to prove its worth. AGP
includes several techniques, of which two are understandable:
PCI version 2.1 with 66 MHZ bus frequency. That is a doubling of transfer speed l
Possibility to utilize system board RAM for texture cache. This will reduce RAM card demand
in connection with the most demanding programs.
One big AGP advantage is that the PCI bus is relieved of work with graphics data. It can
concentrate on other demanding transport duties, like transfer to and from network adapter
and disk drives.
Here you see the AGP-socket at the bottom. It looks like a PCI-socket, but it has been placed
in a different position on the board. In the top you see two (black) ISA-sockets. Then four
(white) PCI-sockets, and then the brown AGP-socket:
SCSI (Small Computer System Interface) is high end technology. It is a technology, which
provide means for data exchange among hardware devices such as drives, tape streamers
and scanners. SCSI is especially used in high end PC's such as network servers or just
powerful workstations.
SCSI might be compared to the EIDE interface, which also uses a host adapter controlling
drives. However SCSI have two major advantages to EIDE: A SCSI host controls 7 or 15
devices (using only one IRQ). The SCSI system holds its own computer power, thus freeing
the CPU from workload. If you are critical about your PC power, the SCSI would be worth
considering.
The host adapter
A SCSI system is built around a central, intelligent controller called the host adapter. A host
adapter can control several SCSI units:
Many units on the same host adapter. l
Many types of drives: Hard disks, CD ROM's, MO drives like Zip drives, CD ROM recorders
etc. Tape-streamers (DAT and others),Scanners.
The host adapter has its own BIOS separate from the PC's. When you boot the PC, you will
see the adapter communicating with connected SCSI devices.
8 units in a chain
The regular SCSI 2 system can handle 8 devices (SCSI Wide handles 15). Each device has
to be assigned an unique going from ID 0 to ID 7. The SCSI devices can be internal (installed
inside the PC cabinet) or external. The host adapter is a device itself. Typically, the host
adapter will occupy ID 7.
SCSI is intelligent
SCSI is remarkable in having an intelligent protocol, which assures maximum utilization of
the data transfer. The basis of SCSI is a set of commands. Each individual device holds its
own controller, which interprets these commands.
All commands within the SCSI system are handled internally, meaning the CPU does not
have to control the process:
SCSI-2 is the 16 bit standard from 1990. It is found in Fast and Fast-Wide-SCSI. Today.
there are many SCSI standards. Among others, you can come across SCSI-20 and SCSI-40,
which refers to the bus speed. The last one is also called SCSI-3, but its standard is not
finalized. The SCSI standard seem to have its own life with plenty of new development.
USB
The USB (Universal or Useless Serial Bus) is a cheap, slow bus running up to 12 Mbit/sec.
Just as FireWire it is an open royalty-free specification. The USB holds up to 127 units in one
long chain. Units can be plugged an unplugged on the fly very easily. Here you see the
plugs, the two small ones, number two from the left:
There will be problems with USB in the beginning, since many motherboard manufactories
produced their own versions of the port before at was fully standardized.
USB is only supported by Windows 95 OSR2.1, but with Windows 98 we shall really use it.
USB will replace the mess of cables and plugs we today use for:
Keyboard l
Mouse l
Joystick l
Loudspeakers
Printers l
Modems and ISDN-adapters l
Scanner and camera l
All these units - and lots of others - will be connected using one single plug at the PC. The
keyboard may hold a hub, so other USB-units is connected here. Each unit holds at minimum
two plugs, so they all can be daisy chained:
All units have a firmware identification code, that communicates with Windows 98. The unit
must have a power feed (could be minimum 100 ma) to be recognized by the USB controller
and Windows 98. If one unit fails this way, Windows shows an ! on yellow background to
signalize that something has to be done. This could be to unplug other USB devices to
increase the available power in the chain. Many hardware manufactories today produces
their modems, cameras and scanners in versions with two way interface. The device
connects traditionally using a COM-port - or you use the USB.
The Hub
We should be able to connect 127 units all together. An important Unit is the hub, as we
know it from the ethernet. The USB hub may be found in the keyboard, but probably we will
use little, powered boxes holding 8 USB connectors. Five of these hubs can be daisy-
chained, providing connection for 36 units. USB hubs can for convenience be placed on the
backside of monitors, in scanners also. The USB cabling can deliver 500 mA of power. This
sufficient to feed a keyboard or other low-powered units. But it is not enough for multiple
units, therefor we will need powered hubs. We shall also find COM to USB converting hubs.
A box will house four DB9 connectors serving as COM5, 6, 7 and 8. They all connect to the
PC via one USB port. This way serial devices can connected without the IRQ puzzle we
often experience nowadays.
Shared USB-units
An other interesting aspect is that USB allows shared peripherals. This means that two PC's
can share an USB-unit. Or you may even use the USB for a low-priced network connection?
Entertainment
The first versions will be used for digital audio/video-electronics like:
Digital cameras and cam-orders
DVD drives l
Scanners l
FireWire comes from Apple but it is an open standard which can be used for free. Hence all
mayor hardware companies has adapted it. Especially the entertainment electronic industry
(Video/games/television) have great hopes with FireWire. It will connect all types of digital
electronics with the PC and this way open up for a much more modular design. Since
FireWire is advanced and yet claimed to be cheap & simple, the communications protocol
can handle a lot of other units like:
Network controllers
Hard disks, CD-ROM drives l
Printers l
Two modes
The FireWire standard operates with two modes.
Asynchronous as other busses. This means that operatings across the bus is controlled
using interrupt signals. The bus reports to the host when a task is fulfilled. ISO synchronous.
In this mode data is being transferred at a steady preset speed – continuously and without
any supervision from the host. This opens up for data-streaming useful for video or
themultimedia presentation. The FireWire is an peer-to-peer interface. This means that data
can be transferred between two units attached to the bus without supervision from the PC.
FireWire has 64 bit address bus. Compared to SCSI each unit does not need an unique ID,
they are dynamically configured "on the fly". Neither does the bus have to be terminated. All
together a lot more simple than SCSI. One of the problems with SCSI has been the limitation
on distance between the units. FireWire can hold up to 16 units in the same "string" and
there can be up to 4,5 meters between two units. The first implementations of FireWire will
connect it to the PCI bus using the new PIX6-controller, which will be a part of one of Intel's
new chip sets. I think it will last 2-3 years before we really see this new technology in the
market. But it will be worth waiting for it, it opens up for new world of inter connectivity
between TV, PC, video end all other types of electronically gear.