- MAXIMUMpcguides – Windows Vista tips, tricks, help, and how-to guides - http://maximumpcguides.com/windows-vista -
Using Windows Vista Disk Defragmenter
Posted By Brent Trahan On June 26, 2007 @ 8:45 am In All, Maintenance, Vista, Windows | 3 Comments
Your computer is only as fast as its slowest link. The slowest link on a computer is its hard drive [1]. When Windows saves files it can get sloppy and split files up into pieces across the hard drive fragmenting them. When Windows accesses those fragmented files your hard drive it has to work extra hard to pick up all the fragmented parts of the files across the entire disk which slows your computer down.
The disk defragmenter takes fragmented files and puts them back together so that the hard drive doesn’t have to work as hard to get them.
By default Windows Vista’s Disk Defragmenter automatically defragments your hard drive(s) on a schedule for you. A normal computer user should never have to deal with the disk defragmenter in Windows Vista. Power users might find the command line defragmenter and its switches useful though.
Note: I don’t suggest buying a third party disk defragmenter [2]. The reason is the disk defragmenter included with Windows Vista takes many things into consideration when defragmenting your hard drives like file shadowing, backups, and many more. It might takes longer to defragment your hard drive using the included version, but it helps your computers overall speed in the long run.
You can also defragment your hard drive(s) at any time by clicking Defragment now.
The command line version of Disk Defragmenter uses the exact engine as the GUI (regular) version but you have finer control of the defragmenter.
To use the command line version of Disk Defragmenter type defrag c: in the command prompt (with c: being the drive you want to defragment).
Switches
The command line version of Disk Defragmenter becomes much more powerful and flexible when you add switches to the defrag command. Below are switches that can be used when running the defrag command.
-c Defragments all drives.
-a Analyses the drives and gives you a report. It doesn’t defragment the drives.
-r Only defragments files that are smaller than 64MB in size. This is the default setting of the Disk Defragmenter. Microsoft research shows that there’s no performance gain when defragmenting files larger than 64MB in size.
-w Defragments all files regardless of size.
-f Forces Disk Defragmenter to defragment drives with less than 15% of hard drive space left.
-v Display a complete (verbose) report.
Examples:
defrag –c –w –f –v Defragments all hard drives and all files regardless of file size even if there is less than 15% of hard drive space left and gives a detailed report after.
defrag c: -w Defragments all files regardless of file size on the C: drive.
Article printed from MAXIMUMpcguides – Windows Vista tips, tricks, help, and how-to guides: http://maximumpcguides.com/windows-vista
URL to article: http://maximumpcguides.com/windows-vista/using-windows-vista-disk-defragmenter/
URLs in this post:
[1] hard drive: http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26rs%3D172282%26sort%3Dpmrank%26ref%255F%3Dsr%255Fst%26keywords%3Dhard%2520drive%2520internal%26bbn%3D172282%26qid%3D1246310350%26rh%3Dn%253A172282%252Cn%253A%2521493964%252Ck%253Ahard%2520drive%2520internal%26page%3D1&tag=comptorials-20&linkCode=ur2&camp=1789&creative=390957
[2] third party disk defragmenter: http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26rs%3D229534%26sort%3Drelevancerank%26ref%255F%3Dsr%255Fnr%255Fn%255F0%26keywords%3Ddisk%2520defragmenter%26bbn%3D491286%26qid%3D1246310488%26rnid%3D491286%26rh%3Di%253Aaps%252Ck%253Adisk%2520defragmenter%252Ci%253Asoftware%252Cn%253A229534%252Cn%253A%2521491286%252Cn%253A229672&tag=comptorials-20&linkCode=ur2&camp=1789&creative=390957
[3] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/06/disk-defragmenter1.PNG
[4] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/06/disk-defragmenter2.PNG
Click here to print.
Copyright © 2008 MAXIMUMpcguides Windows Vista. All rights reserved.