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
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
Math,
2 months ago
Science,
2 months ago
Computer Science,
5 months ago
English,
5 months ago
Math,
9 months ago