Discussion
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 100 × \(10^{6}\) bytes disk on which the file system is stored and data block size is \(10^{3}\) bytes, the maximum size of a file that can be stored on this disk in units of \(10^{6}\) bytes is........... .
Answer: A
The maximum file size is about 99.6, so the answer is 99.55 to 99.65.
The disk holds \(100 \times 10^{6} / 10^{3} = 10^{5}\) blocks, and the FAT needs one 4-byte entry per block:
\[ \begin{aligned} \text{FAT size} &= 10^{5} \times 4 = 0.4 \times 10^{6} \text{ B} \\ \text{max file} &= 100 \times 10^{6} - 0.4 \times 10^{6} \\ &= 99.6 \times 10^{6} \text{ B} \end{aligned} \]
Everything not taken by the FAT is available to a single file, so the answer is 99.6 in units of \(10^{6}\) bytes. A value above 100 is impossible on a disk of that size, and the lower ranges overstate the FAT's overhead.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development