|
Defrag is short for "defragmenting", and
it's a process you run on your hard drive to help make it
faster. It's something you need to do periodically as files on
the disk becomes fragmented over time - hence the term
defragging, or defragmenting.
So what does it mean to be fragmented, and why does it get
worse over time?
Let's look at that, as well as how to defragment and how to
defragment automatically. To you and me, a file on your
disk is a single 'thing'. You open it, you work on it, you save
it; it's a single entity. Like, say, a book. To your computer,
however, a file is a lot more like a bunch of pages in that book
that it has to keep track of individually.
Let's briefly define a couple of concepts before we go further.
Under Windows a hard disk is nothing more than a collection of
information buckets called clusters. Each cluster is a fixed
size, typically 512 bytes or characters. When you create a file
on disk, Windows assigns enough clusters to the file to hold it.
So if your file is one byte long, it gets one 512 byte cluster.
If your file is 600 bytes, it gets two - one 512 bytes full, and
one with 88 bytes of data, and 424 bytes unused.
Clusters aren't required to be next to each other on the disk.
In fact, that's part of what the "Random" in "Random Access
Storage" means; data can be accessed and stored on the disk in
random places. So when Windows creates a file, it keeps track of
which clusters make up the file, wherever on the disk they might
be, and in which order they should go. Kind of like numbering
the pages in a book.
Now, imagine if you had the pages of a book randomly distributed
around your house. You know where they are and in what order to
read them, but you have to run all over the house as you get
each successive page.
That's a fragmented file. The clusters that make up the file are
scattered throughout the disk. The result is that when you
access the file, Windows has to race all over the hard disk to
retrieve the whole thing. That takes time.
If instead the pages of your book were all next to each other,
in order, then they'd be much easier to read. No need to run all
over. That's a defragmented file: all the clusters allocated to
the file are in order and physically next to each other on the
hard disk.
Files become fragmented because of the way clusters are re-used
and allocated on a hard disk. If you delete a file that takes up
two clusters, and then write a file that takes four then the new
file might be split - two clusters where the old file was, and
two clusters somewhere else entirely. Multiply that scenario by
thousands of file operations and deletions on your disk every
day, with much larger files, and you can see that fragmentation
can add up very quickly. The result is your machine gradually
slowing down.
Defragging your hard disk is easy. Right click on My Computer,
select Manage, and click on Disk Defragmenter. Click on the hard
disk you want to defrag, and click on the Defragment button.
Defragging can take time, but you'll be able to see the progress
as the graphical display of your hard disks state is
periodically updated.
Rather than doing it manually, though, if you leave your
computer on there's an easy way to schedule the defrag to happen
in the middle of the night.
|
|
Here is how to run a Defrag
1. Click on
Start, Programs, Accessories,
System Tools, Disk
Defragmenter.
2. Choose the drive
(usually the C Drive), you want to defragment, then choose
Defragment.
-or-
1. Open My
Computer.
2. Right-click the local disk volume that you want to
defragment, and then
click Properties.
3. On the Tools tab, click
Defragment Now.
4. Click Defragment.
|
The Disk Cleanup
tool helps you free up space on your hard disk by searching your
disk for files that you can safely delete. You can choose to
delete some or all of the files. Use Disk Cleanup to perform any
of the following tasks to free up space on your hard disk:
| • |
Remove temporary Internet files. |
| • |
Remove downloaded program files. For
example, ActiveX controls and Java applets that are
downloaded from the Internet. |
| • |
Empty the Recycle Bin. |
| • |
Remove Windows temporary files. |
| • |
Remove optional Windows components
that you are not using. |
| • |
Remove installed programs that you
no longer use.
|
Here is how to perform a Disk
Cleanup
| • |
Click
Start,
point to All Programs,
point to Accessories,
point to System Tools,
and then click Disk Cleanup.
-or-
|
| • |
Click
Start,
and then click Run.
In the Open
box, type
cleanmgr,
and then click OK.
|
|