lecture 10 storage devices
TRANSCRIPT
-
8/7/2019 Lecture 10 Storage devices
1/42
LECTURE 10Storage Devices
-
8/7/2019 Lecture 10 Storage devices
2/42
Secondary Storage Devices
CENG 351
2
Two major types of secondary storage devices:
1. Direct Access Storage Devices (DASDs)
Magnetic DiscsHard disks (high capacity, low cost, fast)Floppy disks (low capacity, lower cost, slow)
Optical DisksCD-ROM = (Compact disc, read-only memory
2. Serial Devices Magnetic tapes (very fast sequential access)
-
8/7/2019 Lecture 10 Storage devices
3/42
Types of Storage Device
Sequential Access: In sequential access storage devices, datacan be accessed in sequential manner only.
And the time taken to read from a particular location will bedependant on the location last accessed.
Sequential access devices are usually used for backup purpose
only, where frequent access of information is not required.
Random Access: Random Access storage devices allow retrieval ofcontent from any location in the same amount of time is independent ofcontent's location...
-
8/7/2019 Lecture 10 Storage devices
4/42
Secondary Storage Devices8-4
-
8/7/2019 Lecture 10 Storage devices
5/42
Magnetic Storage
Recording of dataonto disks or tape bymagnetizing particlesof an oxide basedsurface coating.
A fairly permanent
type of storage thatcan be modified.
-
8/7/2019 Lecture 10 Storage devices
6/42
Organization of Disks
CENG 351
6
Disk contains concentric tracks.
Tracks are divided into sectors A sector is the smallest addressable unit in a disk.
-
8/7/2019 Lecture 10 Storage devices
7/42
Sector, Cluster & Track7
-
8/7/2019 Lecture 10 Storage devices
8/42
Looking at a surface
CENG 351
8
Surface of disk showing tracks and sectors
sector
tracks
-
8/7/2019 Lecture 10 Storage devices
9/42
Cylinders
CENG 351
9
-
8/7/2019 Lecture 10 Storage devices
10/42
Clusters
CENG 351
10
Usually File manager, under the operating system,maintains the logical view of a file.
File manager views the file as a series of clusters,each of a number of sectors. The clusters areordered by their logical order.
Files can be seen in the form of logical sectors orblocks, which needs to be mapped to physicalclusters.
File manager uses a file allocation table (FAT) tomap logical sectors of the file to the physical clusters.
-
8/7/2019 Lecture 10 Storage devices
11/42
-
8/7/2019 Lecture 10 Storage devices
12/42
Floppy disk : It can only store up 1.44Mb of data. All disks must be formatted before data can be written tothe disk. Formatting divides the disk up into sections or sectors onto which data files are stored.
Advantage :
Small & light easy to carry
Cheap Useful for transferring small files
Can be used many times
Security tab to stop data from being written over
Disadvantage :
Easy to be damage
Small storage capacity
Many new computer dont have floppy disk drives
Can transport viruses from one machine to another
Slow to access and retrieve data when compared to a hard disk
Data can be erased if the disk comes into contact with a magnetic field
-
8/7/2019 Lecture 10 Storage devices
13/42
Floppy Disk
Round piece of flexibleMylar plastic covered with a
thin layer of magnetic oxideand sealed inside aprotective covering.
May be referred to as afloppy
3 disk capacity is 1.44MBor 1,440,000 bytes
-
8/7/2019 Lecture 10 Storage devices
14/42
Traditional Floppy Diskette8-14
-
8/7/2019 Lecture 10 Storage devices
15/42
Cont..1. Capacity indication
2. Hub
3. Shutter4. Plastic housing
5. Paper ring
6. Magnetic disk
7. Disk sector
-
8/7/2019 Lecture 10 Storage devices
16/42
HARD DISK16
Media Platter
Stepper Motor
Spindle Motor
Media Arm
Absorption point
Screw
Head
-
8/7/2019 Lecture 10 Storage devices
17/42
Hard Disks8-17
Use thicker, metallic platters for storage
Faster than a floppy diskette
Large capacity
Sensitive instruments
-
8/7/2019 Lecture 10 Storage devices
18/42
Hard-Disk Packs8-18
Removable
Massive storage capacity
Common in mainframes
Resembles stack of vinyl records
-
8/7/2019 Lecture 10 Storage devices
19/42
Hard-Disk Pack8-19
-
8/7/2019 Lecture 10 Storage devices
20/42
-
8/7/2019 Lecture 10 Storage devices
21/42
Magnetic Disks
CENG 351
21
Bits of data (0s and 1s) are stored on circularmagnetic platters called disks.
A disk rotates rapidly (& never stops). A disk head reads and writes bits of data as
they pass under the head.
Often, several platters are organized into a diskpack (or disk drive).
-
8/7/2019 Lecture 10 Storage devices
22/42
A Disk Drive
CENG 351
22
Disk drive with 4 platters and 8 surfaces and 8 RW heads
surfaces
Spindle Boom
Read/Write heads
-
8/7/2019 Lecture 10 Storage devices
23/42
Components of a Disk
CENG 351 23
Platters
Spindle
Disk head
Arm movement
Arm assembly
Tracks
Sector
The platters spin (say, 90rps).
The arm assembly is moved in orout to position a head on a desired
track. Tracks under heads make acylinder(imaginary!).
Only one headreads/writes at any one time.
Block size is a multipleof sector size (which is often fixed).
-
8/7/2019 Lecture 10 Storage devices
24/42
Accessing Data
CENG 351
24
When a program reads a byte from the disk, the
operating system locates the surface, track and sector
containing that byte, and reads the entire sector intoa special area in main memory called buffer.
The bottleneck of a disk access is moving the
read/write arm.
So it makes sense to store a file in tracks that are
below/above each other on different surfaces, rather than
in several tracks on the same surface.
-
8/7/2019 Lecture 10 Storage devices
25/42
External Hard Disk25
-
8/7/2019 Lecture 10 Storage devices
26/42
Secondary Storage Devices:
Magnetic Tapes
CENG 351
26
-
8/7/2019 Lecture 10 Storage devices
27/42
Magnetic Tape : uses 'serial access' to find a piece of data. It works in much the same way
as a video tape. To find a specific piece of data, you have to start at the beginning of the
tape and continue fast forwarding until you get to the piece of data that you need.
Advantage :
relatively cheap per megabyte of storage
can store large amounts of data - over 100 Gb
can be set up to do the back up overnight or over the week
Disadvantage :
serial access so can be quite slow to access data
need a special piece of equipment to record and read the data on the tape
-
8/7/2019 Lecture 10 Storage devices
28/42
Magnetic Tape8-28
External storage
Provides sequential access
Information stored in sequence
Slower than disks which provide direct
access
Magnetic tape streamers or tapecartridges used by both mainframes
and microcomputers
-
8/7/2019 Lecture 10 Storage devices
29/42
-
8/7/2019 Lecture 10 Storage devices
30/42
-
8/7/2019 Lecture 10 Storage devices
31/42
CENG 351
31
Reel 1 Reel 2
tape
Read/write head
-
8/7/2019 Lecture 10 Storage devices
32/42
Data Blocks and Records
CENG 351
32
Each data block is a sequence of contiguousrecords.
A record is the unit of data that a users programdeals with.
The tape drive reads an entire block of records atonce.
Unlike a disk, a tape starts and stops.
When stopped, the read/write head is over aninterblock gap.
-
8/7/2019 Lecture 10 Storage devices
33/42
Optical Storage Means of recording data as light and dark spots on
CD or DVD.
Reading is done through a low-power laser light.
Pits
Dark spots
Lands Lighter, non-spotted surface areas
-
8/7/2019 Lecture 10 Storage devices
34/42
Optical Disks8-34
Compact
Permanent storage
Laser beams reflect off pits
Two common types
CD
DVD
-
8/7/2019 Lecture 10 Storage devices
35/42
Compact Disc8-35
Optical format
From 650 MB to 1 GB capacity
Rotation speeds vary
Types
Read only: CD-ROM
Write once: CD-R Rewriteable: CD-RW
Picture CDs and Photo CDs
-
8/7/2019 Lecture 10 Storage devices
36/42
CD-ROM : CD Read only memory. When you buy a CD from a store, you can read it, but you
cant save any thing on it.
CD-R(WORM) : CD Write once read many. You are able to save to this disk one time, so you
can storage an application or your data on it. After you have saved on it once, you can read it
many times but cant save on it again.
CD-RW : CD Read Write. You can save your data over and over again, like a floppy disk.
Advantages :
Small and portable
Very cheap to produce
Most computers can read CDs. If there is no CD drive, a DVD drive can usually read them
Fairly fast to access the data - quicker than a floppy disk or magnetic tape
Disadvantages :
Fairly fragile, easy to snap or scratch
Smaller stora e ca acit than a hard drive or DVD
-
8/7/2019 Lecture 10 Storage devices
37/42
Digital Versatile Disc8-37 Digital Versatile Disk or Digital Video Disk (DVD)
Similar to CDs, but can store more data
Types
Read only
Write once
Rewritable
-
8/7/2019 Lecture 10 Storage devices
38/42
DVD-ROM : A new type of read only compact disc that can hold a minimum of 4.7GB.
DVD-R : can only record data once then the data becomes permanent on the disc. This disc
cant be recorded onto second time.
DVD-RW : The data on a DVD-RW disc can be erased and recorded over numerous times
without damaging the medium. DVD-RAM : can be recorded and erased repeatedly but are only compatible with devices
manufactured by the companies that support the DVD-RAM format. DVD-RAM discs are
typically housed in cartridges.
Advantages :
Very large storage capacity
DVD players can read CDs
DVDs are now mass produced so they are relatively cheap
Sound and picture quality is excellent, making them ideal for storing films with video and
sound.
-
8/7/2019 Lecture 10 Storage devices
39/42
HD DVD-R : the writable disc variant of HD DVD, available with a single-layer capacity of 15 GB or a dual-layercapacity of 30 GB.
HD DVD-RW : the rewritable disc variant of HD DVD with equal storage capacity to an HD DVD-R.
HD DVD-RAM : the proposed successor to DVD-RAM for random access on optical media using phase-change principals.It would hold 20 gigabytes per layer instead of 15 gigabytes for HD DVD-R, due to differences in recording methods
used, yielding a higher density disc. Advantage :
Cheaper than a Blu-ray
Greater movie support than the competition
manufacturers can produce the high definition players for much less than Blu-ray.
a number of prominent manufacturers have pledged support to the player and format.
Disadvantage :
Thought its cheap but theres a lot of great things that didnt have in HD DVD.(e.g. charity, Four months worth ofgroceries for the average bachelor est.)
Region coding still unclear
Films arent cheaper, even if the player is
Xbox 360 version features no HDMI
-
8/7/2019 Lecture 10 Storage devices
40/42
A Look to the FutureBlu-Ray Technology8-40 New standard in storage
Blu-Ray
New disks use blue laser light instead of the red laser
light used in traditional CD players
Disks may ultimately hold
Over 30GB on one-sided disks
Over 50GB on two-sided disks
-
8/7/2019 Lecture 10 Storage devices
41/42
Blu-ray : medium designed to supersede the standard DDVD format. Its main uses are for storing high-definition video, PlayStation 3 video games, and other data, with up to 25 GB per single layered, and 50GB per dual layered disc. The disc has the same physical dimensions as standard DVDs and CDs.
Advantage :
Huge storage capacity Mandatory Managed Copy
Backwards compatibility
Clear than DVD
Can put it in the DVD player
Disadvantage :
Very expensive
The cost of film
Presently greater number of movie titles are available on DVD's
Future uncertainty (even without HD-DVD)
Long reading times of the discs
-
8/7/2019 Lecture 10 Storage devices
42/42
Flas
Memory : Memory sticks are available from 1 Gb up to 8 Gb. They are typically small, lightweight,removable and rewritable. They consist of a small printed circuit board which is encased in plastic or metalcasing. They usually have a removable cap which covers and protects the part of the stick which is insertedinto a USB port.
Advantage :
Hold more data than CD More reliable than floppy disk, because they have no moving part
More compact and portable than floppy disks or CDs/DVDs.
Being developed with fashionable looking outer casings and are almost becoming a 'fashion accessory.
Disadvantage :
Lost easily
The metal part which is inserted into the US
B
port can be snapped off if they are handled roughly More expensive than floppy disks, CDs and DVDs