Question
A FAT (file allocation table) based file system is being used and the total overhead of each entry in the FAT is 4 bytes in size. Given a bytes disk on which the file system is stored and data block size is bytes, the maximum size of a file that can be stored on this disk in units of bytes is _____.
Official answer and solution
- Accepted answers
- 99.55 to 99.65
- From
- Official GATE 2014 answer key
Solution
Calculate total disk blocks, the storage overhead needed for FAT entries, and the remaining usable data blocks.
-
Given Parameters:
- Disk size bytes.
- Block size bytes.
- Overhead per FAT entry = bytes.
-
Total Number of Disk Blocks:
-
FAT Size (Overhead):
In a File Allocation Table, each disk block corresponds to one FAT entry. -
Blocks Occupied by FAT:
-
Remaining Data Blocks for File Storage:
-
Maximum File Size:
In units of bytes, the value is , which lies in the official range .
99.6
Forgetting that the FAT table itself must reside on the disk and consumes data blocks, reducing available space for file data.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 2
- Question
- 30 of 65, printed as CS Q.20
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.