3
If you know the disk capacity, bytes per track, and number of surfaces, then how do you calculate the number of tracks?
3
If you know the disk capacity, bytes per track, and number of surfaces, then how do you calculate the number of tracks?
10
Number of tracks is totally dependant on how the manufacturer laid out the disk internally, which you will not know. All modern disks use LBA (logical block addressing), in which the OS addresses the drive on a sector-by-sector basis, not knowing or caring how or where the sectors are physically located on the platters (nor how many platters there actually are).
Not only that, but the number of sectors per track depends on how far out from the spindle motor you are at the time; it's not a spiral like on a CD. The further from the spindle you are, the more sectors per track (and thus the higher the transfer rate).
Since you do not know the number of sectors per track (which, again, varies depending where on disk you are), you cannot determine how many tracks exist, given capacity, number of sectors, and number of surfaces.
In other words, you don't. Period.
UPDATE:
If your teacher wants a mathematically correct answer, it would be (CAPACITY_IN_BYTES / BYTES_PER_TRACK) to get the number of tracks on disk, and if you want tracks per surface, divide the number of tracks on disk by the number of surfaces.
However, note that this is totally inapplicable to modern drives. The real answer is that it cannot be calculated since you do not know how many sectors per track there are (and there are a variable number in different zones of the disk) -- hence, there are too many unknowns to be able to solve the formula.
1The study guide is outdated. Way in the past, when cave man bought harddisks from Dinosaurs there were usually a fixed number of sectors per track. This is simply no longer true. Thus you can not calculate it with your information. – Hennes – 2014-11-15T23:31:41.933
Heh, a question so dead it needed buried about 10 years ago. Doesn't even begin to have any relevance in today's ZBR, LBA and SSD world. – Fiasco Labs – 2014-11-16T01:10:00.500
Your answer is that it can't be calculated, so it doesn't answer my question. There should be a way to calculate it, since this is a question from my midterm study guide. – Phenom – 2010-03-13T08:00:39.030
1@Phenom: Updated above. Upvote and accept. :) – Alex – 2010-03-13T08:26:35.177
The equation you gave doesn't have the number of surfaces in it. – Phenom – 2010-03-13T13:15:51.150
@Phenom: You should add more information to your questions (in stead of in these comments), if you don't want them to be closed. Please be more specific from the beginning. – fretje – 2010-03-16T10:01:12.617
Makework question that lost its relevance quite some time ago. – Fiasco Labs – 2014-11-16T01:11:09.647
See this set of 6 closely related questions: http://superuser.com/questions/119446/sectors-and-clusters http://superuser.com/questions/119051/transfer-time-for-a-file http://superuser.com/questions/107723/hard-drive-sectors-vs-tracks http://superuser.com/questions/119048/number-of-tracks http://superuser.com/questions/119026/rotational-latency http://superuser.com/questions/119030/bytes-per-track
– Jonathan Leffler – 2010-03-16T11:07:22.797And http://superuser.com/questions/120461/transfer-time-of-a-cylinder
– Jonathan Leffler – 2010-03-16T11:13:36.417