If the disk is acting up or slowing down the computer, it may be a data corruption issue, in which case DiskPart can assist.
On Windows 11, you can use the Check Disk (chkdsk) tool to scan and repair logical errors on a drive; however, if the Task Manager still shows 100% active time on a drive, you are still unable to access it, or you notice other issues, you may have a data corruption problem that DiskPart can resolve.
DiskPart is a command-line utility for managing drives on a computer. Normally, you'd use the tool to set up a storage device, but if you're experiencing trouble, you can use it to clean and repair the drive. Of course, this assumes you're dealing with a logical problem rather than a hardware issue.
Clean and repair the drive with DiskPart on Windows 11.
Steps to follow:
- Click Start on windows 11
- Search Command Prompt and right click it and Run as administrator

3.Type and enter "diskpart" in the Command prompt window

4. Then type the "list disk" and enter

5. The list disk command lists you out all storage devices connected in the computer, from the list select the drive which you want to clean, for that type the command "select disk 2" Make sure you the drive number, if you make error in selection of drive, all data will be lost from the drive
Here I select the drive Disk 2


6. Then type and enter the command "clean" this command clean and delete all the data and hidden information from the drive which is selected.

7. Type the following command "Create partition primary" to create a primary partition and press Enter

8. Now select the cleaned partition and make it active for that type the command "select partition 1" enter then next type the command "active"

9. Now format the drive and make it usable, type and enter the command "format fs=ntfs quick"

10. Now type "exit" and enter to quit the diskpart utility

Now your drive is ready to use