After investigating, I found that many reasons can cause DiskPart to encounter an error. When this occurs, your data might get lost from the certain disk. Therefore, this post is to offer you an effective way to recover data when this issue troubles you, as well as possible causes and solutions for such an error.

DiskPart Has Encountered an Error the Request Could Not Be Performed

Apart from the Windows built-in Disk Management, DiskPart is also a useful tool you can rely on to manage disks & partitions reasonably and fix errors in every Windows system.

  • The DiskPart has more functions and magic than most third-party partitioning wizards and its functions are even more powerful.
  • But it has an obvious disadvantage – it runs under the command prompt, which tends to cause many people to make mistakes because they are not familiar with DOS operations.

When there’s something wrong with the disk, DiskPart will strike. For instance, DiskPart has encountered an error is a frequently seen alert message. The results of the survey show that this error can be caused by a lot of reasons.

DiskPart has encountered an error

Here, in the following content of this article, I will show you how to recover useful data from the problematic disk with MiniTool Power Data Recovery – a professional data recovery program favored by plenty of computer users. Then, I will introduce and analyze the main causes for said hard disk error and give corresponding solutions.

Recover from DiskPart Has Encountered an Error

I will summarize 6 cases related to DiskPart has encountered an error problem in the next section. You can find the case that is similar to your situation and try to find solutions correspondingly. But in this section, I will first show you how to recover data from the defective disk.

Warning: Considering the fact that mistakes could be easily made during the disk error fix process (which may lead to data being overwritten), I strongly advise you to recover important data off the target drive at first.

How to Recover Data from Disk with Error

How to recover data from I/O device error or other types of errors?

The first step is definitely to download MiniTool Power Data Recovery.

Of course, you can download the trial edition to experience in advance. But keep in mind that the trial edition can only scan the disk and preview files; it cannot save the scanned data for you.

Free Download

The second step is to install and run the software, and then choose from Logical Drives and Devices from the main interface shown below (take the trial edition as an example).

select the most suitable option

The third step is to scan the drive on which the DiskPart has encountered an error shows up.

  • When running into the problem: DiskPart has encountered an error, you’ll receive an error message. It suggests that your disk is inaccessible, but it does exist. So at this time, you should select your hard disk under Devices tab. It's useful for deep scanning and recovering data from damaged, RAW or formatted drive.
  • Please select the target drive from the right pane and click on the Scan button in the lower right corner to search for the lost files.
  • In the lower right corner of above interface, there is a Scan Settings button in the left sidebar. It actually allows you to configure the scanning range to only specified file systems or file types. This will help you locate the needed files easily and quickly from the scan results in the next step.

Settings button

The fourth and final step is to pick out the needed files found by the data recovery software and click on the Save button to specify a storage path for them.

pick out the needed files to recover

Please add check marks to the square box in front of the File Name column (you can choose to check all files in a found drive or check only some of the files included in it).

Please note:

If there are too many files displayed in the scanning results, it could be difficult finding certain files. However, you can make things easier by using the Find function and Filter function that help you locate the needed files accurately by file name, file extension, file size, file creation date and modification date.

Recover Data Lost By DiskPart Clean – Complete Guide
Recover Data Lost By DiskPart Clean – Complete Guide

If you need to recover data lost by DiskPart clean, but have no experience, the software recommended in this page will be your great assistant.

Read More

Till now, I have shown you all the steps to recover data from an inaccessible drive; please follow the steps above carefully when DiskPart encounters an error.

Click to Tweet

How to Fix DiskPart Has Encountered an Error

Here are 6 most common cases of DiskPart has encountered an error. Each of them has different causes and solutions, so you should assess the situation that resonates with yours the most and take measures correspondingly to fix the error.


I have a hard drive that after attempting to dual boot ended up useless. I finally got some files off it and was ready to wipe it and start over. Windows 10 wouldn't install so I deleted everything, formatted entire drive, created new primary partition-still nothing. Using command prompts I cleaned the drive, created a new primary partition and tried to format it. After saying it was 100% completed, it said, “DiskPart has encountered an error: The parameter is incorrect.” I've tried clean all command for a more thorough job and gotten the same error. Hard drive test says it's good. Does anyone have any ideas? Thanks in advance for any help.– said by Superman1148 on Forum

