Does the FAT filesystem have a signature?
Given the following BPB:
FAT32 BPB http://img121.imageshack.us/img121/1131/fat32开发者_运维知识库bpb.png
The "MSWIN4.1" string is just the "OEM ID" field, and by Microsoft documentation it should not be used to identify FAT volumes.
The "FAT32 " string is the BS_FilSysType field, and by Microsoft documentation it should not be used to identify FAT volumes either.
So how do i identify that the volume is formatted to FAT? Is there any reliable signature I can relay on?
At position 0x30 of the boot sector will be a pointer to the FSInfoSector - this will start with a signature that should be 41615252h (or, 0x52 0x52 0x61 0x41 / "RRaA")
This should allow you to properly identify to volume - sources: http://www.dewassoc.com/kbase/hard_drives/boot_sector.htm and http://en.wikipedia.org/wiki/File_Allocation_Table#FS_Information_Sector
精彩评论