Format SD memory for FAT16 or FAT32 in Windows 7?

Discussion in 'Computing and Networks' started by spinnaker, Jan 10, 2012.

  1. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    4,866
    988
    Not sure if this belongs in the embedded forum or here.

    Anyway I finally got my Pic reading my SD memory correctly. Turns out it was the one SD chip that I was using that appeared to be the problem.

    Anyway I started using some FAT functions I found. It looks for a particular signature in Sector 0 of the chip to determine if it is FAT16 or FAT32.


    I did some checking and see that at offset 54 for FAT16 you are supposed to have FAT16 in ASCII?

    And FAT32 at offset 82 for FAT32?

    Also the label is supposed to be stored in sector 0?


    I am finding none of these? I found the label in sector 8321 and I am not finding anything that has to do with FAT anywhere on the chip.


    Is this because I formatted with Windows 7? How can I get this SD chip formatted to comply with the FAT32 standard?

    This is what Microsofts specification says for offset 82

    Always set to the string ”FAT32 ”. Please see the note for this field in the FAT12/FAT16 section earlier. This field has nothing to do with FAT type determination.

    http://msdn.microsoft.com/en-us/windows/hardware/gg463084

    Not sure why the software is using these bytes but that is irrelevant. Why am I not finding FAT32 anywhere on the SD chip?


    This is what it says about offset 43

    Volume label. This field matches the 11-byte volume label recorded in the root directory.
    NOTE: FAT file system drivers should make sure that they update this field when the volume label file in the root directory has its name changed or created. The setting for this field when there is no volume label is the string “NO NAME


    I am not seeing a label at 43.
     
  2. R!f@@

    AAC Fanatic!

    Apr 2, 2009
    8,740
    759
    May be it's hacked.
     
  3. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    I think you and SD cards just weren't meant to love each other. :p
     
  4. R!f@@

    AAC Fanatic!

    Apr 2, 2009
    8,740
    759
    You owe me a key board...:D
     
  5. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    4,866
    988
    No it is not hacked it is a freshly formatted SD. And stop hijacking my thread! :D

    I formatted the SD with:

    format j: /FS:FAT32 /V:MYLABEL /R:1.02 /A:512

    While the label is still not showing up where is supposed to (according to the specs), I am getting FAT32 at offset 82 like I am supposed to.
     
  6. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    I'd just try

    format <driveletter> /FS:FAT32 /V:MYLABEL

    Without the extra options to see if that changes anything
     
  7. R!f@@

    AAC Fanatic!

    Apr 2, 2009
    8,740
    759
    Would that work on hacked ones...

    And I am not hijacking ur thread, I would rather Hijack a 747. The no. tht is. :D
     
  8. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    what hacked ones?
     
  9. R!f@@

    AAC Fanatic!

    Apr 2, 2009
    8,740
    759
    You dunno about hacking thumb memories.

    Google it first and ask questions later.
     
  10. davebee

    Well-Known Member

    Oct 22, 2008
    539
    46
    I've seen a lot of variation in FATs written to SD cards by different versions of Windows, or by Linux, or by cameras.

    I don't think you can always depend on any one FAT description always being exactly correct.
     
Loading...