I had a look at the int25, int26 handler [1]. The handler does not check if sector zero has to be read / written. But I think it should, and bypass the check for FAT32 etc, as access to sector zero probably means reading / writing a new BPB.
As a test I altered the handler to call media_check() if sector to be read / written is NOT sector zero, and bypass the FAT32 check for sector zero. Has fixed the problem for me. I am not sure if it is a good idea to call the media_check() for all INT25,26 calls, as this should result in an additional driver call for every INT25,26. [1]: https://github.com/FDOS/kernel/blob/654e7b7a6c244c81ff8ef1d39a5fb07608e3d07a/kernel/inthndlr.c#L1809 Bernd _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel