Defragmenting Your Hard Drive
Defragmenting consolidates all files on your hard drive into contiguous portions. This task is necessary because Windows is a slob as operating systems go, scattering data all over the hard drive rather than in any sort of logical order.These steps show how to defragment your Windows partition:Close all programs and windows on your computer, leaving just the desktop and icon bar.
Double-click the My Computer icon on the desktop.
Select the C: drive by clicking it and then choose FilePropertiesTools.
Click the Defragment Now button.
The defragmentation program looks at the drive to determine whether it needs defragmentation.Tip You may get a message telling you that you don’t need to defragment because your hard drive is not very fragmented; don’t believe it. Under ordinary circumstances, this statement may be true. But resizing isn’t an ordinary occurrence; defragmenting your hard drive is necessary because you’re going to move the end of the partition file system and make the partition smaller, erasing any data outside that barrier.
Click Start.
The defragmentation window appears and the process begins. Defragmenting can take a long time, depending on the size of your hard drive and the number of errors to be corrected.Technical StuffBy clicking the Show Details button, you can scroll up and down the large window to watch the defragmentation process in action, as shown in Figure 2-2.The colored blocks represent programs and data, and the white space represents free space on your hard drive that FIPS can allocate to the Linux file system. The movement of the blocks around the screen shows that the data is being moved forward on the drive. Expect to see white space appear toward the bottom of the window, which represents the end of your drive. At the end of the defragmentation process, no colored blocks appear at the bottom of the window, and all the blocks are compressed toward the top of the window. After what may seem like quite a long time, defragmentation ends. All useful blocks of information are now at the beginning of the drive, making it ready for the resizing program.These instructions describe how to defragment your Windows NT, Windows 2000, or Windows XP (NTFS) computer:
Close all programs and windows on your computer.
Click StartProgramsAccessoriesSystem ToolsDisk Defragmenter.
Select the partition to defragment. Most computers use a single partition labeled C:\ (the ubiquitous “C drive”). Click the Defragment button and the process starts.
Figure 2-3 shows the defragmentation process for an NTFS partition.

Figure 2-2: Defragmenting a FAT partition.

Figure 2-3: Defragmenting an NTFS partition.