It is currently Sat Oct 25, 2014 11:42 pm

All times are UTC - 8 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Mon Jun 30, 2008 2:02 pm 
Offline

Joined: Fri Jun 13, 2008 11:06 am
Posts: 19
In the fd011520.img file, sectors per cluster is 8, not 240...so how do you get 240?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2008 3:12 pm 
Offline

Joined: Tue Jun 17, 2008 3:14 am
Posts: 276
hoohooslax wrote:
In the fd011520.img file, sectors per cluster is 8, not 240...so how do you get 240?


christ, how did i do this math (i'm an engineer too). :p

Code:
capacity(bytes) = cylinders * number of heads per cylinder * number of sectors per head * 512(bytes per sector)


ok, "c" should NOT be 240. if we do the math based on the above equation.

Code:
capacity(KB) = 11,520 KB
capacity(in bytes) = 11,520*1024 = 11,796,480


therefore, to find the number of cylinders:

Code:
c = capacity(bytes) / number of heads / number of sectors / bytes per sector
  = 11,796,480 / 8 / 36 / 512 (bytes per sector)
  = 80


c=80 h=8 s=36

heh. it should be 80 cylinders for the 11,520Kb image, NOT 240 (???). if we apply the same math to 5,760Kb, the number of cylinders work out at 80 again.

Code:
80(c) * 4(h) * 36(s) * 512(bytes per sector) = 5,898,240 bytes (or 5760Kb)


c=80 h=4 s=36

:)


and, for the 50mb image (or 56,195Kb in this case), based on the stats provided by winimage, we should have

Code:
57,543,680 (capacity in bytes) / 63 (sectors per track) / 255 (heads) / 512 (bytes per sector) = approx 7.


c=7 h=255 s=63


so, put simply - ignore those figures i quoted earlier and use the above equation to help you determine how many cylinders you need (since winimage doesn't appear to supply you with one).

sorry for the blunder.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group