disk-utilities icon indicating copy to clipboard operation
disk-utilities copied to clipboard

Suggestion: Add double step flag - example patch provided

Open magore opened this issue 3 years ago • 2 comments

I typically capture all of my disks on an 80 track drive even if the original dists may only have been 40 track. So it would be awesome to have a double step option on the disk-analyse command

Attached is a simple patch that adds this option. I have used this for creating .img files successfully

disk-analyse.patch.txt

magore avatar Jul 11 '21 22:07 magore

Very nice - this is pretty much exactly what I need, for the same reasons. Could this be made to provide a means of skipping either the odd-numbered (skip 1,3,5,...) or even-numbered (skip 0,2,4...) tracks?

In my experience most drives you want to skip the odd tracks, but I can see situations (disk read/written with a track offset) where skip-even might be useful.

philpem avatar Jul 25 '21 02:07 philpem

I have committed an alternative patch which implements the double-step action within the libdisk stream objects. This makes more sense: the logical track numbering is 0-39 (say) in your IMG file, and you just want the multiply-by-2 when indexing into the raw input stream. See what you think.

Regarding skipping even tracks: Easy to implement if it does turn out to be needed.

keirf avatar Jul 25 '21 13:07 keirf