free space in partition
free space in partition
I am in need to get the free space(no allocated clusters) in partition.
RE:free space in partition
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.
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.