English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 12 January 2010, 00:50   #1
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
TSGui bad sector checking

Can anyone tell me for sure what triggers the TSGui error messages "Bad sector checksum" and "No sector header", please.

The reason I ask is that I have an AmigaDOS formatted floppy disk which, when inserted in floppy drive of an Amiga running Workbench 3.1, triggers a requester reporting that an error validating the disk has been caused by a bad header type in block 881.

Cancel this, and another requester warns of a checksum error on disk block 946.

Cancel this, and the disk icon apears on the desktop.

Double-clicking the disk icon produces a swatch of requesters warning of a further 47 disk blocks with checksum errors before a single zero byte file icon appears in the window, although the title bar reports 100% FULL, 512 B FREE.

Using the List command from the Shell reveals a single file with the same name of 2048 bytes length using 6 blocks.

There are many checksum errors reported by Workbench for this disk, which give rise to the conflicting information reported about the disk content, and yet, despite this, TSGui is able to produce an ADF copy of the disk without reporting a single error!

Does TSGui actually check that the data checksum is in agreement with that which appears in the header? Or is the "Bad sector checksum" message simply a consequence of an error reading the disk block data, and the "No sector header" message that of an error reading the corresponding header?

I have not tried mounting the resulting disk image in WinUAE yet, but I suspect that it's behaviour will be similar to that of the disk in a real Amiga.
prowler is offline  
Old 12 January 2010, 08:33   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
The difference is between physical (disk) errors and logical (filesystem) errors.

Disk imagers won't (and must not, or you would not be able to copy any disk correctly with fake filesystem structure..) care about filesystem errors.

Your disk has perfectly fine Amiga low level format (image copies fine) but is full of filesystem errors (saddam or similar virus damaged?)
Toni Wilen is offline  
Old 12 January 2010, 22:18   #3
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Thanks for your explanation, Toni.

This was originally an Amiga Format 117a coverdisk, and was recently sent to me by Titler for converting to ADF for contribution to AMR.

However, the disk has been overwritten and now appears to be a "ProText Data Disc".

I have some experience of recovering data from floppy disks with physical errors, but, as yet, no experience whatsoever of those with filesystem errors.

I have a feeling that this disk is destined to change that...
prowler is offline  
Old 13 January 2010, 12:31   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
I have some experience of recovering data from floppy disks with physical errors, but, as yet, no experience whatsoever of those with filesystem errors.
The procedure is always the same: first use a track-copy program like X-Copy or the like to copy the data to a floppy without physical errors, then run a program like DiskSalv which can recover files from disks with logical errors.

The second step is always needed, even if the disk does not have physical errors. The error messages are similar, either. A physical error (unreadable block) always leads to a logical error (missing or corrupted data), too.
thomas is online now  
Old 14 January 2010, 00:14   #5
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Thanks, Thomas!

I guess I shouldn't have much trouble applying the usual tricks, then.

Now that I know the disk has been overwritten, I'm not trying to reconstruct the disk image any more. However, I would like to recover some or all of the files it now contains, just to see if that will help Titler remember how the disk got overwritten. He does remember using ProText on his Amiga as his word processor throughout his student days, so that's most likely when it happened.

I think I'll see what DiskSalv can pull off the disk.
prowler is offline  
Old 18 January 2010, 01:29   #6
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Using DiskSalv, and working with a copy of the disk obtained from the image which TSGui produced from the original, I have been able to recover almost everything which was on the disk before it was overwritten!

First, I had to let DiskSalv validate the disk, for it wouldn't let me do anything else without that step. Then, I searched for deleted files, but there weren't any.

Next, I carried out a salvage operation to a folder on my hard drive, and recovered the boot sector, volume information and all the files and directory structure of the disk with no reported errors.

Naturally, this information reflected the change in volume name from "ADF117a" to "Protext Data Disc", modified the disk creation date (again) and included an extra file which had been added to the disk by the owner, but it was an excellent start.

Finally, I let DiskSalv repair the disk, which saved the date and time stamps of all the directories, but killed one of the files, due to data errors.

Unfortunately, the damaged file is not only the largest on the disk (approx. 700kB), but it's also a compressed (lzx) archive.

Therefore it is likely that the salvaged version of this file is damaged with at least as many errors as there were checksum errors on the original disk, and the tight compression of lzx archives will make it difficult to repair.

However, there is some good news: I have downloaded a copy of AFCD 33 from the EAB File Server, and that includes the content of the AF117 coverdisks as uncompressed files. I can therefore attempt to recreate the compressed archive (or maybe just the damaged portions of it) by trial and error, looking at the damaged archive with a binary file editor to discover which files to compress and in which order.

Thanks, Toni and Thomas, for your help, which got me started.

PS. I think that the most likely cause of the damage to the filesystem of this disk is that it was removed from the disk drive while it was being written to. I don't expect to find that that the boot sector is infected with a virus, but that's something else I will check with the binary file editor.

Last edited by prowler; 19 January 2010 at 00:32.
prowler is offline  
Old 15 February 2010, 00:31   #7
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Today, after a lot of work, I finally have a reconstructed, working disk from the AF117a disk with filesystem errors caused by partly-overwriting it.

To do this, I used my Amiga 1200 and WinUAE running Workbench 3.1, the Amiga tools TSGui, DiskMon Tools, LZX 1.21 and 1.20 Registered versions, DiskSalv and TrackEd, Cygnus Hex Editor for Windows and ChkSum, CopyDate and DirDate command line utilities for DOS, together with replacement files from an AF103b disk image from AMR and Fiasco 2.22 main and English docs archives from Aminet.

Thanks to both Toni Wilen and Thomas Rapp for their suggestions and help with this, which put me on the right path!

Last edited by prowler; 15 February 2010 at 22:07. Reason: Typo
prowler is offline  
Old 15 February 2010, 02:53   #8
Supamax
Da Digger :)
 
Supamax's Avatar
 
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
WOW, what a great recovery effort!!
Supamax is offline  
Old 15 February 2010, 12:04   #9
AmigaFriend
Registered User
 
AmigaFriend's Avatar
 
Join Date: Sep 2008
Location: CLI
Posts: 1,462
Quote:
Originally Posted by prowler View Post
To do this, I used my Amiga 1200 and WinUAE ruinning Workbench 3.1
I hope you have backups of your disks. But maybe you can always recover them! Great effort and skills mate!
AmigaFriend is offline  
Old 15 February 2010, 22:12   #10
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Quote:
Originally Posted by xpect View Post
Quote:
Originally Posted by prowler View Post
To do this, I used my Amiga 1200 and WinUAE ruinning Workbench 3.1
Thanks for spotting the typo, mate. I was getting rather tired by then.
prowler is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not DOS disk. Sector 21 bad. Over and over and over... XDelusion support.Hardware 2 29 June 2012 23:12
Checking my Religion Axxy request.Modules 0 04 July 2005 19:22
Checking a 2.5" hd for errors oldpx support.Hardware 12 28 July 2002 08:17
TSgui ??? RetroMan Amiga scene 2 29 October 2001 02:59

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:07.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09252 seconds with 13 queries