Brian said:
The point actually is that there is no single way to define what is meant by
a percentage fragmented.
30% fragmented could mean many different things.
At one extreme you could say what percentage of files are fragmented in any
way.
At the other you could say if you read right through every file what
proportion of the time you advance from one allocation block to the next in
the file are they not right next to each other on the disk.
The Sysinternals program "Contig", can scan the entire disk and
tell you whether each file consists of one contiguous chunk, or
is fragmented. The program also allows individual files to be
defragmented. Unlike the WinXP defragmenter, which I noticed "pushes
files to the left", the "Contig" program simply finds blocks of
storage space which are continguous, and transfers the file there
(using the Windows defrag API provided for that purpose, so it's safe).
That means files are left floating somewhere in the right hand portion
of a defragmentation display. But the file is still technically
defragmented - it hasn't been subject to any "relocation policy" at
the same time. It's the closest thing to "pure defragmentation",
rather than combining defragmentation and file location optimization
that other tools provide.
http://technet.microsoft.com/en-us/sysinternals/bb897428
contig -v -a -s C:\ > filelist.txt
("Failed to open C:\\hiberfil.sys: Access is denied.")
In fact, I also found the Contig program useful, just for the purpose
of making a file list for an entire partition. It's pretty fast, as
scanners go.
Paul