Thank you Thomas and all who participated in this past week's Q&A!
Jim, I hope Thomas’s winning answer and the honorable mentions this week gives you some great insight to solving your two issues. If you have any other questions, please join us in this discussion below.
Members, like always if you have more questions, or additional advice, by all means feel free to post below in this thread. The more we discuss the more we learn--it’s all up to you as a community to contribute.
Thanks again everyone!
-Lee Koo
CNET Community
Question:
I run Windows XP Pro and am experiencing a couple of problems with my computer. I use Windows Update regularly. After doing an update, I usually defrag the hard drive. However, I now receive a message saying that the hard drive cannot be
defragged. What is the cause of this, and how can I solve the problem?
Submitted by: Jim H.
Answer:
Defrag issues:
The defrag problem can have numerous possible causes. Also, there's more than one issue going on here (and a lot of the answer depends on how your system was built to begin with). So, we’ll tackle these problems one at a time. A couple of scenarios could cause you to be unable to defrag your hard drive, and each of them is very specific.
1. The main key here is that you said this happened after you did an update. The best way to see if it was that particular Windows XP Hotfix is to uninstall the actual Hotfix that caused the issue. To achieve this, go to Start > Setting > Control Panel > Add/Remove Programs and scroll down to find the Hotfix that is under suspicion and uninstall it, then reboot the computer and try to run defrag again.
If you aren’t sure which one it was, you will have to do this process multiple times until the computer is back to normal. You can always go back to Windows Update and download them again if you inadvertently removed one that was not causing the issue.
NOTE: It is a BEST PRACTICE to download updates one at a time to avoid this issue in the future. Be sure to read the known issues with Windows Service Pack 2, before you update to that. Windows provides a lot of information at this webpage: WINDOWS SERVICE PACK 2:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;windowsxpsp2
2. Another common issue that causes you not to be able to defrag a hard drive is if you have “ bad sectors” on your hard drive. Bad Sectors are areas on the actual hard disk that is either physically failing or has bad data written to it. It used to be detected & fixed by Scandisk on previous versions of Windows, but has been replaced by “Checkdisk” on Windows XP.
CHECKDISK: Goto My Computer, Right-Click the hard drive you want to check, select Properties > Tools then under Error Checking click the “Check Now” button. A dialogue box opens, select Fix File System Errors and click Start. This can take a while, so be patient.
NOTE: If the drive that you want to fix is the system drive, there will be open files on the drive. You will see a dialog box announcing that the utility needs exclusive access to operate and can't gain that access unless you re-start your computer. Click Yes.
XP will re-start in character mode, meaning that you can't do anything other than run the utility. Unless you strike any key within ten seconds of seeing the restricted boot message, Check Disk will run. After Check Disk has finished, you will either see Disk Check Complete (no errors) or a list of errors and repairs.
IF for some reason you are unable to perform this task, boot into SAFE MODE (Reboot > Press F8 repeatedly, immediately after restarting until a screen opens giving the option to boot to safe mode).
3. If you have upgraded your computer from a previous version of Windows (ie: ME or Win98) and did not choose to convert your filing system to a NTFS, then you are limited by the space that Windows needs to complete the job. If your hard drive has less than 15% space remaining then you would run into this issue.
If you would like to convert your system to NTFS, Microsoft provides a utility in Windows XP and a detailed explication on the procedure here:
Microsoft KB Article: 314097 http://support.microsoft.com/default.aspx?scid=kb;en-us;314097
Because there are so many things that can contribute to these issues, I would encourage you to keep us posted on whether or not this fixed your problems. A lot of this are the 1st steps in diagnosing an issue and may require further steps to COMPLETELY fix your system. I hope this helps with your situation. IF you followed all the steps above and are still having issues, then I would encourage you to reply to the submissions and I can help you further diagnose your particular problem.
Keep it BetterBuilt!
Best of luck,
Submitted by: Thomas L. of Silverton, Oregon, USA
****** HONORABLE MENTIONS**********
Answer:
Hello Jim,
Defrag might not be working because of corrupted files. Press Start, Run ,type in chkdsk /f and press enter. A window will appear wanting to know if you want to schedule a chkdsk. Press y click ok or press enter. When you reboot your system the windows check disk will start and try to fix itself. That should take care of structural errors.
Defrag might not work because there is less than 15% free space on your hard drive. Move files to another drive or medium if you have them or delete enough to get the 15% free. If defrag cannot proceed because too many files are in use. You could try to defrag in safe mode... To enter safe mode reboot and hold down the f8 key. Then defrag.
Submitted by: Bob D.
**********************************************************************************
Answer:
In my past experience with WinXP Pro, the Hard Drive "C" will no defrag it it has corrupted files, errors on disk, or missing files. There are several ways to try and correct this.
1. You may want to run a "Check Disc". To do this, double click "my computer" on your desktop, then right click "Local Disc "C" and go to "Properties". Right click "Properties" and go to the "Tools Tab". Put a check mark in the "Automatically Fix System Errors" and the "Scan for and Attempt to Recover Bad Sectors". You will then restart your computer and the computer will run a
disc repair upon restarting. ***(Disable You Firewall & Antivirus When Running This Program)***
2. You may also want to run a "File Protection Scan" if you are missing any files. To do this Insert you WinXP disc into your readable drive ( "D" ) . (If the disc starts to run select the EXIT tab) Go to the "Start" "Programs" & "Run". Type sfc /scannow in the "Run" menu. This will replace any missing files that you may be missing.
3. If the top three solutions do not work you may want to run a Hard Drive Diagnosis scan which is usually done by running a check with a program that the Hard Drive manufacturer supplied when you purchased the disk. If you do not have a Diagnose program with your hard drive you more than likely can download a diagnosis program from the manufacturers web site.
After trying each program listed above try and defrag the hard drive after each step. The cause of this is usually for the reasons I stated above such as missing dlls, files, or bad sectors in your hard drive. This is not unusual and will happen if the hard drive becomes severely defragged.
To help avoid this from reoccurring there is a fine DEFRAGING SOFTWARE PROGRAM called "Diskeeper 8" and works well for keeping your hard drive in healthy optimized shape.
Submitted by: Richard G.
**********************************************************************************
Answer:
Generally, this means that there is an insufficient amount of free space on the hard drive for disk defragmenter to work. One way of making space is to empty the recycle bin, as well as using the disk cleanup wizard (programs/accessories/system tools/ disk cleanup) to further clear your drive of unused or unnecessary files. After these tasks I like to restart my computer. Then try using the defragmenter again.
Submitted by: Mike M.
Bingo! Mike M hit the nail with an answer that I have found most often while helping other users. In many cases they have partitioned and not left enough free space on their OS drive. Then, after adding a patch or other 'ware, they don't have the necessary 15%.
YES - I've had that problem. When we partitioned off our new XPpro machines I couldn't find much info/advice on how much the OS needed. We prefer the OS on it's own partition so we gave it a shot at 7G - wasn't enough - needs more like 10G because we also load system specific drivers and apps there (modem, video, protection apps, maintenance apps, etc). The biggest thing here is to move the pagefile.sys off of the OS partition (set in your preferences). I load all my programs on a PROGRAM partition, as with a GAME partition and keep another partition as an open SCRATCH drive for virtual memory and scratch space for memory intensive apps like Photoshop, Illustrator and 3DMax which all have to be specifically set in the APP preferences dialogs.
well another way to convert to ntfs though windows XP is to goto Start>run
then type "cmd" without the quotes
at the command prompt type: convert <drive letter> /fs:ntfs
Example "convert c: /fs:ntfs" without the quotes
I agree with Thomas that I hope Jim keeps us posted on this problem.
A good response Thomas. There are a lot of issues here and you seem to have covered them well.
Mark
There is another cause. It happens sometimes that the system needs more free space to defrag. Even more than what it says. If you have a lot of e-mails you can have a huge file which contains all the e-mails. This file grew little by little, so it could be highly fragmented all over the disk. Defrag need to have a contigous place free of the size of that file. If your disk has not this free place, defrag does not defrag the file. You need to make more free space, or user a special defrag software which can defrag also if there is not enough contigous free space, or move this file on another disk / defrag / put again the file. Try also do make more defrag than one.
Defrag is good, but it is also important to check that all the disk is ok also the empty place, because otherwise a file can be moved by defrag in a place which is not well. The move of the file can happen without error but the read of the file could produce an error.
I found this to be a very interesting topic and wish to contribute to the mix.
One item not touched on was that this defrag issue, as addressed, is for a workstation-like machine and not a server. Addressing server-level defrags for windows machines is a whole other issue that I've dealt with but have little real experience with (maybe a good topic for another day, hmmmm).
Workstation-level PC's, laptops and personal computers at home seem to have been the basic focus for your question and answers. I've owned my own laptop for a number of years now and certainly defragmenting the hard drive is essential to continuing smooth operation.
I've discovered that the more processes executing in memory, the more files that are marked/locked busy on the system drive and thus those files cannot be defragmented. To deal with this issue, I save all data, close all applications, 'exit' all tools in the system tray to nicely and cleanly close them down and then I've experimented with killing off processes through task manager until I've the absolute bare minimum running. Be aware that there are processes under XP (svchost is one example) where you kill the process and it initiates an unstopable 60-second process resulting in the system shutting down (or rebooting). When this happens, you need to essentially resume at killing off processes again and then initiate the defrag(s).
I regularly scan my system with antivirus and Ad-Aware to ensure it is clean, so these are operations that are not strictly defrag related, but ultimately can have a positive impact. So, another point is that before I kill off my Ad-Aware and Symantec Anti-Virus utilities, I disconnect the cable for my internet connection as well to prevent any communications (good or bad) that would interfere. These are among the tools I gracefully exit.
It was mentioned about running chkdsk/scandisk, and I totally agree. In my experience with machines from Windoze for Workgroups 3.11 through XP Pro---scanning the drive BEFORE defragging is essential. As a preliminary step to any defrag, I always execute a complete check of the disk, via reboot, immediately beforehand to ensure the integrity of the drive/drives. The other benefit from this drive check at reboot, is that before you defrag your system you've cleanly booted your system. I've found that attempting to defrag a system drive after you've been using it for a while has resulted in some files becoming corrupt during a defrag. I've attributed this to the natural (built-in?) instability in Micro$loths OS.
Another interesting point is for those of us with multiple partitions on our hard drive, as well as those of us with secondary (or more) drives. I've an external hard drive connected via USB 2.0, as well as two partitions on the internal drive on my laptop. These facilitate seperating applications and data and give me a live backup capability. What is pertinant here is that the most important drive to defrag is the system (C:\) drive, and then to make sure you remember the other drives as well.
I use Symantec's SpeedDisk to defrag my internal drives and Micro$loths defrag (under Accessories->system tools) to defrag my external drive.
In my experience, and I don't completely understand why, Symantec's SpeedDisk that comes with System Works 2004 (and 2005 version) takes DAYS to defrag my external 250GB drive. It only has one partition, is set to compress all files and a number of the files are quite large (10+GB for virtual drives under VMware). The defrag that comes with XP will do a decent job in 5-6 hours.
Which leads me to another good point. Defragging, like full-system AVscanning, should be done regularly. The frequency of defragging is up to you, and based upon when you work, how often you work, and how MUCH work you do on your system. You may very well work 6 hours a day on your system, 7 days a week, but if most of that time is spent browsing the internet, with FEW downloads, few new/modified/deleted files, then defragging once a month is sufficient (I'm guessing). I do a LOT of work, in a bunch of applications, I'm adding, deleting and moving files and even whole directory structures around frequently, so I tend to defrag once a week (all of my drives). The point is to set a pace, schedule and frequency for yourself that is good and comfortable.
Related to this is the TIME it takes to defrag. The first time or two you do all these steps (or the ones you want to do)- notice the amount of time it takes from start to finish of the whole process. This will be a good guide for future efforts and thus you can plan your time accordingly. I'll do all the preliminary work for the AV scan and Ad-Aware scans usually in some down time (when I'm not going to be using my system) the day before, and then do the drive check and process killing-efforts before I go to bed at night, and then initiate the defrag and head to sleep. The next day I get up, and check for any errors or nasty-grams my lovely system has to offer.
As a final step to my defrag process, I shut my system down which lets the OS sync all those buffers to disk and remove power to the CPU giving it a chance to cool down for a moment and forget everything from memory that was there before. This leaves nothing hanging around in system memory to affect my next system startup. After a few minutes, I'll then power my system on, get it fully booted, log in as an Administrator and check my event logs for the "System" This is a good followup to ensure the drive check and defrag processes didn't cough and report any errors to the logs for my review.
Good luck and happy defragging!!!!! ![]()
Lee, Thomas was correct in point two about computers upgraded from 95/98/ME not having been converted from FAT32 to Native Transactional File System (NTFS). However, I've seen Dell laptops ship from the factory with Win2k & XP preloads formatted to FAT32, which I quickly
CONVERT C: /FS:NTFS
Cheers!
Dan Schwartz
Electrical Engineer
Cherry Hill, NJ
"Native Transactional" ???? Always figured it was just NT
NTFS: Native Transactional File System.
This is similar to the old OS/2 HPFS (High Performance File System) which was (were) cross-licensed with IBM back in 1992.
Hi. Where did that info about the meaning of "NT" come from?
When NT (and NTFS) was introduced, Microsoft said it stood for "new technology."
I recommend a newer program called Diskeeper for defragging, version 9pro is the latest. It often
works fine when the windows one doesn't and it always works better and faster in my experience.
Lee, most of the answers you received about defragmentation failing revolved around running CHKDSK, which is quite correct. Here's why:
The MoveFile() API, which is at the core of NT/2k/XP family's defragmenting, looks at the "Dirty Shut Down" flag on the volume it's asked to operate on. If the flag is set, then MoveFile doesn't work.
The defragmenter built into the 2k/XP MMC (Microsoft Management Console), AFAIK, however, doesn't indicate that it halted when there is an NTFS inconsistency. On the other hand, Executive Software's Diskeeper does indeed pop up an error dialog box if you attempt to defrag an inconsistent NTFS volume. [I don't remember if Raxco PerfectDisk does this as well.]
--> You can check the status of the NTFS volume consistency in the System portion of the Event Viewer.
Personally, I have a preference for Diskeeper http://www.executive.com since they developed the original NTFS defragger back in 1995 for NT 3.51: They actually wrote the MoveFile() API, which was patched into the NTFS kernel level driver, licensing that portion of the NT source code from Microsoft to make the changes.
In NT 4.0 Microsoft graciously built the MoveFile() API into the operating system, making it easier for Raxco and shareware vendors to build defraggers.
Finally, in NT5, [renamed Win2k just before release], Microsoft added in a basic defrag interface to the MMC, which is what the original questioner is using. However, they crippled the MMC version so as to not trample on Executive and Raxco: Remember, this was the timeframe of NetScrape vs Internet Exploder.
------------------------------
I recommend downloading the 30 day time-bomb versions of Diskeeper at: http://www.Diskeeper.com
and/or Raxco PerfectDisk at: http://www.Raxco.com
and give it/them a try (one at a time!), especially performing a boot-time defrag run to build a contiguous page file (PAGEFILE.SYS), and more importantly, defrag the MFT & MFT Reserved Zone. These files can't normally be defragged, since it's like trying to reweave the rug you're standing on.
Yours truly,
Dan Schwartz
Electrical Engineer
Cherry Hill, NJ
| Forum legend: | |
| Locked thread | |
| Moderator | |
![]() |
CNET staff |
![]() |
Samsung staff |
| Norton Authorized Support team | |
| AVG staff | |
| Windows Outreach team | |
![]() |
Dell staff |
| Intel staff | |