does anyone know how to format a floppy disk in C? i am using a linux machine where the floppy is accessed as "/dev/fd0".
each block on the floppy is 512 bytes, and with 80 cyclinders, 2 heads, and 18 sectors per track... so we have 2880 blocks. the first block is block 0, and the last is 2879.
does anyone know how many blocks will be needed to write a formatting utility which initializes the data in these blocks? need to remember that some blocks will be reserved for keeping track of free blocks.
thanks.