Article View: borland.public.cppbuilder.nativeapi
Article #8297Re: floppy disk bad sectors
From: Andrue Cope [TeamB]
Date: Wed, 10 Nov 2004 14:42
Date: Wed, 10 Nov 2004 14:42
30 lines
2221 bytes
2221 bytes
Don Locke wrote: > I would like to be able to check the floppy for bad sectors before > using the disk. There is no magic way to ask if a disk has bad sectors on it(*). You have got to read the entire disk to check. Most file systems do provide a way to flag clusters as containing bad sectors but this information can be: - Out of date (because media deteriorates further over time), - Innaccurate (because the sector is borderline and when tested during formatting the sector managed to be read) - Misleading (because when formatted a quick format was performed and sector testing not carried out). In any case this information is not provided (AFAIK) through the Windows API so to get it you need to read filesystem meta data and that means direct sector by sector access to the media. (*)Most modern hard disks can provide a list of bad blocks but this information has a habit of becoming corrupted and is usually proprietary and requires special commands to access it. For floppy disks this option does not exist. A sector is known to be bad only because someone tried to read it and failed. -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<41922983$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.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-mailReferences:
<419121f3$1@newsgroups.borland.com> <41921bba$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> Date: Wed, 10 Nov 2004 14:42:07 +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: <41922983$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100097923 217.207.223.34 (10 Nov 2004 06:45:23 -0700) Lines: 30 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.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