How to calculate bps, spc, hpc etc. from .img file?

Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it
Forum rules
Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it
Post Reply
Dr Eggman
User avatar
FTP Access
Posts: 321
Joined: Sat Jun 30, 2007 8:25 pm
Location: Eggmanland/Toronto
Contact:

How to calculate bps, spc, hpc etc. from .img file?

Post by Dr Eggman »

Hey all,


Recently /me been playing around with DosBox and i am doing some experiments with imgmount, and it wants:

bytes_per_sector, sectors_per_cylinder, heads_per_cylinder and cylinder_count.

I dl'ed an image of the 'net and now i need to calculate these. I'm using WinXP atm, and would prefer a Free program, or cmd command lol.

(i know linux has something like this built in, linux has EVERYTHING built in)
I am The Eggman! -The Doctor
Like Pictures? Bored? Check out some Photography and "Like" it! Check it out here!

RentedMule
Donator
Posts: 937
Joined: Tue Oct 17, 2006 8:26 pm

Post by RentedMule »

See http://staff.washington.edu/dittrich/misc/fatgen103.pdf

These are values in the boot header. You want BPB_BytsPerSec and BPB_SecPerClus, etc.

Post Reply