How to Perform Disk Defragment Windows Vista from the Command Line

Topics Computer, Windows Vista on February 19th, 2008

The Vista has been improved over the XP version, but you can’t see or use all the best features unless you run it from the line. By default the tool only files smaller than 64 MB, because according to ’s , fragments of this size, which already consist of at least 16000 contiguous clusters, have a negligible impact on . If you still want to files larger than 64 MB too, you need to use the -w switch mentioned below to files of all size.

does not files in the Recycle Bin, or files which are in use. will not dos, fs, csv, rsv, Hiberfil sys, dmp, or the page file. Using the -b parameter will optimize these boot files.

Some swtiches that are available from the line for are:

Specifies the drive letter or mount point path of the volume to
be defragmented or analyzed.

-c all volumes on this .
Don’t specify a drive letter while using this.

-a Performs fragmentation analysis only.

-r Performs partial (default). Attempts to
consolidate only fragments smaller than 64 megabytes (MB).

-w Performs full . Attempts to consolidate all file
fragments, regardless of their size, even 64 MB files.

-f Forces of the volume when free space is low.
A volume must have at least 15 % free space before
can completely it.

-i This makes run in the background, and operate only if the
is idle, like when run as a scheduled task.

-b Optimizes boot files and applications only. Use this option
during a separate operation.

-v Specifies verbose mode. The and analysis output
is more detailed.

The only indication you will get is a blinking cursor. This means that the process is going. To interrupt the process, press Ctrl + C in the window.

If you find that you are unable to or cannot run the utility in Vista or that a drive or volume has been marked by Vista as having errors, run chdsk by entering:

c: /f

… at a prompt; where c is the drive letter. You will be able to then run after has repaired the file .

To run you will need to run the line prompt as the Administrator.

To you boot files enter into the line:

c: -b

To all files on all drives/volumes, even the files over 64 MB enter into the line:

-cwv

This may take a while, but you’ll see a report for each drive. The cursor will blink until finished, then it will return to the prompt.

Here are a few other examples:

d:
d:’vol’mountpoint -w -f
d: -a -v

You could use the line once a week, or even once a month, in addition to daily default defragmenting to keep your running .

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Google
  • Furl
  • Live
  • MisterWong.DE
  • NewsVine
  • Reddit
  • Slashdot
  • Technorati
  • YahooMyWeb
  • BlinkList
  • description
  • Fark
  • Netvouz
  • Spurl
  • MisterWong
  • Webnews.de
  • e-mail

Tags:, , , , , , , , , , , , , , , , , , , , , ,

Related posts

Leave a Reply