WWFileFragmentCount2 program inspects data fragment status of specified file on NTFS formatted volume.
This program opens specified file with read-only access rights and report its fragmentation status. It does not write, does not fix file fragmentation.
Version 1.0.1 for Windows https://sourceforge.net/projects/playpcmwin/files/others/WWFileFragmentCount2_101.zip/download
MIT License
Unzip downloaded file.
Run WWFileFragmentationCount2.exe
Specify the file by pressing browse button (or ALT+B) or drop the file from explorer to the file name textbox.
Press Start button (or ALT+S) to inspect the file.
Just delete downloaded zip file and extracted directory.
Version 1.0.1 : Fix typo.
Version 1.0.0 : initial release.
Please read these documents:
VCN means Virtual Cluster Number. That is sequential cluster number of the file content starts from zero. VCN 0 means the first cluster of the file content and VCN 1 means the second cluster of the file content.
LCN is Logical Cluster Number. Sequential number from the volume start to the end. The first sector of the disk drive exists on LCN 0.
This program shows VCN to LCN mapping table of the specified file.
Traditional HDD sector size is 512 bytes. Some of recent HDD has 4096 bytes sector size, those are called "4K sector" or "Advanced Format" hard drives: https://en.wikipedia.org/wiki/Advanced_Format
From the following documentation, there is a hidden 50 bytes of error correction code and 15 bytes of other housekeeping data for every 512 bytes sector data. The disk drive embedded microcontroller and its firmware manages those fields (those 65 bytes data is not exposed to the OS). https://www.seagate.com/tech-insights/advanced-format-4k-sector-hard-drives-master-ti/
Shingled Magnetic Recording drives are more advanced HDDs than traditional Conventional Magnetic Recording HDDs and the sector number is virtualized: There is additional sector virtualization layer and there is a table to map sector number and physical sector number. On SMR drives, sequential sector number (or sequential LCN) does not mean those are contiguously stored to physical disk. Frequently updated sectors are stored in their CMR area and write-once-read-many-ish sectors are moved to SMR area when drive IO activity becomes low. SSDs have a similar mechanism with fast and small SLC area and slow and large QLC area.