Compartilhar via


Analyze a volume

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To analyze a volume

  • Using the Windows interface

  • Using a command line

Using the Windows interface

  1. Open Disk Defragmenter.

  2. Click the volume that you want to check for fragmented files and folders, and then click Analyze.

    When Disk Defragmenter finishes analyzing the volume, it displays its analysis of the volume in Estimated disk usage before defragmentation. It also displays a dialog box that tells you whether you need to defragment the volume.

  3. Click View Report to view the analysis report, which displays more detailed volume information and a list of the most fragmented files.

Notes

  • To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using Run as to perform this procedure.

  • To open Disk Defragmenter, click Start, point to All programs, point to Accessories, point to System Tools, and then click Disk Defragmenter.

  • Running the defrag command and Disk Defragmenter are mutually exclusive. If you are using Disk Defragmenter to defragment a volume and you run the defrag command at a command prompt, the defrag command fails. Conversely, if you run the defrag command, and open Disk Defragmenter, the defragmentation options in Disk Defragmenter are unavailable.

Using a command line

  1. Open Command Prompt.

  2. Type defragvolume [/a] [/v]

    Value Description

    volume

    The drive letter or a mount point of the volume to be analyzed.

    /a

    Analyzes the volume, displays a summary of the analysis report, and indicates whether you should defragment the volume.

    /v

    Displays the complete analysis report.

Notes

  • To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using Run as to perform this procedure.

  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.

  • To view the complete syntax for this command, type defrag /?

  • While defrag is analyzing and defragmenting a volume, it displays a blinking cursor. When defrag is finished analyzing and defragmenting the volume, it displays the analysis report, the defragmentation report, or both reports, and then exits to the command prompt.

  • By default, defrag displays a summary of both the analysis and defragmentation reports if you do not specify the /a or /v parameters.

  • You can send the reports to a text file by typing >filename.txt, where filename.txt is a file name you specify. For example:

    defrag volume /v >filename.txt

  • Running the defrag command and Disk Defragmenter are mutually exclusive. If you are using Disk Defragmenter to defragment a volume and you run the defrag command at a command prompt, the defrag command fails. Conversely, if you run the defrag command, and open Disk Defragmenter, the defragmentation options in Disk Defragmenter are unavailable.

Information about functional differences

  • Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.

See Also

Concepts

Working with MMC console files
Why volumes become fragmented
Defragment a volume
Analysis and defragmentation reports
Defrag