On Windows 11, you can use the Check Disk (chkdsk) tool to scan and repair logical errors on a drive, but if the Task Manager continues to show one hundred percent active time on a drive, you’re still unable to access it, or you notice other problems, it could be a data corruption problem that you can resolve with DiskPart.
DiskPart is a command-line tool that allows you to manage drives on your computer. Usually, you would use the tool to set up a storage device, but if you’re having problems, you can use it to clean and repair the drive. Of course, assuming you are dealing with a logical problem, not a hardware issue.
This guide will teach you the easy steps to use DiskPart to revive a secondary hard drive on Windows 11.
Clean and repair drive with DiskPart on Windows 11
To erase and repair a hard drive on Windows 11 with DiskPart, use these steps:
-
Open Start on Windows 11.
-
Search for Command Prompt, right-click the top result, and select the Run as administrator option.
-
Type the following command to open Diskpart and press Enter:
diskpart
-
Type the following command to determine the drive to format and press Enter:
list disk
-
Type the following command to select the storage and press Enter:
select disk 3
In the command, replace “3” with the number of the flash drive you want to use.
-
Type the following commands to delete everything from the hard drive with the problem and press Enter:
clean
-
Type the following command to create a primary partition and press Enter:
create partition primary
-
Type the following command to select the new partition and press Enter:
select partition 1
-
Type the following command to make the selected partition active and press Enter:
active
-
Type the following command to make the hard drive bootable and press Enter:
format FS=NTFS quick
-
Type the following command to assign a volume and a drive letter for the drive and press Enter:
assign letter=X
In the command, change “X” for any available letter you want to use.
-
Type the following command to quit the tool and press Enter:
exit
Once you complete the steps, the drive will be erased, formatted, and mounted with the specified drive letter fixing the errors you may have experienced in the past.