recategorized by
5,613 views
4 votes
4 votes
A bit-map can be used to keep track of which blocks are free in a file-system’s partition on disk.
Assuming, 1 KB block size and a disk size of 40 GB, what is the size of the bit map?
recategorized by

3 Answers

4 votes
4 votes
Given, Disk Size=40GB.

            Block Size=1KB.

            Since we required one bit per block.

             Number of blocks=40GB/1KB=40*(2^20)

             Therefore we require 40*(2^20) bits=5MB.
0 votes
0 votes
Number of blocks =disk size/ block size

             40GB/1KB

         40*2^30/1*2^10

         40*2^20

          40MB
0 votes
0 votes
I am getting  5MB

total number of bolck in File is  =  40GB/1KB

                                                        =  40 M block

and each Block Need  1 bit in Bit map then total 40 M bit are needed to represent Bit Map in memory

memory for Bit map in Byte  = 40M bit / 8 bit

                                                   =  5MB

Related questions

2 votes
2 votes
4 answers
1
iarnav asked Apr 15, 2017
4,030 views
A $1$TB Disk with $4$-KB blocks require $32$MB to store its bit map?Kindly explain how.
0 votes
0 votes
3 answers
2
anonymous asked Jun 17, 2018
405 views
For disk size of $768 \hspace{0.1cm}MB$ and block size of $384 \hspace{0.1cm} bytes$ what would be the bitmap size in bytes(as a power of $2$)iI represented $768 \hspace{...
0 votes
0 votes
2 answers
3
2 votes
2 votes
2 answers
4
pC asked Dec 12, 2015
5,197 views
For a Hard disk of Capacity 20 MB . Disk block address of 16 bits and disk block size of 1 KB . The number of disk blocks required to store all the Free Blocks using Bitm...