-
Notifications
You must be signed in to change notification settings - Fork 51
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
Force track/sector/byte geometry and fill missing/bad blocks with provided value #93
Comments
I'd be happy to contribute a fix for this, but I'd like some guidance on whether this is desired, and what shape the CLI should take to support this option - as both the C/H/S format and fill value would need to be specified. The former may be best as an extension of the already-provided format functionality, but I'm not sure. |
Yes there are two options. One is to allow specification of C/H/S/R/N etc on command line (or probably more likely within the |
A disadvantage to only using That said I see how big In C/H/S/R/N what are R and N? |
The specific handler such as The original purpose of the analyser was specifically for copy protections. Hence lots of single-purpose analysers. The IBM stuff got added later and the more flexible parameterisation that would make sense for IBM was missing and never got added. CHRN is the 4-tuple in every IBM sector header, Cyl, Head, Sector ID (called R for some reason), Sector Size (N = log_2(Size/128)). S is another name for R or N, I suppose that's why the proper docs don't use S! |
Sometimes, a raw flux dump will have bad or missing sectors. This leads to output from
disk-analyse
that will have missing blocks, which can lead to an unusable, truncated image.Example of a standard IBM 3740 8" disk (77 tracks of 26 128-byte sectors) with this issue:
In this case, the OS knew there are 4 bad blocks and mapped around them, but the truncated image produced by disk-analyse cannot be used by the system (or its emulation).
It would be nice in these cases to replace the bad or missing blocks with a static byte - for instance,
e5
or00
. Otherwise, hex editing of the file is required to produce a usable sector dump.The text was updated successfully, but these errors were encountered: