Block/sector size on a hdd

Just starting out? Need help? Post your questions and find answers here.
User avatar
tarmsaft
User
User
Posts: 37
Joined: Sat Jun 30, 2007 12:03 pm
Location: San Francisco

Block/sector size on a hdd

Post by tarmsaft »

How do I find out the block size of a hdd?
Or is it called sector size? anyways the smallest physical size that is allocated for a file on the disk.
MacBook Pro (model 7,1) - 2.4GHz Intel Core 2 Duo 4GB - OS X 10.7 Lion.
PB 4.60 RC1
User avatar
STARGÅTE
Addict
Addict
Posts: 2228
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Block/sector size on a hdd

Post by STARGÅTE »

Code: Select all

GetDiskFreeSpace_("C:\", @SectorsPerCluster, @BytesPerSector, @NumberOfFreeClusters, @TotalNumberOfClusters)
Debug SectorsPerCluster
Debug BytesPerSector
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Post Reply