Sec 1 3 Mass storage secondary storage 1

  • Slides: 40
Download presentation
Sec (1. 3): Mass storage (secondary storage) 1

Sec (1. 3): Mass storage (secondary storage) 1

Mass storage Due to the volatility and limited size of a computer’s main memory,

Mass storage Due to the volatility and limited size of a computer’s main memory, most computers have additional memory devices called mass storage (or secondary storage) system. n example: magnetic disks, CDs, DVDs, magnetic tapes, and flash drivers. n 2

Mass storage (secondary storage) Like magnetic disk, CD, DVD, magnetic tapes and flash drives

Mass storage (secondary storage) Like magnetic disk, CD, DVD, magnetic tapes and flash drives Advantages of mass storage over main memory: 1. include less volatile 2. large storage capacity 3. low cost 4. many cases, the ability to remove the storage medium from the machine for archival purposes Disadvantages: A major disadvantage of the mass storage systems is that they typically require mechanical motion and therefore require significantly more time to store and retrieve data then a machine's main memory, where all activities are performed electronically 3

Mass Storage Systems n Magnetic Systems ¨ Disk ¨ Tape n Optical Systems ¨

Mass Storage Systems n Magnetic Systems ¨ Disk ¨ Tape n Optical Systems ¨ CD ¨ DVD n Flash Drives 4

On-line and Off-line: n Means that the devices that can be either attached or

On-line and Off-line: n Means that the devices that can be either attached or de-attached from a machine n On-line: means that the device or information is connected readily available to machine without human intervention n Off-line: means that human intervention is required before the devices or information can be accessed by the machine. 5

Magnetic system: It is significant to two kinds: 1. sequential access secondary storage 2.

Magnetic system: It is significant to two kinds: 1. sequential access secondary storage 2. Direct access secondary storage n sequential access secondary storage searching for a certain data means starting from the beginning of the file sequentially till the data is reached ( like magnetic reel tape and cassette ) n Direct access secondary storage Data can be reached directly without going through the stored data (like magnetic disk ) 6

Magnetic system: sequential access secondary storage 1 ) Reel Magnetic Tape: n Used in

Magnetic system: sequential access secondary storage 1 ) Reel Magnetic Tape: n Used in mainframe computers n It has a plastic strip coated with one side with magnetized material (Chromium Dioxide) n It is width 1/2 inch and it is length commonly 2400 feet (some reel with 300, 600 or 1200 feet ) n The strip is divided into 7 or 9 tracks (9 common ) n Strip with 9 tracks stores about 6250 characters per inch. n In strip with 18 tracks, 38000 characters can be stored in 1 inch The devices that reads the tape is called tape drive it consists of: ¨ ¨ ¨ Two reels one for source and the other for destination R/W head which reads or writes the data on the strip Control unit which control in reading and writing operations 7

Magnetic tape An older from of mass storage n Information is recorded on the

Magnetic tape An older from of mass storage n Information is recorded on the magnetic coating of a thin tape that is wound on a reel. n Taps is mounted in a device called tape drive (read/write). n A major disadvantages of it, that moving between different position on tape can be very time-consuming n 8

Figure 1. 10 Magnetic tape storage 9

Figure 1. 10 Magnetic tape storage 9

Magnetic system: Direct access secondary storage 2 ) magnetic disk n Note: the capacity

Magnetic system: Direct access secondary storage 2 ) magnetic disk n Note: the capacity of disk storage system depends on the number of disk used and the density in which the tracks and sectors are placed ¨ Lower-capacity system consists of a single plastic disk known a diskette or floppy disk (off-line storage). 3 1/2 inch have a capacity of only 1. 44 MB ¨ High capacity system like hard-disk (consist of 5 -10 rigid disks mounted on a common spindle ) 10

Mass Storage: Magnetic Disk Systems n Magnetic disks: the most widely used storage medium

Mass Storage: Magnetic Disk Systems n Magnetic disks: the most widely used storage medium in computers today n Data is stored by magnetizing particles on the storage medium. n Capacity depends on # of disks & density of tracks and sector placed on 11

Figure 1. 9 A magnetic disk storage system 12

Figure 1. 9 A magnetic disk storage system 12

