Jump to content
Sign in to follow this  
razorcd

Manual Defrag Vista

Recommended Posts

Manual Defragmentation

There are of course reasons why you might want to override this default mechanism. For example, a full defragmentation of the hard disk may speed up certain operations. If you're doing it on a large scale with many computers, the time savings when backing up a properly defragged hard disk compared to one where the files are broken into many fragments may be significant. Another possible reason might be if you are capturing video on your computer and don't want any frames to be skipped; if the disk is fragmented without a contiguous free space for the entire video file, the hard disk head may have to skip over occupied sectors in the middle of recording, causing your recording software to skip frames.

 

To get Vista's defragger to give you some information about your hard disk, and to control which hard disk or partition it defragments, you will need to use the command line defragmentation utility. It will still not give you any feedback while defragmenting, just as the GUI version of the defragmenter will not, but at least you can get information on the fragmentation level of your hard disk, control whether to defragment even if the file fragments are larger than 64 MB, and control which partition or hard disk to defragment.

 

To use the command line defrag tool in Windows Vista, you have to run the Command Prompt as an administrator. In Vista, this is not automatic even if you are logged in as the administrator. Click the Windows button (previously the Start button in earlier versions of Windows), the All Programs menu item and the Accessories menu item. Right click the "Command Prompt" button and select "Run as administrator". A command prompt window will appear. Everything you run in this Window will be run with administrator rights.

 

  • To view a file fragmentation analysis of (say) your C: drive, type:

     

    defrag c: -a -vThe "-a" parameter tells the defragger to perform a fragmentation analysis. The "-v" option tells it to be verbose in its report. If you want a report on drive D: or some other drive, substitute that drive letter in place of c:.

     

    Be aware that defrag may tell you that you have no fragmented files even if you have some. On NTFS partitions, the reporting function of defrag does not consider fragmented files with fragments greater than 64 MB as fragmented. If you need truly detailed information, you may have to consider getting a third party defragmenter such as those listed on the Free Defragmentation Utilities page on thefreecountry.com.

  • To defragment a particular drive, say C:, type:

     

    defrag c: -v -rThe "-r" option tells the defragmentation utility to treat files that are fragmented with 64 MB fragments or larger as though they are not fragmented. This partial defragmentation is the default for "defrag", and it's the only way the GUI defragmenter in Vista works.

     

    You can also force the defragmenter to defragment everything. That is, even if the file fragments are larger than 64MB, the Vista defragmenter will still attempt to put the file into contiguous sectors. To do this, run the defragger with the following options:

     

    defrag c: -v -wAs you have probably have guessed, "-w" tells the Vista defrag tool to do a full defragmentation. All file fragments will be consolidated where possible.

     

    You will still not get any feedback as to the progress of the defragmentation with the command line tool, just as you did not with the GUI version. However, at the beginning and the end of the defragmentation, "defrag" with the "-v" option will give a report, much like the old Windows XP GUI defragmentation utility. Again, though, it will not report fragmented files with 64 MB fragments (or larger) as being fragmented

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...