🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8320

Re: floppy disk bad sectors

#8320
From: Bob Gonder
Date: Thu, 11 Nov 2004 23:20
36 lines
3156 bytes
Don Locke wrote:

>It works by stepping through the floppy.  But how does CHKDSK A: work? 
>It doesn't appear to step through the floppy & is very fast.  It appears 
>to me that it is reading some structure to get the information.  Maybe 
>the FAT?

Yes, the FAT and the Directory structures.
It compares each Directory entry with the FAT, and also ensures that
Every FAT entry is either empty, or covered by one-and-only-one
directory entry.
(More than one is a cross-link, Zero is a dropped file)

What you are doing is more along the lines of ScanDisk's Surface Scan
than ChkDsk.

From your description, it sounds like your backup library is checking
the drive statistics (GetDiskFreeSpace, Free Clusters value), and
trying to match it to what a pristine floppy should be. Thus, if any
file is present (maybe a "lost" file), or there is a bad sector
(entire cluster is marked bad for a single bad sector), the values
won't match up.

If you really want to do a surface scan, you should be able to tweak
the performance. 25 years ago, I was able to read 9" floppy disks at a
rate of 3 tracks in 4 revolutions while the standard was 6 revolutions
Reason for poor performance was due to head movement.
When you finish reading last sector on a track, the head moves to the
next track, and if you try to read the first sector, well, it's
already gone by. so you have to wait for it to come around again.
In those days, I found that by trying to read 1/3 of the way into the
next rack, that the heads would be there in time. Thus I could read 3
tracks in 4 revolutions by reading 1-12 then 5-12-1-4 then 9-12-1-8

It would take some head scratching, but might be worth the bother if
you are going to use it much.
Technical Details
Message-ID: <a8r7p0l4op8g1qfa67og9gd13a9i9okjel@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <419121f3$1@newsgroups.borland.com> <41921bba$1@newsgroups.borland.com> <41922983$1@newsgroups.borland.com> <4192311f$1@newsgroups.borland.com> <41923ebd@newsgroups.borland.com> <41937d68@newsgroups.borland.com> <4193841f@newsgroups.borland.com> <419387ad$1@newsgroups.borland.com> <419394a0$1@newsgroups.borland.com> <41939810@newsgroups.borland.com> <4193b137$1@newsgroups.borland.com> <4193bb72$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2aacc4eb93e0b7a0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: floppy disk bad sectors
Date: Thu, 11 Nov 2004 15:20:39 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <a8r7p0l4op8g1qfa67og9gd13a9i9okjel@4ax.com>
References: <419121f3$1@newsgroups.borland.com> <41921bba$1@newsgroups.borland.com> <41922983$1@newsgroups.borland.com> <4192311f$1@newsgroups.borland.com> <41923ebd@newsgroups.borland.com> <41937d68@newsgroups.borland.com> <4193841f@newsgroups.borland.com> <419387ad$1@newsgroups.borland.com> <419394a0$1@newsgroups.borland.com> <41939810@newsgroups.borland.com> <4193b137$1@newsgroups.borland.com> <4193bb72$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.90.220
X-Trace: newsgroups.borland.com 1100215234 69.69.90.220 (11 Nov 2004 15:20:34 -0700)
Lines: 38
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail