How to Optimize and Defragment Drives in Windows 10

Improving your PC’s performance is very important for proper functioning and to help with this Windows 10 performs disk defragmentation once a week for hard drives. By default, disk defragmentation runs automatically on a weekly schedule at a particular time set in automatic maintenance. But this doesn’t mean that you can’t manually optimize or defrag your drives on your PC.

Now Disk defragmentation re-arranges all the pieces of data that are spread across your hard drive and stored them together again. When the files are written to disk, it is broken into several pieces as there is not enough contiguous space to store the complete file; hence the files become fragmented. Naturally, reading all these pieces of data from different places will take some time, in short, it will make your PC slow, long boot times, random crashes and freeze-ups etc.

Defragmentation reduces file fragmentation, thus improving the speed by which data is read and written to disk, which ultimately increases the performance of your PC. Disk defragmentation also cleans the disk, thus increasing the overall storage capacity. So without wasting any time, let’s see How to Optimize and Defragment Drives in Windows 10 with the help of the below-listed tutorial.

Contents

How to Optimize and Defragment Drives in Windows 10

Make sure to create a restore point just in case something goes wrong.

Method 1: Optimize and Defragment Drives in Disk Drive Properties

1. Press Windows Key + E to open File Explorer or double-click on This PC.

2. Right-click on any hard drive partition you want to run defragmentation for, and select Properties.

3. Switch to Tool tab then click on “Optimize” under Optimize and defragment the drive.

4. Select the drive for which you want to run defragmentation and then click the Analyze button to see if it needs to be optimized.

Note: If the drive is more than 10% fragmented, then it should be optimized.

5. Now, to optimize the drive, click the Optimize button. Defragmentation can take some time depending upon your disk’s size, but you can still use your PC.

6. Close everything, then restart your PC.

This is How to Optimize and Defragment Drives in Windows 10, but if you are still stuck, then skip this method and follow the next one.

Method 2: How to Optimize and Defragment Drives in Windows 10 Using Command Prompt

1. Open Command Prompt. The user can perform this step by searching for ‘cmd’ and then press Enter.

2. Type the following command into cmd and hit Enter:

defrag drive_letter: /O

Note: Replace the drive_letter with the drive letter of the drive you want to run disk defragmentation. For example to optimize the C: drive the command would be: defrag C: /O

3. Now, to optimize and defrag all your drives at once use the following command:

defrag /C /O

4. The defrag command supports the following command-line arguments and options.

Syntax:

defrag | /C | /E [] [/H] [/M [n] | [/U] [/V]] [/I n] Where is omitted (traditional defrag), or as follows: /A | [/D] [/K] [/L] | /O | /X Or to track an operation already in progress on a volume: defrag /T

Parameters:

Value Description
/A Perform analysis on the specified volumes.
/B Perform boot optimization to defrags the boot sector of the boot volume. This will not work on an SSD.
/C Operate on all volumes.
/D Perform traditional defrag (this is the default).
/E Operate on all volumes except those specified.
/H Run the operation at normal priority (default is low).
/I n Tier optimization would run for at most n seconds on each volume.
/K Perform slab consolidation on the specified volumes.
/L Perform retrim on the specified volumes, only for an SSD.
/M [n] Run the operation on each volume in parallel in the background. At most n threads optimize the storage tiers in parallel.
/O Perform the proper optimization for each media type.
/T Track an operation already in progress on the specified volume.
/U Print the progress of the operation on the screen.
/V Print verbose output containing the fragmentation statistics.
/X Perform free space consolidation on the specified volumes.

This is How to Optimize and Defragment Drives in Windows 10 using Command Prompt, but you can also use PowerShell in place of CMD, follow the next method to see How to Optimize and Defragment Drives using PowerShell.

Method 3: Optimize and Defragment Drives in Windows 10 Using PowerShell

1. Type PowerShell in Windows Search then right-click on PowerShell from the search results and select Run as Administrator.

2. Now type the following command into PowerShell and hit Enter:

Optimize-Volume -DriveLetter drive_letter -Verbose

Note: Replace drive_letter with the drive letter of the drive you want to run disk defragmentation.

For example to optimize the F: drive the command would be: defrag Optimize-Volume -DriveLetter F -Verbose

3. If you want first to analyze the drive, then use the following command:

Optimize-Volume -DriveLetter drive_letter -Analyze -Verbose

Note: Replace drive_letter with the actual drive letter, ex: Optimize-Volume -DriveLetter F -Analyze -Verbose

4. This command should only be used on an SSD, so only proceed if you’re sure that you are running this command on an SSD drive:

Optimize-Volume -DriveLetter drive_letter -ReTrim -Verbose

