Disks. ●Circular-shaped storage medium ●Two main types: Magnetic and Optical ●Random access to memory ●The hardware must be controlled by driver software.

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling Chapter 11. I/O Driver OS module which controls an I/O device hides the device specifics from the above layers in the.
Advertisements

Introduction to Storage Devices
Lesson 9 Types of Storage Devices.
Types Of Storage Device
CP1610: Introduction to Computer Components Archival Storage Devices.
M. Guymon - Pleasant Grove High - Spring 2003 Computer Performance & Storage Devices Computer Technology.
Section 5a Types of Storage Devices.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 6 External Memory.
January 25 & 27, Csci 2111: Data and File Structures Week3, Lecture 1 & 2 Secondary Storage and System Software: CD-ROM & Issues in Data Management.
Computer Performance & Storage Devices Computer Technology.
Adapted from CTAE Resource Network – Used with permission. PROFITT Curriculum Basic Computer.
Optical Storage CD-ROM Originally for audio 650Mbytes giving over 70 minutes audio Polycarbonate coated with highly reflective coat, usually aluminium.
RAID and Other Disk Details
Other Disk Details. 2 Disk Formatting After manufacturing disk has no information –Is stack of platters coated with magnetizable metal oxide Before use,
1 Chapter 6 Storage and Multimedia: The Facts and More.
Fig 5-5 Interrupts Handling
CS 333 Introduction to Operating Systems Class 16 – Secondary Storage Management Jonathan Walpole Computer Science Portland State University.
Backing Storage Chapter 18.
Introduction to Computers Section 5A. home Storage Involves Two Processes Writing data Reading data.
M. Guymon Pleasant Grove High School Spring 2003 Computer Performance & Storage Devices Computer Technology Day 2.
XP Practical PC, 3e Chapter 12 1 Accessing Databases.
CSE 451: Operating Systems Winter 2010 Module 13 Redundant Arrays of Inexpensive Disks (RAID) and OS structure Mark Zbikowski Gary Kimura.
Operating Systems COMP 4850/CISG 5550 Disks, Part II Dr. James Money.
Lecture # 12 Optical Storage Devices Flowcharts
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Storage device.
Computer SCIENCE Data Representation and Machine Concepts Section 1.3
 Introduction Introduction  Types of Secondary storage devices Types of Secondary storage devices  Floppy Disks Floppy Disks  Hard Disks Hard Disks.
ASHIMA KALRA.  Hard disks.Hard disks.  Floppy disks.Floppy disks.  CD ROMs.CD ROMs.  DVDs.DVDs.
Peripherals and Storage Looking at: Scanners Printers Why do we need storage devices anyway? What are magnetic disks? How do magnetic disks physically.
Hard Drives Non-Volatile Storage. Hard Drives Hard Drives (HD) The primary storage device in a computer system.
CIS 105 Concepts and Terminology Unit 3 CIS 105 Survey of Computer Information Systems Essential Concepts and Terminology Study Unit Three.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Storage Systems.
External Memory.
Chapter 6 External Memory
L/O/G/O External Memory Chapter 3 (C) CS.216 Computer Architecture and Organization.
Backing Storage. Backing storage devices allow us to store programs and data so that we can use them later Backing storage devices can be split into 4.
1 Chapter 3 Understanding Computers, 11 th Edition Storage Medium The physical material on which a computer keeps data, instructions and information. Can.
Secondary Storage Chapter 7.
A Secondary Storage: CD – ROM Dr. Robert J. Hammell Assistant Professor Towson University Computer and Information Sciences Department 8000 York Road -
Lecture 9 of Advanced Databases Storage and File Structure (Part II) Instructor: Mr.Ahmed Al Astal.
Chapter 7 External Memory Computer Architecture Chapter Seven: External Memory.
IT- 101 Introduction to Information Technology Lecture #9.
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 17 – The CD-ROM Drive.
Sistem Operasi IKH311 Masukan Luaran (Input/Output)
 Around billion CDs have been sold all over the world  CD’s revolutionized the way that data could be stored and moved  DVDs replaced VHS  CDs.
STORAGE IN COMPUTER By- Upendra Sharma. STORAGE DEVICE We can use storage device to save data in computer. It is divided in two parts- 1. Primary memory.
COEN 180 Optical Storage. Store data based on the optical properties of a device. Strong, established market for removable media. Small market for archival.
Disks Chapter 5 Thursday, April 5, Today’s Schedule Input/Output – Disks (Chapter 5.4)  Magnetic vs. Optical Disks  RAID levels and functions.
CDs and DVDs  Are types of optical storage media that consists of a flat, round, portable disc made of metal plastic and lacquer.  Store software, data,
Storage Devices Magnetic Storage Optical Storage Digital Storage.
Backing Storage.
Reference :Understanding Computers
M. Guymon Pleasant Grove High School Spring 2003 RAM vs. ROM RAM “Random Access Memory” The ability of a storage device to go directly to a specific storage.
Chapter4: Memory External Memory (2).
Storage devices 1. Storage Storage device : stores data and programs permanently its retained after the power is turned off. The most common type of storage.
STORAGE DEVICES Storage devices are categorized by the method they use to store files.
What do you mean by external storage devices? External storage devices are the devices that temporarily store information for transporting from computer.
Computer Performance & Storage Devices Computer Technology.
Engr: Sajida Introduction to computing Optical storage The storage devices which use laser to read data from or write data to the reflective surface store.
Computer Performance & Storage Devices Computer Technology #2.
Reference: Chp 6 Introduction to Computers by Peter Norton
Chapter 7.
Device Management Damian Gordon.
Disks.
Secondary Storage Devices
Overview Continuation from Monday (File system implementation)
Computer Performance & Storage Devices
Disks Magnetic (hard) Disk arrays are used for reliable storage (RAID)
Presentation transcript:

