Show Windows Server 2008 file fragmentation status

Server 2008 does not show the fragmentation percentage.

Unlike Windows Server 2003 and Windows Server 2008 R2, Server 2008 -like Windows Vista- does not show a file fragmentation percentage or report, it only advises whether you should or shouldn’t defrag your harddrive. This can be an issue if you need to improve performance of servers under high-load and/or don’t want to stress your shared storage by defragmenting drives that don’t need defragmentation. Luckily this has been solved in Server 2008 R2.

Solution: Use the command line tool

To see the file fragmentation percentage in Server 2008, instead of the Disk Defragmenter, use the ‘defrag’ tool in your command prompt:

  1. Open a command prompt
  2. Type defrag [driveletter] -a -v to analyse your disk
  3. The command prompt will return something like the screenshot below:
    (As you can see, this server needs a defrag quite badly :-) )

Server 2008 Defragmentation

You can use the following commandline options:

-A Perform an analysis of the specified volume.
-C Defragment all disks.
-F Force defragmentation of a volume even when low on space.
-R Perform a partial defragmentation, consolidating fragments smaller than 64 MB (default).
-V Set verbose mode for detailed output during analysis and/or defragmentation.
-W Performs full defragmentation, consolidating all fragments regardless of fragment size.

Now to defragment your drive, simply type defrag [driveletter] -w to defragment your harddrive.

Happy Defragging!

3 thoughts on “Show Windows Server 2008 file fragmentation status

  1. I will right away grasp your rss as I can’t to find your email subscription link or newsletter service. Do you have any? Kindly permit me understand so that I may subscribe. Thanks.

  2. Pingback: Show Windows Server 2008 file fragmentation status |

Leave a Reply to circunvalacion de alicante Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>