Re: VB6 - accessing CompactFlash bootsector & FAT



On Fri, 29 Jul 2005 19:22:27 GMT, "IED" <i.davis@xxxxxxxxxxxx> wrote:

>Hi,
>hoping for some guidance.
>I want to be able to read individual bytes & words from a CompactFlash card.
>The data on the CF does not conform to FAT so I want to get right down into
>the sectors.
>The CF isn't readable under Windows, but I can view the contents with
>WinHex.
>Is it possible with VB6 to get down to this level?
>I am using the CF in another embedded system and don't want the overhead of
>FAT but want a way of retrieving the data via PC easily.
>Any help would be appreciated.

Does the card show up as a drive ?

You just might be able to read the card using Int 25h
- absolute sector read

Under Windows one gets at that using DeviceIoControl
- also things depend on the version of Windows

Under the NT, 2K, XP one can open a drive

Just a few pointers - not a solution

Incidentally the overheads of FAT are very low.
What some people used to do in the old days was to format up the first
few sectors to look like FAT with just one huge 'preformatted' file,
then write directly to the card.

If you have control of the other embedded system, them I would
seriously suggest that you look into that approach
.



Relevant Pages

  • Re: Unexpected reset during installing Windows XP SP 2 English.
    ... When I saw pretty much this same problem, the issue was a bad hard drive (multiple bad sectors - found by running chkdsk after a full long format). ... I tested it with Windows XP SP1 and Windows 2000 and there is a similar behavior. ... Network card: 10/100Mbps ... I/O extension port: serial port x 2+ 2 optional ...
    (microsoft.public.windowsxp.general)
  • Re: Free HDMI Cable Anyone?
    ... consistency in Windows case handling a real pain. ... saving files, or due to differences in differently formatted FAT devices, ... I got a new card ... One the recorder they showed up with names that were all upper case. ...
    (uk.tech.digital-tv)
  • Re: Compact Flash sustained write speed issues
    ... More sectors you write at once, ... If 'n' is the internal card erase unit size, ... A modern card sustains 20..30 MB/sec ... That will probably cause a block-erase delay with every FAT ...
    (comp.arch.embedded)
  • Re: Embedded RTOS - features poll
    ... If the FAT ... lowest freed cluster from the last file delete. ... all the clusters on a 32GB SDHC card. ... That's about 32768 512-byte sectors. ...
    (comp.arch.embedded)
  • Re: Bootloading from SD card
    ... constraint is that the SD card format must be left alone as ... This area is also hidden from FAT users. ... you can create two partitions on the memory card: ... The boot sector is only 2 sectors long -- non ...
    (comp.arch.embedded)