-
Notifications
You must be signed in to change notification settings - Fork 199
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
Fix writing to non-existent tracks #309
Comments
This is using DSK (EDSK) images right? They are effectively pre-formatted and you cannot change their sector ids. Writes to non-matching sector ids (such as when trying to format to a different disk type) get dropped. I suppose theoretically FlashFloppy could get into re-creating EDSK images but it's a small-enough demand thing that I don't envisage it happening. |
Ok, so any idea how I can achieve it ? Maybe using another format than EDSK |
Use HFE if you want this flexibility. Or if you have an EDSK of the correct existing format, you can use / 'reformat' that and it will work. |
Ok I'll try with HFE, thanks! |
Hello, After discovering some errors on my files, at first I thought they were due to the old and rusty hardware : after few hours of gently waking and warming it it now seems to be completely fine. But I believe I found an issue with the latest 3.11a firmware : writing the "unformatted" 40 and 41th tracks to the 40 tracks HFE does erase track 39 ! Maybe FF does not like "overtracks" ? I tried with a 42 tracks HFE and after the copy, track 39 is OK. As a work-around solution, since it was quite common to have 42 tracks discs on CPC, I suggest to use 42 tracks HFE. I guess it also works to copy only 40 tracks if you use 40 tracks HFE. I believe FF should just drop the "overflowing" tracks instead of writing them to the last track of the HFE, or better if possible : expand the number of tracks in the HFE ? |
Extending an image during use is a bit tricky as that's a potentially relatively slow operation. Not mapping overtracks to the last available track does make sense though, especially for writes! Possibly writes to non-existent tracks should flag a warning/error on the display, for a second? |
Personaly I would say : |
All good points, except the last I think it is fine for the error to be non-persistent on the display:
There is no proper documentation on image formats at the moment and that's probably a good idea to be fixed in the wiki. |
…e-file track count. These tracks read as garbage, and ignore writes. This fixes a bug where writing beyond an image-file limit would trash the last cylinder's track data. This was particularly an issue for HFE image files. Refs #309
Ok the primary issue of this ticket (avoiding writing non-existent tracks to last available track) is fixed. It will be in next release v3.14a, which I hope to then make the next stable series starting with v3.15. |
Now released as v3.14a. Please reopen if this does not resolve the ticket issue. |
Hi,
When using a software such as Discology on Amstrad CPC 6128, copy from a physical disk to a virtual floppy only works if both are in "data" format. That's not possible to format the virtual disk as "system", or copy non standard sectors.
Thanks
The text was updated successfully, but these errors were encountered: