Microsoft Knowledge Base Email Alertz

(229154) - When you try to run Disk Defragmenter (Defrag.exe) or ScanDisk (Scandskw.exe), you may receive one of the following error messages: Your computer does not have enough free memory to defrag the drive. Quit one or more programs. ID# Defrag009 -or-...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 229154 - Last Review: August 8, 2006 - Revision: 4.2

"Your Computer Does Not Have Enough Free Memory to Defrag the Drive" Error Message

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you. Visit the Windows Vista Solution Center
This article was previously published under Q229154
Notice
If this article does not describe your hardware-related issue, visit the following Microsoft Web site to view more articles about hardware:
http://support.microsoft.com/default.aspx/w98?sid=460 (http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fdefault.aspx%2fw98%3fsid%3d460)

SYMPTOMS

When you try to run Disk Defragmenter (Defrag.exe) or ScanDisk (Scandskw.exe), you may receive one of the following error messages:
Your computer does not have enough free memory to defrag the drive. Quit one or more programs.
ID# Defrag009
-or-
ScanDisk could not continue because your computer does not have enough available memory.

CAUSE

This problem may occur if either of the following conditions is true:
  • You are running Windows on a hard disk that is larger than 8 gigabytes (GB) and that has a cluster size that is smaller than 8 kilobytes (KB).

    This configuration may occur if you use a third-party disk tool to create a partition on a hard disk that is larger than 8 GB and that has a cluster size that is smaller than 8 KB.

    -or-
  • You are running Windows on a very large hard disk that has a default Windows cluster size of 32 KB.

RESOLUTION

To resolve these problems, upgrade your Windows operating system to Microsoft Windows XP or later.

WORKAROUND

To work around these problems, do one of the following, as appropriate to your situation:
  • Contact the manufacturer of the third-party hard disk tool for information about an update to the software that resolves this problem.

    For more information about hardware and software vendor contact information, visit the following Microsoft Web site: http://support.microsoft.com/gp/vendors (http://support.microsoft.com/gp/vendors)
  • Repartition your large hard disk into smaller partitions.

    For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
    255867  (http://kbalertz.com/Feedback.aspx?kbNumber=255867/ ) How to Use the Fdisk Tool and the Format Tool to Partition or Repartition a Hard Disk

MORE INFORMATION

The standard FAT32 cluster size of 4,096 bytes applies only to hard disks that are smaller than 8 GB. The third-party hard disk tool may change the cluster size to 4,096 bytes per allocation unit.

The default cluster sizes are listed in the following table:
Collapse this tableExpand this table
Hard disk size Cluster size
512 MB to 8 GB4 KB
8 GB to 16 GB8 KB
16 GB to 32 GB16 KB
32 GB and larger32 KB

APPLIES TO
  • Microsoft Windows 98 Standard Edition
  • Microsoft Windows 95
  • Microsoft Windows 95
  • Microsoft Windows 98 Second Edition
  • Microsoft Windows Millennium Edition
Keywords: 
kb3rdparty kbenv kberrmsg kbprb KB229154
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Doris Beckman - magoY2k NOSPAM-AT-NOSPAM netscape.net Report As Irrelevant  
Written: 5/2/2006 6:23 PM
On the issue of DEFRAG009 and the inability to run ScanDisk or Defrag on a Windows 98 machine with enough memory (256 MB) to do the job. The issue is simple. Neither the ScanDisk nor the Defrag Windows utilities that came along with Windows 98 were designed to handle by default hard drives larger than 8 GB. Even if cluster size was chosen correctly when the hard drive was formatted, the selection might not work at all, and formatting the hard drive again will certainly erase all the work acumulated in the meantime. To avoid this problem, try the following solutions: 1) Upgrade to Windows XP 2) Repartition the hard drive with a program such as Partition Magic. If the OS and the main programs are left on a partition of 8GB or less, then the utilities should be able to defragment the smaller sized partition (i.e., defragmenting small individual partitions of 8 GB instead of trying to defragment a large 80 GB hard drive with a single partition). The disadvantage here is that there is a limit to the number of partitions that the OS can handle on a large hard drive. 3) If upgrading to Windows XP is not an option (this would be the case when using older peripheral hardware for which the manufacturers never released Windows XP software drivers to make those older products compatible with Windows XP), then remove the current hard drive carefully and procure and install an (older) smaller hard drive (such as a Western Digital 10GB drive). Format this smaller sized drive as usual and load the OS on it. The other (bigger-sized) hard drive can still transfer its information from a hard drive kit case (such as those manufactured by ADS) by simple connection through the USB port. In order to do perform this last action, keep in mind that these hard drive kit cases where you simply install the older drive and connect it to a USB port will only work with USB 2.0. This means that this procedure will only be useful with Windows 98 Second Edition (Windows 98 First Edition could only handle USB 1.1). A simple way to defragment with this option is to simply transfer all of the files from one large directory to the bigger-sized hard drive, cutting it out from the hard-drive installed on the PC. Transferring the directory with all of its files back to the PC through the USB port will be done in a compact way providing en-route defragmentation.