Magnetic systems n Magnetic disk performance evaluation depends on four criteria's: ¨ Seek time,

Magnetic systems n Magnetic disk performance evaluation depends on four criteria's: ¨ Seek time, the time required to move the read/write head from track to another. ¨ Rotation delay (latency time), half -average calculation the time required for the disk to make complete rotation. ¨ Access time, the sum of the seek time and rotation delay. ¨ Transfer rate, the rate at which data can be transferred to/from the disk. 13

14

14

Mass Storage: Magnetic Disk Systems Two common types: ¨ Floppy disks: Diskette (low-capacity) ¨

Mass Storage: Magnetic Disk Systems Two common types: ¨ Floppy disks: Diskette (low-capacity) ¨ Hard disks: (high-capacity) 15

Floppy Disks and Drives n Floppy disk characteristics ¨ Single plastic flexible disk ¨

Floppy Disks and Drives n Floppy disk characteristics ¨ Single plastic flexible disk ¨ Typically 3½ inches in diameter. ¨ Typically hold 1. 44 megabytes. ¨ Inserted into floppy disk drive to be read from or written to. 16

17

17

Floppy Disks and Drives, Cont’d. n Disk is divided into tracks, sectors, and clusters.

Floppy Disks and Drives, Cont’d. n Disk is divided into tracks, sectors, and clusters. 18

Floppy Disks and Drives, Cont’d. n Using floppy disks ¨ Must be inserted into

Floppy Disks and Drives, Cont’d. n Using floppy disks ¨ Must be inserted into the proper drive in the proper direction. ¨ Should not be removed when the disk is being accessed. n High-capacity removable magnetic disks and drives ¨ Zip disks (750 MB) ¨ Super. Disks (240 MB) 19

Hard Disk System: Hard disk characteristics n Usually (5 -10) rigid disks mounted on

Hard Disk System: Hard disk characteristics n Usually (5 -10) rigid disks mounted on a common spindle and combined into a disk pack n Disk drive - a device that allows data to be read from or written to a disk n Disk drive for personal computers contained within computer housing n Can be internal or external. n Large computer systems may have several external disk drives n Capacity in gigabytes n Accessing files much faster than accessing files on diskettes 20

21

21

Disk Packs Each disk has its own access arm with read/write head n Most

Disk Packs Each disk has its own access arm with read/write head n Most disk packs combine disks, access arms, and read/write head n 22

Reading/Writing Data n n Access arm moves read/write head over particular location Read/write head

Reading/Writing Data n n Access arm moves read/write head over particular location Read/write head hovers a few millionths of an inch above disk and doesn’t touch the surface of the disk. ¨ If head touches platter, a head crash occurs and data is destroyed ¨ Data can be destroyed if head touches miniscule foreign matter on surface of disk 23

How Data Is Organized into tracks, sectors, clusters, and cylinders n. Track n. Sector

How Data Is Organized into tracks, sectors, clusters, and cylinders n. Track n. Sector n. Cluster n. Cylinder 24

Disk Access Speed Access time - the time needed to access data on disk

Disk Access Speed Access time - the time needed to access data on disk n Three factors n ¨ Seek time ¨ Head switching ¨ Rotational delay n Once data found, next step is data transfer 29

