🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: floppy disk bad sectors

#8323
From: Andrue Cope [TeamB]
Date: Fri, 12 Nov 2004 09:09
34 lines
2833 bytes
Don Locke wrote:

> But how does CHKDSK A: work?

As Bob has said ChkDsk doesn't check every sector. It just checks what
is called the "metadata" of the file system. Assuming that the floppy
has no subdirectories ChkDsk will not wander beyond the first couple of
tracks of a disk.

As regards speed, how fast is the clunk-clunk-clunk? It should three or
four clunks a second resulting in the whole process being complete in
around half a minute. If there are only one or two clunks a second it
implies that your floppy drive is not using read-ahead and is reading
one sector at a time.

You can test/fix this by changing my function so that it reads a
track's worth of data each time instead of 512 bytes. For a 1.4MB
floppy that means reading 18 blocks at a time. Most floppy drivers do
this behind the scenes anyway but we have found some that don't.

The only quick way to check for bad sectors as I wrote in a prior reply
is to check the FAT but aside from not always being accurate the truth
is that if you are writing files using the OS those bad markers in the
FAT will direct the data elsewhere anyway.

You need to check for bad sectors that aren't already flagged as bad
and unfortunately that means reading every sector on the disk. That
will take time - about as long as it takes to fill a floppy disk with
data.

-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <41947eaa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!213.73.255.4.MISMATCH!newsfeed.multikabel.nl!news2.euro.net!216.196.110.149.MISMATCH!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: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Re: floppy disk bad sectors
Newsgroups: borland.public.cppbuilder.nativeapi
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>
Date: Fri, 12 Nov 2004 09:09:56 +0000
User-Agent: XanaNews/1.16.4.6
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <41947eaa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100250794 217.207.223.34 (12 Nov 2004 01:13:14 -0700)
Lines: 34
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!213.73.255.4.MISMATCH!newsfeed.multikabel.nl!news2.euro.net!216.196.110.149.MISMATCH!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