How to Defragment a Windows XP Computer

If your computer has started running slowly, it may be time to defragment the hard drive. Fragmentation can slow down your computer and take up your free space. Follow this guide to get your Windows XP hard drive defragmented....
Method 1 of 2:

Defragment in Windows XP

  1. How to Defragment a Windows XP Computer Picture 1How to Defragment a Windows XP Computer Picture 1
    Open the Disk Defragmenter utility. You can find this by clicking the Start menu, selecting All Programs, then Accessories, then System Tools. Select Disk Defragmenter from the list. You will need to have administrator access to run the Disk Defragment utility.
    1. You can also open the Disk Defragmenter utility by clicking Start then Search. Type 'disk defragmenter' into the field and click Search.
  2. How to Defragment a Windows XP Computer Picture 2How to Defragment a Windows XP Computer Picture 2
    Select your drive. There will be a list of drives that are attached to your computer. Select the drive that you would like to defragment. This is typically the C: or D: drive. Click the Analyze button to see if the drive needs to be defragmented.
    1. You can compare the graphs below the list of drives to see how defragmenting the drive will affect its space allocation. If you see a lot of red lines, that means you have a significant amount of file fragmentation.
      How to Defragment a Windows XP Computer Picture 3How to Defragment a Windows XP Computer Picture 3
    2. You must have at least 15% free space in order to defragment the drive. This is because files will be moved around in order to optimize the drive, and the system needs a place to temporarily put files that are being reorganized.
  3. How to Defragment a Windows XP Computer Picture 4How to Defragment a Windows XP Computer Picture 4
    Defragment the drive. Select the drive and click Defragment. Confirm that you wish to start the process in the pop-up window. After the process is complete, you will receive a report in a new window. This report will tell you which files were moved, and which couldn't be moved, as well as your new free space readings.
    1. Avoid using your computer during the disk defragmentation process. If you alter any files, the defragmenter may have to start over.
    2. You can watch the process by following the status bar at the bottom of the window. This will show you how far the process is, as well as what is currently being moved. The 'after defragmentation' graph will adjust during the process as well.
Method 2 of 2:

Defragment in the Command Line

  1. How to Defragment a Windows XP Computer Picture 5How to Defragment a Windows XP Computer Picture 5
    Open the command line. Click the Start menu and Select Run. In the new window, type 'cmd' into the field and press Enter. This will open the command line interface.
  2. How to Defragment a Windows XP Computer Picture 6How to Defragment a Windows XP Computer Picture 6
    Analyze the drive. To see if a drive needs to be defragmented, enter the following command into the command line. Replace the 'C' for whichever drive you would like to analyze:

    defrag C: /a
  3. How to Defragment a Windows XP Computer Picture 7How to Defragment a Windows XP Computer Picture 7
    Defragment the drive. To start the defragmentation process, enter the following command into the command line. Replace the 'C': for whichever drive you would like to defragment:

    defrag C:
    1. You can force the defragmentation by adding the parameter /f to the end of the defrag command.

    2. As the defrag process is working, the system will display a blinking cursor. After the process is complete, a report will be displayed. You can write the report to a text file by starting the defrag process with the following command:

      defrag C: /v >filename.txt..
    3. You can interrupt the defrag process by hitting Ctrl+C.
5 ★ | 1 Vote