Optical Systems: Like Compact Disk (CD): n n These disks are 12 cm (approximately

Optical Systems: Like Compact Disk (CD): n n These disks are 12 cm (approximately 5 inches) in diameter and consist of reflective material covered with a clear protective coating The capacity of the CD about 600 to 700 MB. Information is recorded on them by crating variations in their reflective surfaces. This information can be retrieved by means of a laser beam. That monitors irregularities on the reflective surface of the CD. 34

Optical Systems: CD-DA: (Compact Disk Digital Audio): Which technology applied to audio recordings Information

Optical Systems: CD-DA: (Compact Disk Digital Audio): Which technology applied to audio recordings Information on these CDs is stored on a single track that spiral around the CD, this track divided into units called sectors. Each with its own identifying marking s and a capacity of 2 KB of data Note: the distance around the spiraled track is greater from the outer edge of the disk than the inner portion Note: to maximize the capacity of a CD: information is stored at a uniform linear density over the entire spiraled track which means that more information is stored in a loop around the outer portion of spiral than in a loop around the inner portion 35

Mass Storage: Optical Systems n n Provides inexpensive and compact storage with greater capacity

Mass Storage: Optical Systems n n Provides inexpensive and compact storage with greater capacity ( approx. 5 inches diameter) Information is recorded by creating variation in reflective services Information is retrieved by a laser beam that monitors irregularities on the reflective surface Laser scans disk and picks up light reflections from disk surface 36

Optical Systems: Compact Disks Categorized by read/write capability: n n n CD-ROM - drive

Optical Systems: Compact Disks Categorized by read/write capability: n n n CD-ROM - drive can only read data from CDs ¨ CD-ROM stores up to 700 MB per disk ¨ Primary medium for software distribution CD-R - drive can write to disk once ¨ Disk can be read by CD-ROM or CD-R drive CD-RW - drive can erase and record over data multiple times ¨ Some compatibility problems trying to read CD-RW disks on CD-ROM drives 37

Optical Systems: Digital Versatile Disk (DVD) n n n Constructed from multiple, semi-transparent layers

Optical Systems: Digital Versatile Disk (DVD) n n n Constructed from multiple, semi-transparent layers ¨ DVD drive can read CD-ROMs ¨ Capacity up to 17 GB ¨ Allows for full-length movies ¨ Sound is better than on audio CDs Several versions of writable and rewritable DVDs exist Which are constructed from multiple layers that serve as distinct surfaces when viewed by precisely focused laser provide storage capacities of several GB. Such disks are storing lengthy multimedia presentations, including entire motion pictures 38

Mass Storage: Flash memory media n Bits are stored by sending electronic signals directly

Mass Storage: Flash memory media n Bits are stored by sending electronic signals directly to the storage medium where they causes electrons to be trapped in tiny chambers of silicon dioxide. n Chip-based storage. n This technology is suitable for off-line storage of data 39

Flash memory media n n n Note: data stored in flash can be accessed

Flash memory media n n n Note: data stored in flash can be accessed in small byte-size units as in RAM applications. Repeated erasing slowly damages the silicon dioxide chambers, meaning that current flash memory technology is not suitable for general main memory application Since flash memory is not sensitive to physical shock, it is potential in portable applications is enticing 40

Flash memory media n n n Flash drives, with capacities of up to a

Flash memory media n n n Flash drives, with capacities of up to a few GB, are available for general mass storage applications These units are packaged in small plastic cases approximately three inches long with the removable cap on one end to protected the unit's electrical connector when the drive is off-line Commonly used with digital cameras, digital music players, handheld PCs, notebook computers, smart phones, etc. 41

Flash memory media n Flash memory media, cont’d. ¨ Common forms of flash memory:

Flash memory media n Flash memory media, cont’d. ¨ Common forms of flash memory: n Flash memory sticks. n Flash memory cards—Compact. Flash, Secure Digital (SD), Mini. SD, Multi. Media (MMC), Smart. Media, and x. D Picture cards. n Flash memory drives, such as USB flash drives. 42

43

43

File storage n File: A unit of data stored in mass storage system ¨

File storage n File: A unit of data stored in mass storage system ¨ data stored in a mass storage system is conceptually grouped into large unit called files ¨ Files stored on a magnetic disk must be manipulated by sector. ¨ A block of data conforming to the specific characteristics of a storage device is called a physical record. ¨ A large file stored in a mass storage will consists of many physical record. “the size of the sector” 44

File storage n The nature f a file division is determined by the information

File storage n The nature f a file division is determined by the information represented in the file. ¨ File containing information regarding a company's employee would consists of multiple units. Each consists of information about one employee. ¨ These naturally producing “occurring” blocks of data are called logical records. ¨ Logical record: the nature divisions within the data 45

File storage 46

File storage 46

File storage n Logical record consists of smaller units called fields. n Employee name,

File storage n Logical record consists of smaller units called fields. n Employee name, address, employee ID, etc. Identifying a field by a key field. n Buffer: A memory area used for the temporary storage of data (usually as a step in transferring the data) n 47

File storage and retrieval: n. Field: set of characters n. Record: set of fields

File storage and retrieval: n. Field: set of characters n. Record: set of fields n. File: set of records n. Data base: set of files 48