Disk Management
Disk Management
Disk Management
Disk Management
Magnetic disk:
Magnetic disk provides the permanent storage of information that is also
called secondary storage.
A magnetic disk contains a number of disks
of flat circular shape like a CD. Commonly platter’s diameter ranges
from 1.8 to 5.25 inches whose both side surface are covered with a
magnetic material. A read/write head flies just above each surface of
every platter. Heads are attached to a disk arm so that heads can be
moved backward and forward on the tracks. Each platter is divided into
a number of tracks which are again subdivided into a number of sectors.
The set of tracks that
are at one arm position makes up a cylinder. During read/write
operation, the drive motor spins/ rotate at high speed due to which it can
able to read/write in a particular sector on a track.
When a read/write operation
occurs the head move forward and backward to reach a particular track
or cylinder and spindle rotate to move a particular sector on the head.
The time to move the disk arm to a desired track
or cylinder is called seek time. And the time to rotate the disk to reach a
desired sector under the head is called latency time. These types of disks
can transfer several megabytes per second.
Classes By: K.K. Singh, The Launcher Academy, City Centre, Opp- Gossner
College, Club Road Ranchi. Contact- 8877155769, 7903154392
Disk structure:
CLV (Constant Linear Velocity): In this type of media, the density of
bits per track is uniform. The distant track from the center of the disk has
more length so it can hold more sectors. As we move from the outer
zones to inner zones, the number of sectors decreases. The drive
increases its rotation speed as the head moves from the outer to inner
tracks to keep the same rate of data moving under the head. This method
is used in CD-ROM and DVD ROM.
CAV (Constant Angular Velocity): in this type of media, the density of
bits decreases from inner track to outer tracks so to keep data rate
constant, disk rotation speed can be constant. This method is used in
hard disk.
Classes By: K.K. Singh, The Launcher Academy, City Centre, Opp- Gossner
College, Club Road Ranchi. Contact- 8877155769, 7903154392
87,170,40,150,36,72,66,15
Initially head at cylinder 60 it will first move to 87 the 87 to 170 and
so on.
27+83+130….=557 cylinders total movement of head.
Bad Block: As we know that disk have moving parts that is head just
flies above the disk surface. Due to moving this head on the disk surface
there may one or more sectors become defective. Most disks may come
from the factory with bad blocks.
Some disk with IDE (Integrated Device Electronics) controller(IDE
(Integrated Device Electronics) is a standardized interface for data storage devices in
computer systems. It is so named because much of the logic circuitry is integrated into the
device itself. IDE is most commonly used for hard drives and CD or DVD drives, but has
also been used for tape drives and zip drives.
An IDE controller is the primary interface (usually integrated into the motherboard) which
any IDE devices will be plugged into. It handles the flow of data to and from these devices. It
usually consists of two connections (known as IDE channels) both of which can handle up to
2 devices each. It is also possible to add more IDE controllers in the form of PCI or PCI-E
cards, these are usually referred to as IDE controller cards. This is often done to enable
more storage devices to be installed into the system, but may also be done to replace an
obsolete or malfuntioning on-board IDE controller.), bad blocks are handled
manually by performing format, in this process the entire disk is
scanned to find bad blocks if got the bad block, writes a special value
in the corresponding FAT (File Allocation Table) entry to tell the
allocation routine not to use that block.
Some disk with SCSI (Small Computer System Interface) controller,
can sets spare sectors not visible to Operating System. The controller
can replace each bad sector logically with one of spare sectors. This
scheme is known as sector sparing or forwarding. Most disks are
formatted to provide a few spare sectors in each, cylinder and a spare
Classes By: K.K. Singh, The Launcher Academy, City Centre, Opp- Gossner
College, Club Road Ranchi. Contact- 8877155769, 7903154392
Question:
. Suppose the requests for inputting/ outputting to blocks on the cylinders have
arrived, forming the following disk queue: 50, 91, 150, 42, 130, 18, 140, 70, 60
Also assume that the disk head is initially at cylinder 50. Then calculate total no
of head movement per cylinders for all the above scheduling algorithms..
(Assume that head movement direction (let it towards 0, starting cylinder).