Do not execute the command on a ssd or m2 drive! It will slower your speed.
You can increase the boot performance on a mechanical harddisk by using the command “defrag”. Simply open a command prompt with admin rights and execute:
|
1 |
defrag c: /B /U |
You get following output:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
Invoking boot optimization on (C:)... Analysis: 100% complete. Pre-Optimization Report: Volume Information: Volume size = 1,81 TB Free space = 178,22 GB Total fragmented space = 12% Largest free space size = 6,37 GB Note: File fragments larger than 64MB are not included in the fragmentation statistics. Unknown Operation: 0% complete... Performing pass 1: Eviction: 100% complete. Defragmentation: 100% complete. Free Space Consolidation: 100% complete. Performing pass 2: Eviction: 100% complete. Defragmentation: 100% complete. Free Space Consolidation: 100% complete. Performing pass 3: Eviction: 100% complete. Defragmentation: 100% complete. Free Space Consolidation: 100% complete. Performing pass 4: Eviction: 100% complete. Defragmentation: 100% complete. Free Space Consolidation: 100% complete. Performing pass 5: Eviction: 100% complete. Defragmentation: 100% complete. Free Space Consolidation: 100% complete. Performing pass 6: Eviction: 100% complete. Defragmentation: 100% complete. Free Space Consolidation: 100% complete. The operation completed successfully. Post Defragmentation Report: Volume Information: Volume size = 1,81 TB Free space = 178,22 GB Total fragmented space = 5% Largest free space size = 100,47 GB Note: File fragments larger than 64MB are not included in the fragmentation statistics. |
Here are the commands of defrag.exe:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
C:\>defrag /? Defrag <Volumes> <Operations> [<Options>] Volumes: /C | /AllVolumes On each volume run only the preferred operations from the given list of operations. /E | /VolumesExcept <volume paths> Perform all the given operations on each volume except. those specified. If the exception list is empty, this behaves as /AllVolumes. volume paths Specifies the drive letter followed by a colon, mount point or volume name. More than one volume can be specified. Run all the given operations on each specified volume.. Operations: /A | /Analyze Perform analysis. /B | /BootOptimize Perform boot optimization to increase boot performance. /D | /Defrag Perform traditional defrag (this is the default). On a tiered volume, traditional defrag is performed only on the Capacity tier. /G | /TierOptimize On tiered volumes, optimize files to reside on the appropriate storage tier. /K | /SlabConsolidate On thinly provisioned volumes, perform slab consolidation to increase slab usage efficiency. /L | /Retrim On thinly provisioned volumes, perform retrim to release free slabs. On SSDs perform retrim to improve write performance. /O | /Optimize Perform the proper optimization for each media type. /T | /TrackProgress Track progress of a running operation for a given volume. An instance can show progress only for a single volume. To see progress for another volume launch another instance. /U | /PrintProgress Print the progress of the operation on the screen. /V | /Verbose Print verbose output containing the fragmentation statistics. /X | /FreespaceConsolidate Perform free space consolidation, moves free space towards the end of the volume (even on thin provisioned volumes). On tiered volumes consolidation is performed only on the Capacity tier. Options: /File <file path 1> <file path 2> ... <file path n> Available only with Defrag. This is to defrag only selected files, specify muptiple file paths seperated by space. Wildcards may be used to defrag multiple files. /FileList <listfile path> Available only with Defrag. This file conatins the list of files (wildcards are supported) to be defragmented. /H | /NormalPriority Run the operation at normal priority (default is low). /I | /MaxRuntime n Available only with TierOptimize. Tier optimization would run for at most n seconds on each volume. /LayoutFile <file path> Available only with BootOptimize. This file contains the list of files to be optimized. The default location is %windir%\Prefetch\layout.ini. /M | /MultiThread [n] Run the operation on each volume in parallel in the background. For TierOptimize, at most n threads optimize the storage tiers in parallel. Default value of n is 8. All other optimizations ignore n. /OnlyMetadata Available only with Defrag. This is to defrag only certain metadata files (like MFT and USN Journal) of each volume. The default behavior of Defrag operation will ignore the above metadata files. This option is supported on NTFS volumes only. /OnlyPreferred When volumes are specified explicitly, defrag performs all the given operations on each specified volume. This switch lets defrag run only the preferred operations, from the given list of operations, on each specified volume. /Simple Available only with Defrag. This is to run simple defrag only. Examples: Defrag C: /U /V Defrag C: D: /TierOptimize /MultiThread Defrag C:\mountpoint /Analyze /U Defrag /C /H /V |
