I have track this to these lines in floppy.c

```

/* IF the user gave ANY size indication, we already know which */
  /* media_type the user wants, so we check drive capabilities now! */


  if (TRUE) /* just limiting variable scope */
    {
    int drive_number  = param.drive_number;
    int preferredsize = 0;

      regs.h.ah = 0x08;
      regs.h.dl = drive_number;
      sregs.es = 0;
      regs.x.di = 0;
      regs.x.cflag = 0;
      RestoreDDPT();
      int86x(0x13, &regs, &regs, &sregs); /* FUNC 8 - GET DRIVE TYPE */
      if (regs.x.cflag && (regs.h.ah != 0))
        Exit(4,53);    /* should never happen... check added 0.91s */                *******

      drive_type = regs.h.bl;
      /* we ignore the returned DDPT pointer ES:DI for now */
      preferredsize = 0; /* drive not installed */

```

It looks like format cannot work out the drive type on the Amstrad PC-1512. Curious.

On 14/8/24 13:33, Trevor Campbell wrote:
I am trying to format a bunch of old disks but FreeDOS format command always fails with Error 53.

The disks are mostly OK and do format if I boot from diskette with MS-DOS 3.1 and use that format or under FreeDOS if I format with XTree Gold.

Trevor



_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to