Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
243 views
in Computer by (113k points)
closed by
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
1. 3 KBytes
2. 35 KBytes
3. 280 KBytes
4. dependent on the size of the disk

1 Answer

0 votes
by (114k points)
selected by
 
Best answer
Correct Answer - Option 2 : 35 KBytes

The correct answer is option 2

DATA:

In the index node of a Unix- style file system,

Direct Block pointer = 8

Single Indirect Block pointer = 1

Double Indirect Block pointer = 1

Disk block address = disk block entries size = 8 B

Disk Block size = 128 B

CALCULATION:

Number of entries in a block = \(\frac{disk\; block\; size}{disk\; block\; address\; size} = \frac{128\; B}{8\;B} \) = 24

File size = (8 direct + 1 singel indirect + 1 double indirect) × Block size

File size = (8 × 1 + 1 × 24 + 1 × 24 × 24 ) × 128 B

File size = (210 B + 211 B + 215 B )

File size = (1 + 2 + 32)KB

The maximum size of file is 35 KB or 35 KBytes

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...