










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































Storage Management - 1 SCS 1205 (Lecturer Five)
1
(^) Disk management is a utility built into different operating systems which can be used to create, delete, format partitions, assign drive letters, disk initialization, booting from disk, bad-block recovery and much more. (^) Disk management can also be used to view partitions and their formatted file systems on the hard drive.
(^) Disk formatting is the process of preparing a data storage device such as a hard disk drive, solid-state drive, or USB flash drive for initial use. In some cases, the formatting operation may also create one or more new file systems. (^) Disk formatting is divided into three processes:
(^) Before the disk can be used to hold files, the operating system still needs to record its own data structures on the disk. (^) The partitioning process involves dividing the disk into one or more groups of cylinders. The operating system can treat each partition as though it were a separate disk. For instance, one partition can hold a copy of the operating system’s executable code, while another holds user files.
(^) High-level formatting helps in creating the file system format within the logical volume or within the disk partition. (^) In this step, the operating system stores the initial file- system data structures onto the disk. These data structures may include maps of free and allocated space and an initial empty directory.
(^) For a computer to start running—for instance, when it is powered up or restarted—it must have an initial program to run. (^) This initial bootstrap program tends to be simple. It initializes all aspects of the system, from CPU registers to device controllers and the contents of main memory, and then starts the operating system. (^) To do its job, the bootstrap program finds the operating-system kernel on disk, loads that kernel into memory, and jumps to an initial address to begin the operating-system execution. (^) For most computers, the bootstrap is stored in read-only memory (ROM). (^) A disk that has a boot partition is called a boot disk or system disk.
Bad Blocks (^) Disks are prone to failure. Sometimes the failure is complete; in this case, the disk needs to be replaced and its contents restored from backup media to the new disk. (^) More frequently, one or more sectors become defective. Most disks even come from the factory with bad blocks. (^) Depending on the disk and controller in use, these blocks are handled in a variety of ways.
(^) A file’s attributes vary from one operating system to another but typically consist of these:
(^) File type refers to the ability of the operating system to distinguish different types of file such as text files, pdf files, image files, source files and binary files etc. Many operating systems support many types of files. (^) If an operating system recognizes the type of a file, it can then operate on the file in reasonable ways. (^) A common technique for implementing file types is to include the type as part of the file name. The name is split into two parts—a name and an extension, usually separated by a period. E.g. resume.docx, server.c, and ReaderThread.cpp. (^) In this way, the user and the operating system can tell from the name alone what the type of a file is.
(^) Files store information. When it is used, this information must be accessed and read into computer memory. The information in the file can be accessed in several ways. Some systems provide only one access method for files, while others support many access methods. Generally, there two types of access methods:
(^) With direct access, a file is made up of fixed-length logical records that allow programs to read and write records rapidly in no particular order. (^) For direct access, the file is viewed as a numbered sequence of blocks or records on disk. Thus, we may read block 14, then read block 53, and then write block 7. There are no restrictions on the order of reading or writing for a direct- access file. (^) Direct-access files are of great use for immediate access to large amounts of information. (^) Databases are often of this type. When a query concerning a particular subject arrives, we compute which block contains the answer and then read that block directly to provide the desired information. (^) Not all operating systems support both sequential and direct access for files. Some systems allow only sequential file access; others allow only direct access. Some systems require that a file be defined as sequential or direct when it is created.
Index Access Method