course TOC

3.4. Internal Hardware

Mass Storage – Disks

We are concerned here with storing large amounts of data (and programs) permanently, hence another name for these devices is long term storage devices. In relation to RAM, or primary memory, they are also sometimes called secondary memory.

Many of the devices discussed here can also be attached externally, which is an important option for laptops (and backups).

Magnetic Media

Magnetic media for computers are digital. They save bits of data by altering the polarity of a section on the surface of the medium. This change lasts indefinitely (like magnetizing a pin), so it is considered permanent. Magnetic media includes hard disk drives, tapes, and a number of legacy devices. They also work similarly to the magnetic strip on the back of a credit or ATM card.

Hard Disk Drives [src]

A hard disk drive (HDD) is a non-volatile, random access device for digital data. It features rotating rigid platters on a motor-driven spindle within a protective enclosure. Data is magnetically read from, and written to, the platter by read/write heads that float on a film of air above the platters.

Introduced by IBM in 1956, hard disk drives have fallen in cost and physical size over the years while dramatically increasing in capacity. Hard disk drives have been the dominant device for secondary storage of data in general purpose computers since the early 1960s. They have maintained this position because advances in their areal recording density have kept pace with the requirements for secondary storage. Today's HDDs operate on high-speed serial interfaces; i.e., serial ATA (SATA) or serial attached SCSI (SAS).

A hard-disk drive is normally located inside the computer case. Additional drives may be added either inside the case or attached externally via a port, usually USB.

Hard disks come in various speeds. The key specifications to be considered are average access time and data transfer rate. The access time includes both the seek time (time to move the arm & head to the correct location) and latency (time for the desired location to rotate under the read/write head). For a particular size (0.85"-8") of disk platter, the faster the disk spins (3,000-15,000 RPM), the lower the access (latency) time will be and the faster the data transfer rate.

As shown in the image at right:
A) platters,
B) actuator arm,
C) read/write head,
D) segment – an arc on the track,
E) track,
F) sector.
The data organization is essentially the same as the floppy disk shown below, except that all the tracks that line up one above the other are call a cylinder. A cluster, not shown here, is two or more contiguous segments that hold data for a single file. (A file might have multiple clusters.)

Hard drive-en
Hard Disk Drive with labeled parts
I, Surachit [GFDL, CC-BY-SA-3.0 or CC-BY-SA-2.5-2.0-1.0], via Wikimedia Commons

hard disk construction
Multi-platter Hard Disk Drive
public domain image
video icon #26 Add 2nd Hard Drive video icon #210 Swap Notebook Hard Drive video icon hard disk, how it works
RECOMMENDED!

Multiple Drives & RAID [src]

Most PCs have a single hard disk installed. A system can be purchased with a second hard disk or the user may install the second as an upgrade. With two disks, one is designated the master and the other the slave, although neither is "in control" of the other. Both appear as separate hard disks to the system. (Note that this is different from disk partitions which appear as separate disks to the system, but are actually a single physical hard drive.) RAID disks combine disks differently. In this instance, multiple physical disks are present, but they appear to the system to be a single device.

RAID is the abbreviated term for a Redundant Array of Independent Drives. RAID is now used as an umbrella term for computer data storage schemes that can divide and replicate data among multiple physical disk drives. The physical disks are said to be in a RAID array, which is addressed by the operating system as one single disk. The different schemes or architectures are named by the word RAID followed by a number (e.g., RAID 0, RAID 1). Each scheme provides a different balance between two key goals: increase data reliability and increase input/output performance.[src]

RAID 0 uses the concept of striping to evenly split data between 2 or more drives. This allows the computer to access multiple drives simultaneously to increase data transfer rate and response time. The disadvantages of this setup is reliability. If one of the drives fail, all your data is lost. This is because fragments of each file are stored on different disks. With two drives, you are "twice" as likely to experience a failure.

RAID 1, is the setup in which two (or more) disks are used to create a copy, assuring no data loss if one or the other drive fails. Each disk has a full copy. Performance wise, there is no gain.

RAID 2 uses striping and parity bits to correct errors or recover all data when a single disk fails. Successively higher levels use different schemes to increase performance and/or recover from more failures.

GParted
Screenshot showing a single physical disk with multiple partitions
By http://hacktolive.org (http://hacktolive.org/images) [GPL], via Wikimedia Commons

RAID 0
Raid 0
By en:User:Cburnett [GFDL or CC-BY-SA-3.0], via Wikimedia Commons
and By Paul Mullins: constructed


RAID 1
RAID 1
By en:User:C burnett [GFDL or CC-BY-SA-3.0], via Wikimedia Commons
and By Paul Mullins: constructed


RAID2 arch
RAID 2
By User:knakts.Knakts at en.wikipedia [GFDL or CC-BY-SA-3.0], from Wikimedia Commons
video icon Raid 0, 1 and 0+ lab rats video #8 RAID 0, 0+, 1 & 5 You can have your data & eat it too video icon #220 RAID is easier now

Optical Media

Blu-ray [src]

Blu-ray Disc (BD) is an optical disc storage medium designed to supersede the DVD format. The standard physical medium is a 12cm plastic optical disc, the same size as DVDs and CDs. Blu-ray Discs contain 25 GB per layer, with dual layer discs (50 GB) the norm for feature-length video discs and additional layers possible in the future.

Optical media operates by creating a single spiral track that records data bits (zeroes & ones) as sections of different reflectivity. The sections (or the transition from one to another) represent bits permanently, although the media itself (the disk) is easily damaged. The single spiral is sequential in nature, but the device can easily move radially (unlike a magnetic tape), making it a random-access medium. The laser follows a track as the disk spins, sensing differences in reflectivity.

Discs are available in read only (BD), record once (BD-R) and rewritable (BD-RE) formats. Recording to a disc involves using the laser in high power mode to alter the reflectivity of a die on the disk. For rewritable disks, the die can be changed back to its initial state and reused. As indicated above, these dies may be layered with the laser focused on a particular layer to store more data.

Most BD devices are backward compatibles with DVDs and CDs, although you should check the specifications to be sure before purchase.

DVD

The concepts for storing data on a DVD, or Digital Video Disc, are similar to those of BD. However, the laser used is not capable of focusing as finely, so the data area for each bit is larger (which means less capacity) and DVD players cannot read or write BDs. DVD devices are generally backward compatible with CDs.

The capacity for a DVD-R or DVD-RW is 4.5 GB per layer. They are available as double-sided (two layers) for 9 GB recordable.

DVD-RAM is a rewritable 4.7 GB random access disc used primarily for camcorders. It is not related to Random Access Memory (RAM).

CD

The CD or Compact Disc, which might be considered a legacy device, is still widely used. It is capable of holding 700 MB (0.7 GB) of data. CD devices cannot read or write either DVD or BDs.




DVD
Underside of a DVD-R disc
By User:Wanted, User:Lorian (Modified version of Image:DVD.jpg by User:Wanted.) [GFDL or CC-BY-SA-3.0], via Wikimedia Commons


3D optical storage cross-section
Schematic representation of a cross-section through a 3D optical storage disc (yellow) along a data track (orange marks). Four data layers are seen, with the laser currently addressing the third from the top. The laser passes through the first two layers and only interacts with the third, since here the light is at a high intensity.[src]
public domain image



Inside DVD player (3)
Inside a DVD player, tray openedpublic domain image


video icon #15 How optical storage works

Solid State Drives [src]

A solid-state drive (SSD) is a data storage device that uses circuitry (chips) to store persistent data with the intention of providing access in the same manner as a traditional hard disk drive. SSDs are distinguished from traditional hard disk drives (HDDs)in that they have no spinning disks, no movable read/write heads, no moving parts at all. Thus, SSDs are less susceptible to physical shock – like being dropped – and operate silently.

The non-volatile microchips gives SSDs lower access time, less latency, and higher transfer rates than HDDs in general. That is to say, they "find" whatever is being retrieved much faster and can then provide the data faster than is typical for HDDs.

