Re: FAT16 boot record error



In comp.arch.embedded,
johsey <johann.seydoux@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello,

I'm developing a "USB card reader" which must read a 512 bytes non-writable
memory and display it as a file.

Since the 512 bytes memory contains only data which have to be stored in
the file, I have to define in firmware the entire FAT as a big array. Thus,
no possibility to format the media using for example Windows.

I'm encountering problems when I connect my device to the host PC: Windows
7 asks if I want to format the removable device. As I understood and as I
saw with my USB analyzer, the OS doesn't seem to understand the FAT boot
sector. I based on the USB Mass Storage book from Jan Axelson.

Do someone have some ideas about what fields in the boot sector can
generate such an error? Do you know where I can find some documentation on
how Windows set the boot sector?

How big is the "disk" pretending to be? Small disks can only be FAT12, you
can not create an arbitrary sized FAT16 disk. There are set rules in
cluster count for each FAT type as the number of clusters is the only way
to determine the FAT type, see:
http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/fatgen103.doc


--
Stef (remove caps, dashes and .invalid from e-mail address to reply by mail)

Rule of the Great:
When people you greatly admire appear to be thinking deep
thoughts, they probably are thinking about lunch.
.



Relevant Pages

  • Re: --++[Preventing the spread of USB malware]++--
    ... "/Flash_Disinfector will create a hidden folder named autorun.inf in each partition and every USB drive that is plugged in when you ran it. ... Don't delete this folder...it will help protect your drives from future ... > Malware uses two main techniques to spread through memory sticks. ... > the disk in a hex editor. ...
    (Pen-Test)
  • Re: --++[Preventing the spread of USB malware]++--
    ... I format the USB drive with NTFS (you need ... Malware uses two main techniques to spread through memory sticks. ... when they are run on another machine, the infection moves with them. ... It doesn't matter if you open the physical disk, ...
    (Pen-Test)
  • Re: Serious zfs slowdown when mixed with another file system (ufs/msdosfs/etc.).
    ... Try to copy large files from non-zfs disk to zfs disk. ... cache the data read from non-zfs disk in memory, ... copy large files from that USB drive to zfs pool. ...
    (freebsd-stable)
  • Re: dvd writer driver
    ... I suggest not using UDF because it will wear out rewritable ... become obvious until you can no longer read the disk. ... A USB memory stick would likely be a better option, ...
    (comp.os.os2.misc)
  • Re: linux usb clarification
    ... DG> and flash memory devices. ... I have Thinkpad R50e with two USB ... Both the USB and Firewire Mass Storage drivers use the 'SCSI Disk Abstraction ...
    (comp.os.linux.misc)