GATE - 2014 | OS | A FAT (file allocation table) based file system is being used and the total

GATE - 2014 | OS | A FAT (file allocation table) based file system is being used and the total
Posted on 11-02-2022

GATE - 2014 [Operating System]

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 100 × 106 bytes disk on which the file system is stored and data block size is 103 bytes, the maximum size of a file that can be stored on this disk in units of 106 bytes is ____________.

A

99.60

B

99.61

C

99.62

D

99.63

    

Solution:

Option (A) is Correct.

Number of entry in FAT
= Total disk size/ disk block size
= 100 × 106 / 103
= 100 × 103


∴ Total overhead = 100 × 103 × 4B
= 400 × 103 B
= 0.4 × 106 B


So, the maximum size of file that can be stored on disk is,


Total disk size - Total overhead
= 100 × 106 - 0.4 × 106
= 99.6 × 106 B

Thank You

Download App for Free PDF Download

GovtVacancy.Net Android App: Download

government vacancy govt job sarkari naukri android application google play store https://play.google.com/store/apps/details?id=xyz.appmaker.juptmh