SSDs use the same bus interface as hard disk drives, thus easily replacing them in most systems. Usually they are designed in a housing intended to make them as large as the HDD being replaced and they are plugged in just as the HDD would be.

SSDs gain their performance edge over hard disks because they do not have the lengthy access time of the mechanical device (and no "spin up" time). Access speed for SSD is roughly equivalent to traditional RAM. The lack of moving parts also provides the edge in terms of physical damage and failure possibilities.

The primary disadvantages of SSDs are higher cost, lower data capacity that there are a limited number of writes to a flash device. They latter is managed by a complex storage algorithm that allows SSDs to last "many years". An additional problem occurs with sudden power loss, with many SSDs becoming unusable. Mobile devices have batteries that prevent this and a desktop should have an Uninterruptable Power Supply. In contrast, there is no limit (except for eventual device failure) to the number of writes on a hard disk ans power interuptions cause fewer problems. (Despite this, current generation SSDs are considered more reliable than HDDs.)

Disassembled HDD and SSD
The disassembled components of a hard disk drive (left) and of the PCB and components of a solid-state drive (right)[src]
By Rochellesinger at en.wikipedia [CC-BY-SA-2.5], from Wikimedia Commons

Late 2010 MacBook Air edit
Fall 2010 MacBook Air
By This image, which was originally posted to Flickr, was uploaded to Commons using Flickr upload bot on 01:48, 22 October 2010 (UTC) by Fetchcomms (talk). On that date it was licensed under the license below. (originally posted to Flickr as Whoa.) [CC-BY-2.0], via Wikimedia Commons
lab rats video #116 SSD, the future? video icon HDD vs SSD - What is the difference? Jump to 5:30 (or learn about HDDs too) video icon #265 SSD v. Hard Drive

RAM Disks [src]

RAM-disks are a kind of solid state device, based on volatile memory, such as DRAM. They are characterized by ultrafast data access and are used primarily to accelerate applications that would otherwise be held back by the latency of flash SSDs or traditional HDDs. RAM-disks (DRAM-based SSDs) usually incorporate either an internal battery or an external AC/DC adapter and backup storage systems to ensure data persistence while no power is being supplied to the drive from the system. If power is lost, the battery provides power while all information is copied from the RAM-disk to back-up storage (HDD or SSD). When the power is restored, the information is copied back to the RAM-disk from the back-up storage, and the RAM-disk resumes normal operation (similar to the hibernate function used in modern laptops).

RAM-disks of this type are usually fitted with DRAM modules of the same type used in regular PCs and servers, which can be swapped out and replaced by larger modules. Like RAM (primary memory), a RAM-disk does not suffer the limited number of writes problem associated with flash SSD devices.


Legacy Devices [src]

A legacy system is an old method, technology, computer system, or application program that continues to be used, typically because it still functions for the users' needs, even though newer technology is now available. Reasons for not changing to a newer system may include cost, planned retirement (that includes change), and resistance to change from users.

A legacy system may include procedures or terminology which are no longer relevant in the current context, and may hinder or confuse understanding of the methods or technologies used.

The term "legacy" may have little to do with the size or age of the system itself – current mainframes run 64-bit Linux and Java alongside 1960s vintage code.

Floppy Disks [src]

A "floppy disk" (or diskette) is a form of magnetic data storage; thin, flexible, soft, flat piece of mylar plastic, packaged in a 3.5 inch plastic case. The reason it was called a floppy is because obsolete (8 and 5.25 inch formats) types would "flop" as you waved them. Floppy disks were invented by IBM and were a popular form of data storage from the 1970's to the 1990's. The key to their widespread use was their inexpensive cost and ease of portability. Information could be transferred to a floppy disk, stored, disk removed, then inserted into another system to then be accessed.

Although there was a variety of different sizes of floppy disks produced by various manufacturers, the most widely used was the 3.5 inch. It is a form of secondary "permanent" storage and can hold approximately 1.44 MB. The disk is inserted into a floppy disk drive, a device that holds, spins, reads data from, and writes data to a floppy disk.

