All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Database Management Systems Paper 2 CS · November 2020

Suppose a Linux file system has a block size of 2K bytes, a disk address is 32 bits, and an i-node contains the disk addresses of the first 12 direct blocks of a file, one single-indirect block, and one double-indirect block. Approximately, what is the largest file that can be represented by an i-node?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. 513 Mbytes

Explanation

A disk address (pointer) is 32 bits = 4 bytes, so each 2 KB (2048-byte) block holds 2048/4 = 512 pointers. The 12 direct blocks contribute 12 × 2048 ≈ 24 KB. The single-indirect block contributes 512 × 2048 = 1,048,576 bytes = 1 MB. The double-indirect block contributes 512 × 512 × 2048 = 536,870,912 bytes = 512 MB. Summing 24 KB + 1 MB + 512 MB ≈ 513 MB, matching option (ii).

More Database Management Systems questions