Note: Replace drive_letter with the actual drive letter, ex: Optimize-Volume -DriveLetter D -ReTrim -Verbose

5. Reboot your PC to save changes.

Recommended:

That’s it you have successfully learned How to Defer Feature and Quality Updates in Windows 10 but if you still have any queries regarding this tutorial then feel free to ask them in the comment’s section.

Sign up and earn $1000 a day ⋙

What should I do if Netflix is ​​hacked?

What should I do if Netflix is ​​hacked?

What should I do if my Netflix account is hacked? What should I do if my Netflix account is hacked? Here's what you need to know when your Netflix account is hacked.

Tips for using LDPlayer you may not know

Tips for using LDPlayer you may not know

Tips for using LDPlayer you may not know. LDPlayer is one of the most popular Android emulators on computers today. This article will provide it to you

Shortcuts in Blender that users need to know

Shortcuts in Blender that users need to know

Shortcuts in Blender that users need to know. Blender shortcuts help you work faster when designing graphics. Therefore, WebTech360 will synthesize the keys for you

Kahoot hacking tips you may not know

Kahoot hacking tips you may not know

Kahoot hacking tips you may not know, how to hack Kahoot to get answers to difficult questions? This article will suggest you some of the simplest Kahoot hacks.

What is Google TasksBoard?

What is Google TasksBoard?

What is Google TasksBoard?, Google TasksBoard is a new task management app, helping you increase work efficiency. Let's learn with Donwload.vn how to use Google TasksBoard

Is Google Takeout a good data backup option?

Is Google Takeout a good data backup option?

Is Google Takeout a good data backup option?, Google Takeout comes from a line of free services from Google. Google says it will help users download it

Host permissions and how to specify co-host in Zoom

Host permissions and how to specify co-host in Zoom

Host rights and how to designate co-host in Zoom. How to regain host rights on Zoom is not difficult. This article will introduce you to host and reclaim host details

6 steps to become a Pinterest expert

6 steps to become a Pinterest expert

6 steps to become a Pinterest expert, Pinterest is a tool for collecting, organizing, and sharing photos and videos you glean from the Internet. Here are 6

3 ways to edit sunsets in Photoshop

3 ways to edit sunsets in Photoshop

3 ways to edit sunset in Photoshop, Sunset is always a scene that every photographer wants to capture. However, taking sunset photos is not easy. Wear

Convert text to speech online

Convert text to speech online

Convert text to speech online. If you want to listen to the pronunciation on Google Translate or Google Translate, users can download this voice to your computer easily.

(2024) The Best Free Cloning Software for Windows 10/11

(2024) The Best Free Cloning Software for Windows 10/11

Are you looking for the free cloning software for Windows 10? This passage will share you the best free Windows 10/11/7 cloning software in 2024.

Steps to create a new database in Access

Steps to create a new database in Access

Steps to create a new database in Access, Steps to create a new database in Microsoft Access are not difficult. This article will guide you in detail on the steps to build muscle

3 ways to save files better on your computer

3 ways to save files better on your computer

3 better ways to save files on your computer, How to save files on your computer is not difficult. However, what is the best way to save on the computer? Let's find out with Dowload.vn

10 poems for the first day of school in 2023 - 2024

10 poems for the first day of school in 2023 - 2024

10 poems for the opening day of school in 2023 - 2024, TOP 10 short and unique poems for the opening day of the new school year. We invite you to follow along!

Things you should do first when buying a Samsung smartphone

Things you should do first when buying a Samsung smartphone

Things you should do first when buying a Samsung smartphone, Samsung phones contain a lot of applications and settings. Here are the settings you should do when

The easiest ways to create borders for photos

The easiest ways to create borders for photos

The easiest ways to create borders for photos, Adding frames to photos is not difficult and you have a lot of options. This article will summarize for you ways to add frames to beautiful photos

Office 2021 vs. Microsoft 365: Which software is right for you?

Office 2021 vs. Microsoft 365: Which software is right for you?

Office 2021 vs. Microsoft 365: Which software is right for you?, Office 2021 and Microsoft 365 can both meet office editing tasks. So Office 2021

Gemini - Googles artificial intelligence model

Gemini - Googles artificial intelligence model

Gemini - Google's artificial intelligence model, Google launches Gemini - an artificial intelligence model competing with OpenAI's GPT-4, this is an artificial intelligence model

What is rendering?

What is rendering?

Rendering is the process of creating an image from a model into a movie scene or image using computer software.

What is CPU? What are the popular CPU types today?

What is CPU? What are the popular CPU types today?

The CPU is the data processing center, or simply understood, it is the brain that controls most of the rest of the components in a computer.