Article View: borland.public.cppbuilder.nativeapi
Article #8157Re: floppy disk bad sectors
From: Andrue Cope [TeamB]
Date: Fri, 19 Nov 2004 16:19
Date: Fri, 19 Nov 2004 16:19
33 lines
2684 bytes
2684 bytes
Boba wrote: > I am facing a 'similar' task but for CDs (compact disks get scratched) > and cds seem to be genetically different from floppies. They certainly have differences behind the scenes but that shouldn't matter too much. > OpenFile and got no luck: all function calls return no errors but > the buffer doesn't get filled up with what i'd expect. What would you expect? They aren't formatted using the FAT file system. What you should see (bearing in mind they have 2048 byte blocks) is: Blocks 0 to 15 - empty. All bytes 0x00. Block 16 - This contains the equivalent of a boot sector. The volume name should be visible. At offset 813 you should see a string of digits which if you stare at for long enough become a series of date/time stamps. Block 17 - looks a lot like 16 Block 18 - First few bytes look like 16 and 17. Rest is probably empty. Block 19 - List of file names. This is the start of the directory table and is basically the data area. If you search the web you should be able to find the ISO9660 specification. Some of the terminology is a bit odd though and it might make your head spin :) -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<419e1dc1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!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> <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> <41947eaa$1@newsgroups.borland.com> <419e1544@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> <41947eaa$1@newsgroups.borland.com> <419e1544@newsgroups.borland.com> Date: Fri, 19 Nov 2004 16:19: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: <419e1dc1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100881345 217.207.223.34 (19 Nov 2004 08:22:25 -0700) Lines: 33 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail