Operating System Fundamentals
70
Managing Magnetic Disks Magnetic disk storage represents one of the most popular categories of IO resources used by a computer. Processes and threads must be able to read data from, and write data to magnetic storage devices such as hard disks and floppy disks. This is most frequently done when accessing
pages from virtual memory, but it also occurs when processes try to open or close files stored on disks. In this section, we will look at how magnetic storage devices are formatted to hold data, and how that data is structured on a disk so that the operating system can read and manage it. We will also take a
look at the elevator algorithm, which is a pattern used by operating systems to manage data retrieval as efficiently as possible.
Disk Formatting Disk formatting is the process of preparing a disk to hold data.
When you reformat a disk, it destroys all of the data previously stored on it. There are three key stages to the formatting process fora disk
Low-level formatting Takes place at the factory. Involves physically drawing tracks and sectors on the disk surface. Partitioning Done by the user. Involves dividing the disk into logical sections. Only primary hard disks can be partitioned (cannot partition external hard disks or floppy disks)
High-level formatting Done by the user. Involves the selection of a file system (such as FAT or NTFS for Windows, and the installation of an operating system. Different partitions
can use different file systems, and can even be used to install different operating systems in the same computer.
Share with your friends: