🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #3486

floppy disk sizes, how to calculate them

#3486
From: Richard E. Covert
Date: Tue, 29 Aug 1989 15:38
21 lines
1173 bytes
...

I am writing a backup program and I need to ask the user for the
size of his floppy. There are many ways of doing this. One method is for
the user to enter the decimal number of bytes per floppy (from a table
shown on the screen). another way is to ask the user to enter the number of
tracks per disk, number of sectors per track, and number of sides per disk.
I perfer the latter.

	But, how do I calculate the amount of usable space based on the
number of sectors, tracks, and sides?? Some of the disk is used by the
directory, and I heard that there are some unused sectors at the end.
So, what is a good formula for determining the size of a floppy??

	I am writing this program in Mark Williams C, so I would perfer
C code, but a simple formula is enough.

tia

richard (gtephx!covertr) covert
Technical Details
Message-ID: <4552164d.14a1f@force.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!asuvax!hrc!force!covertr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!asuvax!hrc!force!covertr
From: covertr@force.UUCP (Richard E. Covert)
Newsgroups: comp.sys.atari.st
Subject: floppy disk sizes, how to calculate them
Keywords: atari st, c
Message-ID: <4552164d.14a1f@force.UUCP>
Date: 29 Aug 89 15:38:41 GMT
Organization: gte
Lines: 21