With the new systems now available, the demise of the floppy disk was inevitable. It has been replaced by CD, CD-ROM and (USB) flash drives.

The data organization shown to the right is the same as a single platter in a hard disk drive with: a track (A), a sector (B), a segment or sector of a track (C), and a cluster of segments (D).

The floppy disk was renowned, when in common use, as a primary means of spreading viruses from computer to computer. Even when networked computers became more common, many users shared data and programs on floppy disks. A virus attached to a specific program would only be activated when that program was run by the user, however, a boot sector virus required only that the PC be rebooted with an infected disk in place. At that time, it was common for the computer to attempt to boot first from the floppy disk drive (a recovery feature for when the hard disk was screwed up). Current viruses tend to spread through network enabled programs, such as email.

Commodore 64GS
(Legacy) Commodore 64 Game System
By User:Olaf1541 (Image:C64GS and SX-64.jpg) [GFDL, CC-BY-SA-3.0 or CC-BY-2.5], via Wikimedia Commons


3,5"-Diskette
3.5" Floppy Disk
By Afrank99 (Own work) [CC-BY-SA-2.0], via Wikimedia Commons

5.25"-Diskette
5.25" Floppy Disk
By Andreas Frank (Afrank99) (Own work) [CC-BY-SA-3.0], via Wikimedia Commons

Floppy disk8inch
8" Floppy Disk
By KENPEI (KENPEI's photo) [GFDL, CC-BY-SA-3.0 or CC-BY-SA-2.1-jp], via Wikimedia Commons

Disk-structure
Disk structure
public domain image

Zip Disks [src]

A zip drive is a secondary storage device (internal or external) that uses zip disks. Zip disks are cartridges similar to floppy disks but capable of storing 70-500 times more memory. Zip disks are disks with a special high quality magnetic coating that have a capacity of 100, 250, or 750 MB.

Zip drives are almost obsolete amongst today's students as CDs or flash memory sticks are much more convenient since they can be read by almost all computers (zip disks need special zip drives).

Zipdisk
Zip Disk
By JePe (Own work) [GFDL, CC-BY-SA-3.0 or CC-BY-SA-2.5-2.0-1.0], via Wikimedia Commons


Comparison disk storage
Disk storage comparison
By Cmglee (Own work) [CC-BY-SA-3.0 or GFDL], via Wikimedia Commons


Tape Drives [src]

A tape drive is a data storage device that reads and writes data on a magnetic tape. It is typically used for offline, archival data storage. Tape media generally has a favorable unit cost and long archival stability. Although this is a legacy medium for most, they are still widely available and used.

A tape drive provides sequential access storage, unlike a disk drive, which provides random access storage. A disk drive can move its read/write head(s) to any random part of the disk in a very short amount of time, but a tape drive must spend a considerable amount of time winding tape between reels to read any one particular piece of data. As a result, tape drives have very slow average seek times. Despite the slow seek time, tape drives can stream data to and from tape very quickly once it has been found. For example, the IBM 3592 series of tape drives can store up to 10 TB (10,000 GB) and has a transfer rate of 360 MB/s.

Dds tape drive 01
DDS tape drive with 4 types of magnetic data storage media on top, from right hand side: 3.5" floppy disk (1.44 MB), 310m QIC DC tape (250 MB, ~6 mm wide, 1020 ft length), 112m Data8 tape (5 GB, 8 mm, 367 ft), 150m DDS-4 tape (20 GB, 4 mm, 492 ft)
By Photograph: Robert Jacek Tomczak (Own work) [GFDL or CC-BY-SA-3.0], via Wikimedia Commons
course TOC


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Attribution: Dr. Paul Mullins, Slippery Rock University
These notes began life as the Wikiversity course Introduction to Computers.
The course draws extensively from and uses links to Wikipedia.
A large number of video links are provided to labrats.tv. (I hope you like cats. And food demos.)