-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare FAT, Drive_IO Error #5
Comments
I will have to look if format needs to do something or kernel does. |
Maybe related to FDOS/kernel#144 and FDOS/kernel@c08313a. |
Note: we only do this for floppy disks to try and avoid sharing issue that caused this to be commented out in the first place. The condition may need further refining to avoid sharing violation, but not sure what conditions actually caused the sharing violation to occur. Or we may need to do a different call to force kernel to reload its idea of what the drive geometry is.
can you try test release (see releases https://github.com/FDOS/format/releases/download/v0.92/format-092a-test.zip ). I re-enabled some commented out code, but gated it to only do so on floppy disks. I may need to further limit this to when the format changes and/or rework how the kernel is notified to refresh its idea of the disk's geometry. This fixes an error I was able to produce by using a zeroed 720KB image, but it wasn't the same error, though I believe the cause & fix are the same. |
Sorry that I did not chance to test this until now...
I also tried a couple variants like with /Q and /S. Plus known bad floppies. Each from a cold boot. All seemed as it should. I think the changes you made fixed the problem. It no longer generates the [error 129] when formatting a floppy on cold boot when the diskette has yet to be read by DOS. :-) |
new version with fix will be posted once translation work reasonably ready |
This test consisted of 6 diskettes.
(Complete log below, attached version is color html version.)
On initial system boot and simply trying to format the 6 diskettes, every disk generates a Disk_IO error after formatting when attempting to prepare the FAT. FORMAT then terminates with error 129.
After the first pass through those floppies. I performed a simple
DIR A:
. And performed a second pass on the same floppies in the same order. The Disk_IO error no longer occurs after that point.So, it appears that FORMAT is relying on some DOS/Kernel generated data that does not get initialized until after the drive is accessed by the kernel during the directory listing.
fmt.htm.zip
The text was updated successfully, but these errors were encountered: