To use Disk Defragmenter you might need to be logged on as an administrator or a member of the Administrators group in order to perform some tasks.
Disk Defragmenter consolidates fragmented files and folders on your computer's hard disk, so that each occupies a single, contiguous space on the volume. As a result, your system can gain access to your files and folders and save new ones more efficiently. By consolidating your files and folders, Disk Defragmenter also consolidates the volume's free space, making it less likely that new files will be fragmented.
You can also defragment disks from a command line using the defrag command.
Open Disk Defragmenter.
- Notes:
- To open Disk Defragmenter, click Start, point to All Programs, point to Accessories, point to System Tools, and then click Disk Defragmenter.
For information about using Disk Defragmenter, on the Action menu in Disk Defragmenter, click Help.
- To open Disk Defragmenter, click Start, point to All Programs, point to Accessories, point to System Tools, and then click Disk Defragmenter.
Using Commands:
Syntax:
defrag volume -
- defrag volume [/a]
- defrag volume [/a] [/v]
- defrag volume [/v]
- defrag volume [/f]
- /a
Analyzes the volume and displays a summary of the analysis report.
- /v
Displays the complete analysis and defragmentation reports.
When used in combination with /a, displays only the analysis report. When used alone, displays both the analysis and defragmentation reports.
- /f
Forces defragmentation of the volume regardless of whether it needs to be defragmented.
- /?
Displays help at the command prompt.
- A volume must have at least 15% free space for defrag to completely and adequately defragment it. Defrag uses this space as a sorting area for file fragments. If a volume has less than 15% free space, defrag will only partially defragment it. To increase the free space on a volume, delete unneeded files or move them to another disk.
- You cannot defragment volumes that the file system has marked as dirty, which indicates possible corruption. You must run chkdsk on a dirty volume before you can defragment it. You can determine if a volume is dirty by using the fsutil dirty query command. For more information about chkdsk and fsutil dirty, see Related Topics.
- While defrag is analyzing and defragmenting a volume, it displays a blinking cursor. When defrag is finished analyzing and defragmenting the volume, it displays the analysis report, the defragmentation report, or both reports, and then exits to the command prompt.
- By default, defrag displays a summary of both the analysis and defragmentation reports if you do not specify the /a or /v parameters.
You can send the reports to a text file by typing >filename.txt, where filename.txt is a file name you specify. For example:
defrag volume /v >filename.txt
- To interrupt the defragmentation process, at the command line, press CTRL+C.
- Running the defrag command and Disk Defragmenter are mutually exclusive. If you are using Disk Defragmenter to defragment a volume and you run the defrag command at a command-line, the defrag command fails. Conversely, if you run the defrag command and open Disk Defragmenter, the defragmentation options in Disk Defragmenter are unavailable.
No comments:
Post a Comment