Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  In a particular Unix OS, each data block is o... Start Learning for Free
In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system? 
  • a)
    512 MB
  • b)
    2GB
  • c)
    8GB
  • d)
    16GB
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
In a particular Unix OS, each data block is of size 1024 bytes, each n...
The diagram is taken from Operating System Concept book.
Maximum size of the File System = Summation of size of all the data blocks whose addresses belongs to the file.
Given: Size of 1 data block = 1024 Bytes No. of addresses which 1 data block can contain = 128
 
Now, Maximum File Size can be calculated as:
10 direct addresses of data blocks = 10*1024
1 single indirect data block = 128*1024
1 doubly indirect data block = 128*128*1024
1 triple indirect data block = 128*128*128*1024
Hence,
Max File Size = 10*1024 + 128*1024 + 128*128*1024 + 128*128*128*1024 Bytes
= 2113674*1024 Bytes
= 2.0157 GB ~ 2GB
View all questions of this test
Most Upvoted Answer
In a particular Unix OS, each data block is of size 1024 bytes, each n...
Maximum Size of a File in the File System

In order to determine the maximum size of a file in the file system, we need to consider the different types of addressing used and the number of blocks each type can address.

Data Block Size
Each data block in the Unix OS is of size 1024 bytes.

Direct Data Blocks
Each node has 10 direct data block addresses. This means that a file can directly address and access 10 data blocks.

Single Indirect Block
The single indirect block is used to address additional data blocks. Each block can contain addresses for 128 blocks. Therefore, the single indirect block can address 128 additional data blocks.

Double Indirect Block
The double indirect block is used to address even more data blocks. Each block can contain addresses for 128 blocks, including the addresses of the single indirect blocks. Therefore, the double indirect block can address 128 * 128 = 16,384 additional data blocks.

Triple Indirect Block
The triple indirect block is used to address an even larger number of data blocks. Each block can contain addresses for 128 blocks, including the addresses of the double indirect blocks. Therefore, the triple indirect block can address 128 * 128 * 128 = 2,097,152 additional data blocks.

Calculating the Maximum File Size
To calculate the maximum file size, we need to sum up the number of data blocks that can be addressed using the different addressing techniques.

- Direct data blocks: 10 blocks
- Single indirect block: 128 blocks
- Double indirect block: 16,384 blocks
- Triple indirect block: 2,097,152 blocks

Total number of data blocks = 10 + 128 + 16,384 + 2,097,152 = 2,113,674

Maximum file size = Total number of data blocks * Data block size
= 2,113,674 * 1024 bytes
= 2,164,261,376 bytes

Converting bytes to gigabytes (GB):
2,164,261,376 bytes / (1024 * 1024 * 1024) = 2 GB

Therefore, the maximum size of a file in the file system is approximately 2GB. Hence, option B is the correct answer.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer?
Question Description
In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer?.
Solutions for In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer?, a detailed solution for In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer? has been provided alongside types of In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?a)512 MBb)2GBc)8GBd)16GBCorrect answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev