Anyone knows how to use it to calculates disk free and used space ??
Thanks in advance.
regards _________________ Andre
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
Re: How does FAT32 calculates free and used disk space ?
Posted: Tue Mar 10, 2009 7:32 pm
andreluizeng wrote:
anyone knows how to use it to calculates disk free and used space ??
thanks in advance.
regards
Its a painful process. You have to analyze the FAT to see how many clusters are unused then multiple by the number of sectors per cluster * 512
Used depends on you definition - if you want to know how much cannot be allocated then = total clusters - clusters used * sectors per cluster * 512
If you want to know how is used by files then you need to take into account clusters allocated and the unused sectors in the cluster. _________________ Regards, Andrew
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum