Computer Science, asked by lilianobiji, 5 months ago

How to find the sector amount in Python
disk_size = 16*1024*1024*1024 sector_size = 512 sector_amount = print(sector_amount)

Answers

Answered by shivaramcvm
0

-We first convert both sizes to a uniform measure(both to be in bytes or gigabytes).

-We convert the drive size into Bytes:

#We then divide the Drive size by the sector size to get the number of sectors.

-Let X be the number of sectors:

Hence, the disk has 33,554,432 sectors.

Similar questions