What if you want to recover data from the volume does not contain a recognized file system error? Please read this:

The Volume Does Not Contain A Recognized File System - How To Fix
The Volume Does Not Contain A Recognized File System - How To Fix

When you meet “the volume does not contain a recognized file system” problem, you should resort to MiniTool Power Data Recovery.

Read More

How to fix the error? (The following steps are completed in Windows 10)

Solution 1: enable error-checking function.

  1. Open Windows Explorer to locate the target drive (how to fix when Windows Explorer needs to be restarted).
  2. Right click on the drive.
  3. Choose Properties from the context menu.
  4. Shift to the Tools tab.
  5. Find Error checking and click on the Check button.
  6. Choose to scan the drive.
  7. The disk check process will be started and finished automatically.


Solution 2: run the command chkdsk /f /r.

  1. Type cmd into the search box on taskbar (how to fix when Windows 10 taskbar is not working).
  2. Right click on Command Prompt from the search result.
  3. Choose Run as administrator.
  4. Choose Yes in the User Account Control window.
  5. Type chkdsk /f /r *: (“*” stands for the letter of the target drive).
  6. Press Enter on the keyboard.
  7. Wait for the completion of the check process.

run command

You can also use other methods to open cmd.exe.

Tip: The post Solved - The Parameter Is Incorrect tells more about the parameter is incorrect error, including the corresponding ways to fix the error and the methods for data recovery from parameter is incorrect.

DiskPart Has Encountered an Error: Access Is Denied

According to the investigation, the error – “DiskPart has encountered an error: Access is denied” – tends to appear when you use the DiskPart clean or format command to clear a USB drive. Those operations will not complete due to the interruption of this error.


Hello everyone! I've been trying to format a 32GB flash drive. I'm using DiskPart to format it but still have no success. I've been trying and trying, but I always encounter the same error. “DiskPart has encountered an error: Access is denied. See the System Event Log for more information”. I tried different commands to format it, but I still arrive at the same error. I am the admin, so I don't think that's the problem. Help me please! Thank you and have a nice day!– posted by laufing on Windows Seven Forums

How to fix this issue?

Solution 1: run the Command Prompt as administrator.

  1. Click on the Start button.
  2. Scroll down to find Windows Systems folder and expand it.
  3. Right click on the Command Prompt option.
  4. Choose More from the right-click menu.
  5. Select Run as administrator from the submenu.

run Command Prompt as administrator

Solution 2: remove the Write-Protection.

  1. Type run into the search box on taskbar.
  2. Choose Run from the search result.
  3. Type regedit into the text box.
  4. Press Enter on the keyboard or click on the OK button in the Run window to open Registry Editor.
  5. Expand Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR.
  6. Double click on the Start option from the right panel.
  7. Enter 3 in the dialog box.
  8. Click on the OK button to confirm.
  9. Close the Registry Editor.

remove Write-Protection

You can check the computer's event logs for more information as the error message suggests if you cannot find the exact cause of the problem.

Tip: This post tells more about the access is denied error and the corresponding solutions.

DiskPart Has Encountered an Error: I/O Device Error

This I/O device error could be caused by a lot of reasons:

  • The transfer mode or the disk interface is not appropriate.
  • The target device is damaged/defective.
  • The device connection is not successful (bad cable, poor connection or insufficient power supply).
  • The compact disk (CD/DVD) is dirty or damaged.


Hi everyone, I am trying to make a partition using command prompt. I need to partition the disks to be formatted in NTFS so I can install Windows 7 on my laptop. I've been doing this before and having no problem with my other laptops. It's my first time to encounter a problem. I'm on the step where I'll be creating a partition using cmd line. But it gives me an error message saying “DiskPart has encountered an error: The request could not be performed because of an I/O device error.” I hope someone could help me figure this out. Thanks in advance!– said by reynl07 on Tom’s Hardware Forum

