Defragment your Hard Disk

Last update on June 3, 2009 10:05 AM by deri58
Published by computergroove1

Defragment your Hard Disk








Disk defragmentation is the process of gathering together the fragmented free spaces on your hard disk by compacting small files that have spread on your disk. This will allow your computer to process tasks at a faster speed.


Fragmentation occurs when the operating system is unable to allocate sufficient contiguous space to store a complete file as a unit and puts parts of it in gaps between other files (usually those gaps exist because they have previously stored file that has been deleted by the OS). Fragmentation can reduce the overall speed of your PC and decrease in performance

How to defragment your hard disk (Windows)


For Windows XP and other versions, the procedure is basically the same:
  • Double-click My Computer, right click on the disk to defragment and then click Properties.
  • Select the Tools tab and click Defragment Now

Using the command


It is also possible to run the defrag command line:
defrag c:-f


Tip: You can defragment faster forcing defragmentation pre-program:
1) Launch regedit
2) Go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce

3) Right-click in the right window, "New"> "value chain"
4) Name it "Defrag"
5) Double-click it and enter: Defrag.exe c:-f
6) Restart Windows and log in.

Defragment only a file or directory


It is not possible to defragment a single file or a directory with freeware Contig from Microsoft:


For example, to defragment a file:
contig myfile.iso

This is useful eg for burning or for vmware virtual machines.

Defragment a directory (and subdirectories):
contig-s c:\windows\*.*

Defragment all files on the disk in the background (it does not slow down the computer):
start/low contig-s c:\*.*
Best answers for « Defragment your Hard Disk » in :
How to increase the cache on your hard disk? Show How to increase the cache on your hard disk? A cache is a temporarily area of storage storing fequently accessed data for quick access. It is a very efficient tools used under windows vista and windows xp which is set as default under...
Sharing the hard disk on Windows Vista Show Sharing the hard disk on Windows Vista In Windows Vista, the following manipulations to be done to share a hard disk: Go to the file explorer (Windows Key + E). Right click on the hard drive (or partition) and then choose to share...
The logical structure of a hard disk Show The logical structure of a hard disk Introduction Logical Structure Sources Introduction When you use your computer, your data is organized in the form of files and directories, according to a tree structure and these are stored...
Enabling the Ultra DMA on an IDE hard disk ShowEnabling the Ultra DMA on an IDE hard disk Principle Getting started Implementation hdparm Principle Under Linux, the Ultra DMA mode is not enabled by default. hdparm is a utility included with most linux distributions,...
Formatting Your Hard Drive ShowFormatting Your Hard Drive Formatting and installing your Hard drive using the installation CD ] A hard disk drive is a non-volatile device mainly for data storage. Usually faster than any other storage device, this essential...
Sharing a hard disk under Windows Vista ShowSharing a hard disk under Windows Vista Please follow the steps below: Go to the file explorer (Windows Key + E). Right click on the hard drive (or partition) and then choose to share ... In the new window click the Security tab....
Download Disk Recovery Wizard ShowDisk Recovery Wizard is a tool to backup data. It allows to restore the damaged, corrupt and inaccessible data on a hard disk and even the formatting. A wizard guides you step by step to facilitate the operations. Disk Recovery Wizard supports any...
Download Ultimate Boot CD ShowUltimate Boot CD ( UBCD) is a CD bootable containing an outfit of tools which can show itself of a big utility when the system refuses to start: -Diagnosis hard disk (Maxtor, Seagate, Samsung, Digital Western and IBM). -Cloning of disk (g4u,...