Disks

●Circular-shaped storage medium ●Two main types: Magnetic and Optical ●Random access to memory ●The hardware must be controlled by driver software called the “controller” in order to be used

Hard Disks, RAID, and Error Handling

Magnetic Disks ●Used to store non-volatile memory. ●Reads & writes are equally fast ●Main types are hard disks & floppy disks ●Controller driver controls the hardware to varying degrees

Hard Disks Usually contain dedicated microcontroller hardware to provide the driver controller a higher-level abstraction. Since the CPU doesn't have to control the particularities of the drive, the CPU is free to do other things and let the drive's I/O run asynchronously. (eg overlapped seeks)

Disk Structure

RAID ●“Redundant Array of Independent Disks” ●Contrasted with “SLED” (Single Large Expensive Disk) ●Parallelism with I/O is a good idea ●RAID controller hardware is used, which allows the RAID to interact with the operating system without any special software

RAID concepts ●Striping distributes data over multiple drives in round-robin fashion ●“Parity” drives hold error correcting codes (ECC) that can correct data if one of the drives fail.

Different RAID configurations

Error Handling ●Disks may have defects when they are manufactured, so there must be a way to still use these disks correctly with the defects. There are multiple strategies of dealing with the defects.

Ways of handling disk defects A replacement sector must be used, which can be done either by putting the bad sector in, or shifting every sector after the bad sector down one. This must be handled by either the operating system or the controller.

Optical Discs ● Optical rather than magnetic ● Higher densities than magnetic disks ● Have gone through rapid evolution

First Generation & Compact Discs ●Optical discs were invented by Dutch electronics company Philips for the purpose of holding movies ●Philips teamed up with Sony to create the Compact Disc (CD) in 1980 ●Specifications were published in the “Red Book” in order to create a standard format for CDs −120 mm across −1.2 mm thick −15 mm hole in the center ●First successful mass market digital storage medium

Technical Details ● How they're made − A high-power infrared laser burns tiny holes into a glass disc, which is used to create a mold of molten polycarbonate resin. − Pits – depressions in the polycarbonate substrate − Lands – unburned areas of the disc − To play a disc, a low-power laser shines on the disc, detecting the pits and lands. A transition from a pit to a land or vice- versa is considered a 1 for computation purposes, whereas no change is considered a 0.

Technical Details (cont) Pits and lands are organized into a single spiral that circles the disc 22,188 times. If one was unwound, the spiral would be 5.6 kilometers long.

CD-ROM In 1984, Philips and Sony published standards for CD- ROMs (Compact Disc – Read-Only Memory), which were used to store computer data.

CD-ROM (cont) ●A standard audio CD has room for 74 minutes of music, or 681,984,000 bytes. ●In 1986, Philips added graphics and the ability to interleave audio, video, and data in the same sector. ●High Sierra – File system devised to make it possible to use the same CD-ROM on different computers. It later evolves into IS There are three levels. −Level 1 – restricts file name length to 8 chars and requires contiguous files. Can be read by just about any computer. −Level 2 – allows names of up to 32 characters. −Level 3 – allows noncontiguous files

CD-Recordable ● To write to a CD-R, a high powered laser is fired at the gold layer. When the beam hits a spot of dye, it changes the molecular structure of the dye and creates a dark spot. The dark spot is treated as a shift between a land and a pit would on a CD-ROM.

CD-Rewritable ● Same size as CD-R, but uses a different type of dye that allows the disc to be rewritten multiple times. ● A CD-RW drive has lasers with three different settings. − High power laser melts the alloy into a low reflectivity state to represent a pit. − Medium power laser melts and reforms the alloy into a reflective state, representing a land. − Low power laser used for reading the disc that does not change the alloy.

DVD ●Same general design as CDS, but: −Uses smaller pits −Has a tighter spiral −Uses a thinner, red laser ●Seven times as much space as a CD (4.7 GB)

Disk Formatting & Stable Storage

Topics ●Steps of formatting a disk for first time use ●Stable storage and operations used to keep disk in check

Formatting ●Before use, each disk platter must receive a low-level format ●Disk capacity gets reduced by this format ●After low-level format, disk gets partitioned ●Partitions allow for multiple operating systems to coexist ●Final step for preparing a disk is a high-level format of each partition

Low-level Formatting ●Format consists of series of concentric tracks ●Each contains some number of sectors with short gaps in between ●Format of a sector shown below

Video Link ​

Stable Storage ●Goal is to keep disk consistent at all costs ●3 operations ○Stable writes ○Stable reads ○Crash recovery

Stable Writes ●Consists of writing the first block on drive 1, then reading back to verify correctness ●If not correct, then write and reread are done again up to n times until they work ●After n consecutive failures, the block is remapped onto a spare and repeats until success ●After write to drive 1 succeeds, the block on drive 2 is written and reread repeatedly

Stable Reads ●First reads the block from drive 1 ●If yields an incorrect ECC, read is tried again up to n times ●If all tries give bad ECCs, corresponding block from drive 2 is read ●Stable read always succeeds when stable write succeeds

Crash Recovery ●After a crash, recovery program scans both disks comparing corresponding blocks ●If both blocks are good and the same, nothing is done ●If one has an ECC error, the bad block is written over with the corresponding good block ●If a pair of blocks are both good but different, then the block from drive 1 is written into drive 2

Image sources Hard Disk Raid 4 Raid 5 Disk Structure Other images are from the textbook.