Secondary Storage and System Software: Lecture No. 2
Secondary Storage and System Software: Lecture No. 2
Lecture No. 2
Contents
1 Introduction
7 LOGO
7
1
1/8/23
Introduction
8 LOGO
8
9 LOGO
9
2
1/8/23
Storage Basics
v A data storage system has two main components: a
storage medium and a storage device.
10 LOGO
10
Storage Basics
v Three types of storage technologies are commonly used
for personal computers: magnetic, optical, and solid state
11 LOGO
11
3
1/8/23
Magnetic Storage
Technology
12 LOGO
12
13 LOGO
13
4
1/8/23
Hard Disks
v A hard disk drive contains one or more platters and their
associated read-write heads.
14 LOGO
14
Hard Disks
15 LOGO
15
5
1/8/23
Hard Disks
16 LOGO
16
Hard Disks
17 LOGO
17
6
1/8/23
Hard Disks
18 LOGO
18
Hard Disks
v Each platter has a read-write head that hovers just a few
microinches above the surface.
19 LOGO
19
7
1/8/23
Hard Disks
20 LOGO
20
Hard Disks
v Magnetic disks support direct access to a desired location
21 LOGO
21
8
1/8/23
Hard Disks
v The platters spin (7200 rpm
or 5400 rpm)
22 LOGO
22
Hard Disks
v Disk contains concentric tracks
v A sector is the
smallest
addressable unit
in disk
23 LOGO
23
9
1/8/23
Hard Disks
24 LOGO
24
Hard Disks
25 LOGO
25
10
1/8/23
Hard Disks
26 LOGO
26
Hard Disks
27 LOGO
27
11
1/8/23
Hard Disks
v Cylinder: the set of tracks on
a disk that are directly
above/below each other
28 LOGO
28
12
1/8/23
30 LOGO
30
13
1/8/23
32 LOGO
32
v The file manager maps the logical parts of the file into
their physical location
33 LOGO
33
14
1/8/23
34 LOGO
34
15
1/8/23
Fragmentation
v Due to records not fitting exactly in a sector
36 LOGO
36
37 LOGO
37
16
1/8/23
§ Key subblock (optional): contains the key for the last record in
the data subblock (disk controller can search for key without
loading it in main memory)
block
39 LOGO
39
17
1/8/23
Nondata Overhead
v Amount of space used for extra stuff other than data
v Sector-Addressable Disks
§ At the beginning of each sector some info is stored, such as
sector address, track address, condition (if sector is defective);
§ There is some gap between sectors
v Block-Organized Disks
§ subblocks and interblock gaps is part of the extra stuff; more
nondata overhead than with sector-addressing
40 LOGO
40
Solved Example
v Disk characteristics
§ Block-addressable Disk Drive
§ Size of track = 20.000 bytes
§ Nondata overhead per block = 300 bytes
v File Characteristics
§ Record size = 100 bytes
41 LOGO
41
18
1/8/23
Solved Example
v Blocking factor is 10
42 LOGO
42
Solved Example
v Blocking factor is 60
43 LOGO
43
19
1/8/23
44 LOGO
44
45 LOGO
45
20
1/8/23
Floppy Disk
v Floppy disks (also called floppies
or diskettes) is a type of disk
storage composed of a disk of thin
and flexible magnetic storage
medium, sealed in a rectangular
plastic carrier lined with fabric that
removes dust particles.
46 LOGO
46
Tapes
v A tape is a magnetically coated strip of plastic on which
data can be encoded.
47 LOGO
47
21
1/8/23
Tapes
v Accessing data on tapes, however, is much slower than
accessing data on disks.
48 LOGO
48
Optical Storage
Technology
49 LOGO
49
22
1/8/23
50 LOGO
50
v The dark pits and light lands on the disc surface reflect
the light differently.
51 LOGO
51
23
1/8/23
52 LOGO
52
53 LOGO
53
24
1/8/23
You cannot write to a You can write to one You can write to
-ROM disc, which left of these discs once these discs, erase
the factory with data (provided you have them, and write to
already on it. A -ROM an -R drive). But them again.
drive can read discs when you're done, The term re-
but not write to them, it's effectively a - recordable (RE) is
and has no use at all ROM disc sometimes used
for a blank disc. instead of rewritable
LOGO
54
CD (Compact Disc)
v CD (Compact Disc) technology was originally designed
to hold 74 minutes of recorded music.
55 LOGO
55
25
1/8/23
56 LOGO
56
Blu-ray
v Blu-ray is a high-capacity storage technology with a 25
GB capacity per layer.
57 LOGO
57
26
1/8/23
58 LOGO
58
59 LOGO
59
27
1/8/23
60 LOGO
60
61 LOGO
61
28
1/8/23
62 LOGO
62
Memory Cards
v A memory card is a flat, solid state storage medium
commonly used to transfer files from digital cameras and
media players to computers.
63 LOGO
63
29
1/8/23
64 LOGO
64
65 LOGO
65
30
1/8/23
66 LOGO
66
31