Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Discussions > Repair/Retrace Floppy Image
2022-09-10 05:36
ws

Registered: Apr 2012
Posts: 228
Repair/Retrace Floppy Image

I read it somewhere here out of the corner of my eye that someone recently released a tool that tries to follow block chains on a floppy image that is broken and tries to piece together what is possible to reconstruct.

I would really love to try that tool because i have an image of a floppy that contains files that would be great to look at, even if parts of it were broken.

Currently the files cannot even be loaded (actual read error) and for very very difficult reasons i cannot try and read the image again, though i believe i got the best dump of it.

Any ideas?
 
... 3 posts hidden. Click here to view all posts....
 
2022-09-10 18:36
Krill

Registered: Apr 2002
Posts: 2850
Quoting ws
@Acidchild: is that seriously an option?
Is. I'd suggest distilled water, though.

Quoting ws
Or is Zoomfloppy sufficient, regarding disk-drive-hardware-access?
Making flux-level images (16 MHz sample rate) with Zoomfloppy or similar gives you the best chances to repair broken sections, actually. :)
I'd certainly trust it more than anything running natively, as it doesn't have 1 MHz 6502 restrictions and is tried and tested for copy protections.

Quoting ws
Then i have another question: when the kernel floppy routines decide where to put the next block - is that always pretty random depending on how the prior contents of the disk look? Or is it, that if one analyzed the block-chains of many disks, would there be a certain pattern of block distribution from which one could try and guess where a next block would be, if the current block has an error, but the previous one(s) was/were okay?
When saving files sequentially, the resulting layout is rather predictable.

But once fragmentation becomes an issue (deleting files and saving differently-sized files over them), the layout becomes rather random. Many work disks from native setups exhibit fragmentation of varying severeness. :)
2022-09-10 18:38
hedning

Registered: Mar 2009
Posts: 4602
If you get multiple reads of the (unprotected) disk, you can always use PyD64Fix V1.2 to combine the different reads: This "program [...] tries to combine several d64 images of the same physical floppy, into one image with less or without errors. Error detection is based on errormap part of d64."
2022-09-10 18:40
Krill

Registered: Apr 2002
Posts: 2850
Quoting ws
one could try and guess where a next block would be, if the current block has an error, but the previous one(s) was/were okay?
Also note that a broken block is basically never broken completely (all 256 payload bytes of it), but only in parts so the checksum won't match. The T/S link may well be intact on a broken block.
2022-09-10 19:04
Acidchild

Registered: Jan 2002
Posts: 467
I've transfered thousands of disks already and many of them were really dirty,so cutting off the disc and cleaning the magnetic disc with water is always an option. Yes,plain water is okay.done that so often already.
2022-09-10 19:40
hedning

Registered: Mar 2009
Posts: 4602
Quote: I've transfered thousands of disks already and many of them were really dirty,so cutting off the disc and cleaning the magnetic disc with water is always an option. Yes,plain water is okay.done that so often already.

+1. Luke warm water and some washing-up liquid... wash off and let the disk dry on a clean tissue.. Put it in a clean disk sleeve and off you go. Repeat if necessary. My wife always love when I fill the kitchen with old disks. Not. Totally worth it? Yes.
2022-09-11 00:16
ws

Registered: Apr 2012
Posts: 228
Awesome, guys! Thanks! Making more images on different drives right now. Later i will consider the disk cleaning. The BAM looks suspicious though, as if the errors followed a physical line on the disk surface? -pic-

d64scan gives me tons of garbage chunks currently, but very nice tool anyways!

@krill: just a guess - making a flux level image ... is that even possible with XUM1541 via USB? Even thinking of putting parallel cables into my drives and having to solder some whack connector makes me break in sweat.

Just a short timesaver for anyone who wants to try PyD64fix and has not yet any or python > v3.1 installed, here are two links that might make your life alot easier (if you are on Win10):
https://www.python.org/downloads/release/python-2718/
(later python3 versions have some changes in syntax, so loading disks is impossible)
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4
(first pip install wheel, then install the pyqt4..... .whl with pip --> then, the gui mode works)


PS: All this is about a disk/image i got from a certain person a few years ago and the large-stack-of-floppies digitizing session ended with very sadface, because a program of personal value they programmed as a very young teenager is on the disk. The disk holds the only copy, ofcourse.
2022-09-11 04:15
Krill

Registered: Apr 2002
Posts: 2850
Quoting ws
AThe BAM looks suspicious though, as if the errors followed a physical line on the disk surface? -pic-
Indeed, looks like there should be a scratch right across the disk somewhere.
Or maybe the disk was demagnetised around the head access hole at some time.

Quoting ws
@krill: just a guess - making a flux level image ... is that even possible with XUM1541 via USB? Even thinking of putting parallel cables into my drives and having to solder some whack connector makes me break in sweat.
Sorry, mixed it up with KryoFlux/Greaseweazle. So with ZoomFloppy, you should be able to create .g64 images with a 1570/71 or a parallel cable on a 1541.
.d64 is probably too high-level to properly repair.
2022-09-11 07:25
ws

Registered: Apr 2012
Posts: 228
After 8 reads with 3 drives, of which one is luckily a surprisingly sturdy 1570 and a 1541 that seems to be able to read a slice of sausage, errors are down to 2%! I had to use a combination of PyD64Fix and manually exchanging semi-defective blocks in dirmaster BAM edit, though. Dirmaster is really a gift from heaven.
I'd mark this solved now. If there is any interest, i can elaborate later.
2022-09-12 06:00
zzarko

Registered: Feb 2003
Posts: 66
@ws: I had no idea PyD64Fix did not work with newer setups (I haven't made any backups since 2021, that is the last time I had some "new" disks and last time I updated the code, using Ubuntu 18.04). Anyhow, if you still need it, I just made changes to make it PySide2+Python3 compliant (tested with Python 3.10), you can try this version from here:

https://8bitchip.info/oub/Commodore/pyd64fix.py
2022-09-12 09:44
ws

Registered: Apr 2012
Posts: 228
hi zzarko, thank you!!!
Your update works fine with even python 3.7 and PyQt was replaced by Pyside?
Thanks alot!

I even sort of have a feature request, make the "different block" blue blocks clickable so one can select which parts of the block(s) to actually use, but i can also do it manually in DirMaster: I would make the best possible image-version with pyd64fix, but note that there are other blocks on the other images, that could be salvaged, then i open all the needed disk images simultanously in DirMaster, and via BAM edit i view the Block contents and "guess" what content could fit the best and copy that from the Hex view.
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Bansai/BSILabs
cobbpg
Guests online: 116
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.268 sec.