FAT32 File system

FAT32 File system

Post by UFNKS » Fri, 08 Sep 2006 21:52:02


I need help on the FAT32 file system implementation.

Please clarify this doubts.

- How does the OS find the size of the new device when the device is
formatted?
In floppy where the size of the floppy is stored.?

- How much space we need to allocate for FAT table in FAT32 file system?

Thanks!
 
 
 

FAT32 File system

Post by Tim Robert » Sun, 10 Sep 2006 14:20:16


There is a lot of good reference material on FAT32 on the web. Did you
look first?


The device hardware knows the capacity of the media. The driver reads that
and tells the system.


The hardware figures this out by reading and measuring the sector pattern.
Note that a floppy drive can be reprogrammed to write different capacities
on a floppy.


It depends. You need to read the reference material about this.
--
- Tim Roberts, XXXX@XXXXX.COM
Providenza & Boekelheide, Inc.

 
 
 

FAT32 File system

Post by Maxim S. S » Mon, 11 Sep 2006 09:29:44

> - How does the OS find the size of the new device when the device is

IOCTL_DISK_GET_LENGTH_INFO on XP and later
IOCTL_DISK_GET_PARTITION_INFO on all Windows


Floppy has a "media descriptor" byte in the first sector, which encoded its
size.


Depends on your cluster size. The FAT must be large enough to describe all
clusters, and note that the FAT is the integral number of sectors.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
XXXX@XXXXX.COM
http://www.yqcomputer.com/