📝 Partitions and mounting in File System Implementation (15 MCQs)
Dividing Storage Devices into Independent Volumes
Partitions divide a physical storage device into separately managed logical regions, each of which can contain a file system or another storage structure. Operating systems use partition tables, such as MBR or GPT, to identify these regions. Mounting connects a supported file system to the operating system's directory hierarchy, allowing applications to access its contents through normal pathnames.
Why Storage Devices Need Logical Divisions
A single physical disk may serve different operating system installations, data collections, or recovery environments. Partitioning provides separate storage boundaries without requiring separate physical devices. Mounting then makes individual file systems accessible through the namespace. These operations separate device organisation from file access, although partition boundaries and mount configurations must be managed carefully.
Partition Tables and Filesystem Mount Operations
The operating system reads the partition table to identify storage regions and their boundaries. An administrator selects a partition, prepares a supported file system if necessary, and associates it with a mount point. The kernel validates the file system and attaches its root directory to that location. Pathname resolution then enters the mounted volume when accessing the mount point.
Creating and Mounting a Data Partition
Suppose a 1 TB disk contains a 300 GB system partition and a 700 GB data partition. The administrator creates a supported file system on the data partition and mounts it at /mnt/data. An application can then access a stored report through /mnt/data/report.txt without knowing the partition's physical starting sector.
Storage Separation and Mount-Management Risks
Partitioning supports separate operating system installations, data protection arrangements, and independent file-system management. Mounting provides a unified namespace for local and remote storage. However, incorrect partition changes can destroy existing data, and busy mount points may prevent unmounting. Existing files beneath an active mount point are hidden until the mounted file system is detached.
Distinguishing Partitioning, Formatting and Mounting
'Partitioning automatically creates a usable file system' is incorrect because formatting is a separate operation. 'Mounting copies the complete volume into a directory' is incorrect because it attaches its namespace. 'A mounted volume must occupy a separate physical disk' is incorrect because multiple partitions and storage-backed volumes can exist on one device.
Exam Focus: Partition Tables and Mount-Point Resolution
Explain the difference between partition creation, file-system formatting, and mounting. Identify MBR and GPT as partitioning schemes. Trace pathname resolution into a mounted volume and describe why mount-point contents become hidden. Questions may also examine independent volumes, file-system validation, and restrictions on unmounting active storage.
Key Terms of Partitions and Mounting
- Partition - Logical storage division.
- MBR - Master boot record partition scheme.
- GPT - GUID partition table.
- Mount point - Directory used for attachment.
- Mounting - Attaches a file system.
- Unmounting - Detaches a mounted file system.
📝 All Partitions and mounting in File System Implementation MCQs
Q1. A new hard drive is being added to a server. To allow the system to boot from this drive, where must the boot control block be placed on the volume?
📖 Explanation: The boot control block must occupy the first block of a volume because firmware and the operating system expect to find boot code at a known offset. Placing it elsewhere would prevent the system from locating the boot loader, causing a failure to start. The other positions are incorrect because they do not match the fixed-location requirement described in standard disk layouts.
Q2. A volume reports a total of 50,000 blocks and a free‑block count of 12,000. If each block is 4 KiB, what is the total free space in bytes?
📖 Explanation: Multiply the free‑block count (12,000) by the block size (4 KiB = 4,096 bytes). The calculation gives the total free bytes. Option B matches this result. Options A, C, and D use incorrect multiplications or block‑size values, leading to mismatched totals.
Q3. When converting a UFS file system to NTFS, which NTFS structure directly replaces the per‑file File Control Block (FCB) used in UFS?
📖 Explanation: In NTFS, each file's metadata is stored as a row in the Master File Table (MFT), which serves the same purpose as the per‑file FCB in UFS. This row contains identifiers, attributes, and pointers needed for file access. The boot block, superblock, and directory entry serve different roles such as booting, volume metadata, and name mapping, so they do not replace the FCB.
Q4. What is the primary purpose of a volume control block (VCB) on a storage partition?
📖 Explanation: The volume control block, often called a superblock in many file systems, records essential details about the partition, including total blocks, block size, and counts of free blocks and free file control blocks. This information enables the OS to allocate space and manage files efficiently. The other options describe unrelated system functions that are not managed by the VCB.
Q5. How does the directory structure differ between UFS and NTFS?
📖 Explanation: UFS keeps a directory that maps each file name to an inode number, while NTFS stores all file metadata—including names, attributes, and pointers—in rows of the Master File Table. This fundamental difference influences how each system resolves file lookups. The other statements either reverse the roles or claim no difference, which is inaccurate.
Q6. Why is it important for the boot control block to reside at a fixed position on a volume?
📖 Explanation: The boot control block’s fixed location (typically the first block) lets firmware and the operating system quickly retrieve boot code without searching the entire disk, ensuring a reliable start-up sequence. Speeding up general file reads, reducing power, or permitting dynamic resizing are unrelated concerns; the primary benefit is deterministic access to boot information.
Q7. What is the term used for the boot control block in UFS?
📖 Explanation: In UFS, the initial block that may contain boot code is specifically called the boot block. The superblock holds volume metadata, an inode represents a file’s metadata, and an MFT entry is an NTFS concept. Therefore, only the boot block correctly names the UFS structure that can store boot information.
Q8. In NTFS, where are the file metadata (such as attributes and location pointers) stored?
📖 Explanation: NTFS keeps all file metadata inside the Master File Table (MFT), where each file occupies a distinct row containing its attributes, security information, and data pointers. The boot sector only holds boot code, the directory tree organizes names, and the swap file is used for paging, none of which store comprehensive file metadata.
Q9. A system cannot mount a volume because the superblock appears corrupted. Which component should be examined first to diagnose the problem?
📖 Explanation: Since the error directly mentions the superblock, the logical first step is to inspect the volume control block that contains this critical metadata. Corruption here can prevent mounting. The boot block, directory structure, and per‑file FCB are unrelated to the mounting process and would not explain a superblock failure.
Q10. A file of size 10,240 bytes needs to be stored on a disk with a block size of 4,096 bytes. How many blocks are required to hold the file?
📖 Explanation: Divide the file size by the block size: . Since a block cannot be partially allocated, the file must occupy three whole blocks, rounding up to the next integer. Option C correctly reflects this. Options A and B underestimate the needed space, while D overestimates it.
Q11. What role does the free‑block pointer play in volume management?
📖 Explanation: The free‑block pointer maintains a reference to a list or bitmap of blocks that are currently unallocated, allowing the file system to quickly find space for new data. It does not track used blocks, store permissions, or handle networking, making the other options incorrect.
Q12. How does the handling of the free‑FCB count differ between UFS and NTFS?
📖 Explanation: UFS records the number of free file control blocks in its superblock, while NTFS keeps this information inside the Master File Table as part of its metadata structures. The other statements misrepresent where each system stores the count or claim mechanisms that are not used.
Q13. When mounting several partitions, which component ensures that each file receives a unique identifier across the system?
📖 Explanation: Each file’s unique identifier is stored in its per‑file control block (FCB) in UFS or as a row in the MFT for NTFS. This identifier distinguishes files even if they have identical names in different directories. The boot block, free‑block pointer, and directory name serve other purposes and do not guarantee uniqueness.
Q14. A user asks where the Master File Table (MFT) is located on an NTFS volume. Which statement is correct?
📖 Explanation: In NTFS, the MFT typically begins right after the boot sector, making it the second major structure on the volume. This placement allows the system to locate file metadata early during mounting. It is not placed at the end, within the root directory, or arbitrarily scattered, so those options are incorrect.
Q15. How does separating the boot control block from the volume control block affect system recovery after a crash?
📖 Explanation: Keeping the boot control block independent means the system can still read essential boot code even if the volume control block (superblock) becomes corrupted. This enables the OS to start a recovery process or boot from alternate media. The other options either exaggerate the impact or describe nonexistent behavior such as merging blocks.