File System Organization questions

Q59

GATE CS 2026 CS-1File SystemsNAT2 marks
Consider a hard disk with a rotational speed of 15000 rpm. The time to move the read/write head from a track to its adjacent track is 1 millisecond. Initially, the head is on track 0. The number of sectors per track is 400. The sector size is 1024 bytes. It is necessary to transfer data from 10 randomly located sectors in each of the following tracks in the order: 5, 12 and 7.

The total time for the data transfer (in milliseconds) from the hard disk is _________. (rounded off to one decimal place)
Show answer without attempting

Answer: 77.3

Q53

GATE CS 2026 CS-2File SystemsNAT2 marks
To keep track of free blocks in a file system, one of the two approaches is generally used – using bitmaps (bit vectors) or using linked lists. Consider that the linked list approach is used to keep track of free blocks in a file system. Assume that the disk size is 16 GB, block size is 2 KB, and block numbers used are 32-bit long. A single pointer of size 4 bytes is used in each block of the list to point to the next block of the list. The number of blocks required to hold the free disk block numbers is ____________. (answer in integer)

Note: 1K=2101\text{K}=2^{10} and 1G=2301\text{G}=2^{30}
Show answer without attempting

Answer: 16417

Q63

GATE CS 2022 CSFile SystemsNAT2 marks
Consider two files systems AA and BB, that use contiguous allocation and linked allocation, respectively. A file of size 100 blocks is already stored in AA and also in BB. Now, consider inserting a new block in the middle of the file (between 50th50^{\text{th}} and 51st51^{\text{st}} block), whose data is already available in the memory. Assume that there are enough free blocks at the end of the file and that the file control blocks are already in memory. Let the number of disk accesses required to insert a block in the middle of the file in AA and BB are nAn_A and nBn_B, respectively, then the value of nA+nBn_A + n_B is_________.
Show answer without attempting

Answer: 153

Q15

GATE CS 2021 CS-1File SystemsMSQ1 mark
Consider a linear list based directory implementation in a file system. Each directory is a list of nodes, where each node contains the file name along with the file metadata, such as the list of pointers to the data blocks. Consider a given directory foo.
Which of the following operations will necessarily require a full scan of foo for successful completion?
More than one option can be correct.
Show answer without attempting

Answer: A, C

Q42

GATE CS 2019 CSFile SystemsNAT2 marks
The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers. The disk block size is 4 kB4\text{ kB}, and the disk block address is 32-bits long. The maximum possible file size is (rounded off to 1 decimal place) __________ GB.
Show answer without attempting

Answer: 3.7 to 3.8 OR 4.0 to 4.1

Q8

GATE CS 2017 CS-2File SystemsMCQ1 mark−1/3 if wrong
In a file allocation system, which of the following allocation scheme(s) can be used if no external fragmentation is allowed?

I. Contiguous
II. Linked
III. Indexed
Show answer without attempting

Answer: D

Q50

GATE CS 2016 CS-2File SystemsNAT2 marks
A file system uses an in-memory cache to cache disk blocks. The miss rate of the cache is shown in the figure. The latency to read a block from the cache is 1 ms and to read a block from the disk is 10 ms. Assume that the cost of checking whether a block exists in the cache is negligible. Available cache sizes are in multiples of 10 MB.

The smallest cache size required to ensure an average read latency of less than 6 ms is _________ MB.
Question figure
Show answer without attempting

Answer: 30.0

Q54

GATE CS 2015 CS-1File SystemsNAT2 marks
Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000 rotations per minute (RPM). It has 600 sectors per track and each sector can store 512 bytes of data. Consider a file stored in the disk. The file contains 2000 sectors. Assume that every sector access necessitates a seek, and the average rotational latency for accessing each sector is half of the time for one complete rotation. The total time (in milliseconds) needed to read the entire file is ________.
Show answer without attempting

Answer: 14020

Q42

GATE CS 2015 CS-2File SystemsNAT2 marks
Consider a typical disk that rotates at 15000 rotations per minute (RPM) and has a transfer rate of 50×10650 \times 10^6 bytes/sec. If the average seek time of the disk is twice the average rotational delay and the controller's transfer time is 10 times the disk transfer time, the average time (in milliseconds) to read or write a 512-byte sector of the disk is _____________.
Show answer without attempting

Answer: 6.1 to 6.2

Q20

GATE CS 2014 CS-2File SystemsNAT1 mark
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×106100 \times 10^6 bytes disk on which the file system is stored and data block size is 10310^3 bytes, the maximum size of a file that can be stored on this disk in units of 10610^6 bytes is ____________.
Show answer without attempting

Answer: 99.55 to 99.65

Q29

GATE CS 2013 CSFile SystemsMCQ2 marks−2/3 if wrong
Consider a hard disk with 16 recording surfaces (0-15) having 16384 cylinders (0-16383) and each cylinder contains 64 sectors (0-63). Data storage capacity in each sector is 512 bytes. Data are organized cylinder-wise and the addressing format is <cylinder no., surface no., sector no.>. A file of size 42797 KB is stored in the disk and the starting disk location of the file is <1200, 9, 40>. What is the cylinder number of the last sector of the file, if it is stored in a contiguous manner?
Show answer without attempting

Answer: D

Q41

GATE CS 2012 CSFile SystemsMCQ2 marks−2/3 if wrong
A file system with 300 GByte disk uses a file descriptor with 8 direct block addresses, 1 indirect block address and 1 doubly indirect block address. The size of each disk block is 128 Bytes and the size of each disk block address is 8 Bytes. The maximum possible file size in this file system is
Show answer without attempting

Answer: B

0/120 correct0 marks