How to fix this?

Solution 1: change transfer mode.

  1. Right click on This PC.
  2. Choose Manage.
  3. Select Device Manager from the left pane.
  4. Expand IDE ATA/ATAPI controllers in the right pane.
  5. Right click on the target channel responsible for I/O device error.
  6. Select Properties.
  7. Shift to Advanced Settings tab.
  8. Change the transfer mode to PIO Only.
  9. Click on the OK button to confirm.

change transfer mode

Solution 2: check hardware connections.

Please change a connection cable, USB port and a power supply respectively to see whether the problem can be fixed or not.

Solution 3: clean the surface of device.

If the error occurs on a USB flash drive, external hard drive or CD/DVD, please clear the dirt and stains from the surface properly.

Please follow the steps mentioned in Solution 2: remove the Write-Protection of the DiskPart Has Encountered an Error: Access Is Denied part.

DiskPart Has Encountered an Error: Data Error (Cyclic Redundancy Check)

The data error cyclic redundancy check can be the result of many factors, such as registry corruption, unsuccessful program installation, cluttered hard disk and misconfigured files.


I’m trying to do a clean install of Win7. I’m installing it through USB I have already deleted the hard drive using Darik's Boot And Nuke. When I try to create a partition from the command prompt it gives me an error “DiskPart Error: Data Error (Cyclic Redundancy Check)” see the system event log for more info.– posted by ed123 on Windows Seven Forums

How to fix this?

Solution 1: check disk.

Please see Parameter Is Incorrect error. Solution 1: enable error-checking function.

Solution 2: rely on chkdsk /f command.

  1. Run Command Prompt as administrator.
  2. Type chkdsk /f *: into the Command Prompt.
  3. Press Enter on the keyboard.
  4. Wait for the scan to complete.
  5. Restart computer at the end of the process.

run command

DiskPart Has Encountered an Error: The Device Is Not Ready

This error is mainly caused by two reasons: the disk has failed; the storage controller on your mainboard is corrupted.

How to fix?

Solution 1: run troubleshooter.

  1. Click on the Start button.
  2. Scroll down to find Windows System and expand it.
  3. Choose Control Panel.
  4. Type troubleshooting into the search control panel box or select Troubleshooting in the lower right corner when View by Small icons.
  5. Click on Configure a device under Hardware and Sound.
  6. Click on the Next button to detect problems.
  7. Wait for the detecting process and follow the suggestions that system offers you.

Configure a device

Solution 2: uninstall the USB controller.

  1. Right click on the Start button.
  2. Choose Device Manager.
  3. Find Universal Serial Bus controllers and expand it.
  4. Right click on the first USB controller.
  5. Choose Uninstall device.
  6. Click on the OK button in the pop-up window to confirm.
  7. Repeat this process to uninstall the rest USB controllers listed under Universal Serial Bus controllers.
  8. Restart the computer and retry DiskPart to see whether it works or not.

uninstall USB controller

DiskPart Has Encountered an Error: The System Cannot Find the File Specified

This error appears when the USB flash drive/SD card is damaged or corrupted and its file system may have turned into RAW.

Fix: “The system cannot find the file specified” on Windows 10.

How To Recover Data From RAW File System/RAW Partition/RAW Drive
How To Recover Data From RAW File System/RAW Partition/RAW Drive

With the powerful data recovery tool that will be introduced in this article, even an inexperienced user is able to recover data from RAW drive easily.

Read More

Click to Tweet


It is common to run into errors while running DiskPart. Here I have summarized the 6 types of situations that could cause a DiskPart error. For each case, I also analyzed the possible causes briefly as well as gave corresponding solutions to help you recover data and fix the DiskPart has encountered an error issue. Hope these solutions can help you solve your problem.

If you have any questions about DiskPart encountering an error, or if you have better solutions regarding this problem, please feel free to leave a message below.

  • Linkedin
  • Reddit