Search code examples
diskdiskspace

Calculating Hard Disk Capacity


Consider a disk with the following characteristics:
Number of surface 16
Number of sectors / cylinder 4096
Number of tracks per surface 2048
Number of bytes per sector 512

1) How many patters does the disk have ?
I got: number of surfaces / 2 = 8

2)How many sectors per tack ?
I got: Number tracks per cylinder = tracks per surface * surfaces
= 2048 * 16 = 32, 768
Number of sectors per track = number of tracks per cylinder / number of sectors per cylinder

        = 32, 768 / 4096 
        = 8  

3) What is the total size of this disk
I got : Total size = cylinders * surfaces * sectors per track * 512 bytes

    = 32,768 * 16 * 8 * 512  
    = 2, 147, 483, 648 bytes  
    = 2, 097, 152 Mb  
    = 2, 048 Gb  

The thing is, I dont know if this is right solution


Solution

  • You need to multiplier the number of cylinders, heads and sectors, so you'll get the number of blocks, multiplier it for 512 and you got the answer, I think that is it...