📝 Disk Structure overview (15 MCQs)
Physical and Logical Organisation of Disk Storage
Disk structure describes how secondary-storage devices organise physical media, logical blocks, partitions, and file-system data. A storage device exposes addressable blocks that the operating system can read and write through a controller. The operating system builds higher-level structures on these blocks, including partition tables, file systems, directories, and metadata. This layered organisation connects physical storage hardware with the files and applications that use it.
Why Storage Requires Multiple Organisation Layers
Applications need to store information without managing the physical position of every byte on a disk. Device controllers expose logical block addressing, while partitioning divides storage into independently managed regions. File systems organise those regions into files and directories. Separating these responsibilities simplifies storage allocation, supports multiple file systems, and allows operating systems to manage different devices through consistent interfaces.
Logical Blocks, Partitions and File-System Structures
The storage controller presents addressable logical blocks to the operating system. A partition table identifies divisions of the device, and a file system may be created within each partition. The file system maintains metadata, allocation information, directories, and file contents. Device drivers translate operating system requests into controller commands that access the requested logical blocks.
Organising a New Storage Device
Suppose a 1 TB disk is divided into two partitions of 400 GB and 600 GB. The first partition receives a file system for the operating system, while the second stores user data. The file systems allocate blocks to files and maintain directory information. The partition structure separates storage regions without requiring applications to understand physical disk geometry.
Storage Capacity, Allocation and Access Overhead
Layered disk organisation supports flexible storage allocation, multiple file systems, and efficient management of large devices. However, partitioning and file-system metadata consume storage space, while fragmentation and device latency affect performance. Modern devices commonly use logical block addressing rather than exposing traditional physical geometry. Storage reliability also depends on controller behaviour, file-system consistency, and appropriate recovery mechanisms.
Common Confusions About Storage Layers
'A partition is automatically a complete file system' is incorrect because a partition provides a storage region that may be formatted separately. 'Applications directly manage physical disk sectors' is incorrect because operating system and file-system layers normally handle allocation. 'Logical block addresses always reveal physical geometry' is incorrect because modern controllers translate logical addresses internally.
Exam Focus: From Logical Blocks to Files
Trace the relationship between a physical device, logical blocks, partitions, file systems, and files. Explain the responsibilities of the storage controller, device driver, and file-system manager. Compare partitioning with formatting and identify where metadata resides. Questions may also examine logical block addressing and the role of file-system allocation structures.
Key Terms of Disk Structure
- Logical block - Addressable storage unit.
- Partition - Independent storage region.
- Partition table - Records device divisions.
- File system - Organises files and metadata.
- Device driver - Communicates with storage hardware.
- LBA - Logical block addressing.
📝 All Disk Structure overview MCQs
Q1. What is the most common size of a logical block on modern magnetic disks?
📖 Explanation: The typical logical block size is 512 bytes, which has been the standard for many years. Option B states this size, making it correct. Option A (1024 bytes) is used only on some specialized formats, not the common case. Options C and D are larger sizes that are rarely used for a single logical block. Understanding the default size helps when calculating how many blocks a file will occupy.
Q2. Why does the number of sectors per track typically decrease from the outermost to the innermost zone on a disk that uses constant linear velocity?
📖 Explanation: Constant linear velocity keeps the linear speed of the disk surface constant, so the length of each track determines how many sectors fit. Outer tracks have a larger circumference, allowing more sectors, while inner tracks are shorter and thus hold fewer sectors. Option C captures this relationship. The other options misstate the physics or refer to unrelated conventions.
Q3. How does increasing the rotation speed when moving the head toward inner tracks help maintain data transfer rate?
📖 Explanation: When the head moves inward, the track circumference shrinks, so fewer bits pass under the head per revolution. By raising the rotation speed, the disk ensures the same linear bit rate, preserving the data transfer rate. Option B correctly describes this compensation. Option A confuses timing with speed, Option C is unrelated to rotation, and Option D is the opposite of what actually occurs.
Q4. A file system needs to allocate 3,072 bytes. How many logical blocks of 512 bytes are required?
📖 Explanation: Dividing the total bytes by the block size gives 3,072 ÷ 512 = 6 blocks. Option C matches this calculation, making it correct. Options A, B, and D either underestimate or overestimate the needed blocks, which would either truncate the file or waste space. Knowing how to convert bytes to blocks is essential for efficient storage allocation.
Q5. What is the primary reason that defective sectors are hidden from the logical block addressing scheme?
📖 Explanation: When a sector is found to be defective, the disk controller substitutes a spare sector from elsewhere on the platter, preserving the logical block sequence. This substitution is transparent to the operating system, which continues to address blocks sequentially. Option B describes this mechanism. Options A and C suggest the OS deals with defects directly, which is not typical, and D misrepresents the repair process.
Q6. How does the mapping of logical block numbers to cylinder, track, and sector simplify the interface for operating systems?
📖 Explanation: Logical block mapping abstracts away the complex physical layout of cylinders, tracks, and sectors, presenting a simple linear address space to the OS. This abstraction (Option A) lets software read and write data without needing to know exact head positions. Options B, C, and D describe unrelated functionalities that are not achieved by the logical‑to‑physical mapping.
Q7. A disk has outer zone tracks holding 40% more sectors than inner zone tracks. If an inner track holds 100 sectors, how many sectors does a typical outer track hold?
📖 Explanation: A 40 % increase over 100 sectors gives 100 × 1.40 = 140 sectors. Option C reflects this calculation. Options A and B underestimate the increase, while D overestimates it. Understanding the proportional relationship helps when estimating capacity differences between zones.
Q8. During a format, a disk reports 2% of its sectors as defective. If the disk contains 10,000 sectors, how many spare sectors are needed to replace them?
📖 Explanation: Two percent of 10,000 equals 0.02 × 10,000 = 200 sectors, so 200 spare sectors are required. Option C provides the correct number. The other options represent lower or higher estimates that would either leave some defects uncovered or waste space. Accurate calculation of spare sectors ensures reliable operation after formatting.
Q9. A storage engineer must calculate the logical block number for cylinder 5, track 3, sector 12 on a disk where each cylinder has 4 tracks and each track in that cylinder contains 200 sectors. What is the logical block number?
📖 Explanation: Logical block number = ((cylinder × tracks_per_cylinder) + track) × sectors_per_track + sector. Substituting the values gives ((5 × 4) + 3) × 200 + 12 = 23 × 200 + 12 = 4,600 + 12 = 4,612. Option A matches this result. The other options arise from arithmetic errors such as forgetting the final addition or using an incorrect multiplier.
Q10. If a disk uses constant linear velocity and the outermost track has 250 sectors while the innermost track has 180 sectors, what percentage increase does the outer track represent over the inner track?
📖 Explanation: The percentage increase is ((250 − 180) / 180) × 100 ≈ 38.9 %, which rounds to 39 %. Option C reflects this value. Options A, B, and D are lower or higher estimates that do not match the calculated increase. Knowing how sector counts vary across zones aids in capacity planning.
Q11. Explain why variable sectors‑per‑track complicates the translation from logical block numbers to physical addresses on some drives.
📖 Explanation: When sectors per track vary, the simple formula (cylinder × tracks × sectors + offset) no longer applies uniformly; the translation must adjust for each track’s specific sector count, making the computation more complex. Option A captures this issue. Options B, C, and D describe conditions that either simplify the problem or are unrelated to sector variability.
Q12. What advantage does mapping logical blocks sequentially across tracks within a cylinder provide for read/write performance?
📖 Explanation: Sequential mapping within a cylinder keeps the read/write head on the same cylinder for many consecutive accesses, reducing the need for frequent seeks and thus improving performance. Option A states this benefit. Options B and C describe negative effects that are not advantages, while D limits the benefit to outer tracks, which is inaccurate.
Q13. A system writes a 1 MiB file using 512‑byte logical blocks. Approximately how many blocks are needed?
📖 Explanation: One mebibyte equals 1,048,576 bytes. Dividing by the block size gives 1,048,576 ÷ 512 = 2,048 blocks. Option B matches this calculation. Options A, C, and D represent half, double, or quadruple the correct count, leading to under‑ or over‑allocation of space.
Q14. During a performance test, a disk rotates at 7200 rpm. How many revolutions occur in one second?
📖 Explanation: Rotations per second = 7200 rpm ÷ 60 seconds = 120 rev/s. Option C is correct. Options A and B are lower, while D is higher than the actual value. Converting rpm to rev/s is a basic step in evaluating rotational latency.
Q15. If a drive replaces each defective sector with a spare located 5 cm outward on the same platter, how might this affect average seek time compared to random spare placement?
📖 Explanation: Placing spares outward adds a modest extra distance for the head to travel when accessing a replaced sector, leading to a slight increase in average seek time versus randomly distributed spares that may be closer on average. Option A describes this effect. Options B and C misstate the impact, and D addresses power rather than latency.