free space in partition

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Anil

free space in partition

Post by Anil »

I am in need to get the free space(no allocated clusters) in partition.
Chase

RE:free space in partition

Post by Chase »

It depends on what FileSystem in on your partition...

With fat you're going get stuck with reading in a copy of your fat and looking to see which clusters aren't in use. The way fat works you have a linked list of used clusters for a file stored in the fat. The linked list does get broken sometimes so be warned you can have half a file using up space still....

FAT32 does try to maintain the free count of clusters so you don't have to read through the fat. The value is in the extended fs info section that fat32 partitions have but it's value doesn't have to be set.
Post Reply