[comp.sys.ibm.pc] detecting/setting disk type in drive type

olsen@eecs.nwu.edu (Jeff S. Olsen) (12/06/89)

   I have written a program to read Microport Unix filesystems from
floppy (ls, cat, cp) but I am having problems with reading high density disks.
   It seems that if I place a high density disk in the high density
drive, it wants to read it as a double density disk.  I have tried using
the int 13h service 17h (set disk type for format) and have had limited
success.  If the disk drive is opened between each run, then setting the
format works properly; however, if it is not, then the second call fails.

   Is there a specific approach to "disk type in drive type" detection
that someone could share with me?   Any response in appreciated, however
direct e-mail is preferred.  I will post a summary if I get a working solution.

   The program is not for commercial purposes, if that makes any difference.

Thanks,
Jeff Olsen
olsen@eecs.nwu.edu