defrag


defrag new in WS2003

Defragments local drives .

Syntax

 defrag   Volume   [/a] [/v] [/f] 

Options

Volume

The drive letter or mount point of the volume to defragment

/a

Performs a fragmentation analysis only and displays a summary report

/v

Verbose analysis report

/f

Forces defragmentation even if free space is low

Examples

Check volume E: for fragmentation:

  defrag e: /a  Windows Disk Defragmenter Copyright (c) 2002 Microsoft Corp. and Executive Software International,  Inc.     Analysis Report     502 MB Total,  60 MB (11%) Free,  1% Fragmented (2% file fragmentation)     You do not need to defragment this volume. 

Get verbose information about fragmentation:

  defrag e: /v  Windows Disk Defragmenter  Copyright (c) 2002 Microsoft Corp. and Executive Software International,  Inc.     Analysis Report         Volume size                         = 502 MB     Cluster size                        = 512 bytes     Used space                          = 442 MB     Free space                          = 60 MB     Percent free space                  = 11 %     Volume fragmentation     Total fragmentation                 = 1 %     File fragmentation                  = 2 %     Free space fragmentation            = 0 %     File fragmentation     Total files                         = 781     Average file size                   = 611 KB     Total fragmented files              = 8     Total excess fragments              = 19     Average fragments per file          = 1.02     Pagefile fragmentation     Pagefile size                       = 0 bytes     Total fragments                     = 0     Folder fragmentation     Total folders                       = 1,256     Fragmented folders                  = 1     Excess folder fragments             = 36     Master File Table (MFT) fragmentation     Total MFT size                      = 2 MB     MFT record count                    = 2,052     Percent MFT in use                  = 97     Total MFT fragments                 = 3 

Defragment E: drive:

  defrag e:  Windows Disk Defragmenter Copyright (c) 2002 Microsoft Corp. and Executive Software International,  Inc.     Analysis Report     502 MB Total,  60 MB (11%) Free,  1% Fragmented (2% file fragmentation)     Volume New Volume (E:) has only 11% free space available for use by Disk  Defragmenter.  To run effectively, Disk Defragmenter requires at least 15%  usable free space.  There is not enough disk space to properly complete the  operation.  Delete some unneeded files on your hard disk, and then try  again. 

Force defragmentation even though free space is low:

  defrag e: /f  Windows Disk Defragmenter Copyright (c) 2002 Microsoft Corp. and Executive Software International,  Inc.     Analysis Report     502 MB Total,  60 MB (11%) Free,  1% Fragmented (2% file fragmentation)     Defragmentation Report     502 MB Total,  60 MB (11%) Free,  0% Fragmented (0% file fragmentation) 

Notes

  • You can't run the defrag command and the Defragmenter tool in Computer Management at the same time.

  • A minimum of 15% free space is required on volumes to completely defragment them. Forcing a defragmentation when there is less free space often results in partial defragmentation.

  • To stop the defragmentation process, type Ctrl-C.

See Also

chkdsk , chkntfs , convert , diskpart , Disks , format , label , mountvol



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net