Files Excluded by Disk Defragmenter Tool

ID: Q227350


The information in this article applies to:
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Server


SUMMARY

Windows 2000 includes a built-in Disk Defragmenter tool. This tool excludes certain files because of known issues with moving these files. Also, files that are locked for exclusive use by another process are skipped.


MORE INFORMATION

The following files are permanently excluded from being defragmented. These files may appear in the analysis report as still being fragmented no matter how many times you defragment the drive.

Moving this file can cause desktop problems if the Recycle Bin or the Recycler folders are removed:

%SystemRoot%\ShellIconCache
Moving these files (if present) can cause desktop problems:
Safeboot.fs
Safeboot.csv
Safeboot.rsv
Bootsec.doc
The following files are unmoveable system files. They are always displayed in green in the defragment analysis display:
  • NTFS Master File Table (MFT): Usually contiguous at the very beginning of a NTFS volume but can become fragmented if many files and folders are added to a volume.


  • NTFS Master File table Mirror (MFTMirr): Usually located in the middle of a volume and is already contiguous.


  • Virtual Memory Paging file: Used for temporarily swapping pages of memory to disk.


Adjusting the MFT

Although you cannot defragment the MFT once it becomes fragmented using the Disk Defragmenter, there is a way of preventing MFT fragmentation, or at least reducing the possibility of it becoming fragmented by reserving space for it ahead of time.

To determine how large the MFT is, how many fragments there are, and what percentage of the MFT is in use on an NTFS volume, perform a Disk Defragmenter analyze operation to generate a report. View the report and look for the following section under Volume Information:
Master File Table (MFT) fragmentation.

Total MFT Size = 8512K
MFT record count = 8,504
Percent MFT in use = 99%
Total MFT Fragments = 4
Use this information along with the following article in the Microsoft Knowledge Base to adjust the NtfsMftZoneReservation value, back up and reformat the volume to create a contiguous MFT using the higher zone reservation space, and then perform a full volume restore:
Q174619 How NTFS Reserves Space for its Master File Table (MFT)

Defragmenting the Paging File

To defragment, or reduce the amount of fragmentation in the paging file:
  1. Click Start, point to Settings, click Control Panel, and then double-click System.


  2. On the Advanced tab, click Performance Options.


  3. Click Change to open the Virtual Memory dialog box.


  4. Change the paging file to another drive.


  5. Reduce the minimum and maximum size of the original paging file on the drive you want to defragment to 0 MB.


  6. Reboot your computer to have the system use the new paging file.


  7. Run Disk Defragmenter on the original drive to consolidate the free space segments created by moving the paging file.


  8. Re-create the paging file on the original drive.


  9. Reduce the minimum and maximum size of the temporary paging file to 0 MB.


  10. Reboot your computer.


Additional query words: defrag

Keywords : kbtool
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: December 29, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.