How To Fix DiskPart Has Encountered An Error – Solved

Apart from the Windows built-in Disk Management, DiskPart is also a useful tool you can rely on in every system to manage disks and partitions reasonably and fix some errors. The DiskPart has more functions than most of the third-party partition magic and its functions are even more powerful. But it has an obvious shortcoming – it runs under the command prompt, many people who're unfamiliar with DOS operations ten to make mistakes.

Besides, 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, like parameter is incorrect, access is denied, I/O device error, media is write protected, etc.

DiskPart has encountered an error 1

Here, in the following content of this article, we'll introduce the main causes for mentioned hard disk error. We'll analyze them briefly and give corresponding solutions to help you recover useful data from the problematic disk with MiniTool Power Data Recovery – a professional data recovery program that is favored by a plenty of computer users.

Problem – DiskPart Has Encountered An Error

We will summarize 6 cases that belong to DiskPart has encountered an error. For each case, we'll give our explanation on the causes and corresponding solutions clearly. Please figure out the case that is the same as or similar to yours and then use related ways to try to fix disk error.

Before diving into the specific causes and solutions, we'd like to show you how to recover data from the defective disk. Considering the fact that you may make mistakes during the disk error fix process (which may lead to data overwriting), we strongly advise you to recover important data off the target drive at first.

How to Recover Data from Disk with Error

The first step is definitely getting a suitable license of MiniTool Power Data Recovery. Of course, you can download the free edition to try, but you should know that the free edition has a 1 GB data recovery limit. So please make your decision after analyzing your own situation.

The second step is selecting the most suitable functional module from the main interface shown below (take the free edition as an example).

DiskPart has encountered an error 2

When running into the problem: DiskPart has encountered an error, you'll probably receive the following error message:

a). parameter is incorrect
b). access is denied
c). I/O device error
d). data error (cyclic redundancy check)
e). the system cannot find the file specified
f). the device is not ready

All of those messages suggest that your disk is inaccessible, but it does exist. So at this time, you should click on the "Damaged Partition Recovery" module, which is used for deep scanning and recovering data from damaged, RAW or formatted partition.

The third step is selecting the partition you'd like to recover data from and clicking on "Full Scan" button in the lower right corner to search for the lost files.

DiskPart has encountered an error 3

Well, in the lower left corner of above interface, there exists 2 buttons – "Refresh" and "Settings". The first one allows you to refresh the partition list when the target drive is not showing up; while the latter one is able to help you configure the scanning range to only specified file systems or file types.

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

DiskPart has encountered an error 4

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).

If there are too many files displayed in the scanning results, the difficulty of finding certain files will be increasing. However, you don't need to be anxious since the "Find" function and "Filter" function are going to help you locate the needed files accurately by file name, file extension, file size, file creation date and modification date.

Till now, we have shown you all the steps to recover data from not accessible drive; please follow these steps carefully when hard disk error like data error cyclic redundancy check occurs.

Share With Others

Causes & Solutions – DiskPart Has Encountered An Error

The following 6 symptoms are the most common cases of "DiskPart has encountered an error". The causes and the solutions are not the same, of course. As a result, you ought to assess what kind of situation suits you the most and then take measures correspondingly to fix the error.

Case 1 – Parameter Is Incorrect

"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 Computing.net Forum

The error – "DiskPart has encountered an error: The parameter is incorrect." – occurs sometimes and we summarize the 2 most popular causes of this problem:

a). the file system of the target partition is corrupted;
b). the full volume encryption driver is changed in Windows.

Solutions:

1. Enable Error-checking Function.
Open Windows Explorer to locate the target drive -> right-click on the drive and choose "Properties" from the context menu -> shift to the "Tools" tab -> find "Error-checking" and click on "Check now" under it -> make sure "Automatically fix file system errors" option is checked and then click on "Start" button.

DiskPart has encountered an error 5

Then, the disk check process will be started and finished automatically.

2. Run the Command "chkdsk /f /r".
Type "cmd" into the search box -> right-click on "cmd.exe" from the search result -> choose "Run as administrator" -> type "chkdsk /f /r *:" ("*" stands for the letter of the target drive) -> press "Enter" in the keyboard.

DiskPart has encountered an error 6

Then, wait for the completion of the check process.

Tips: you can also use other methods to open cmd.exe.

recommend Top Recommendation

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.

Case 2 – Access Is Denied

"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

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. Of course, those operations can't be finished due to the error. But, you can try the following solutions to try to fix.

Solutions:

1. Run the Command Prompt as Administrator.
Click on the start button -> expand "All Programs" -> find "Accessories" folder and expand it -> right-click on the "Command Prompt" option -> choose "Run as administrator".

DiskPart has encountered an error 7

2. Remove the Write-Protection.
Click on the start button -> type "run" into the search box -> press "Enter" to see run window -> type "regedit" into the box -> press "Enter" in keyboard or click on "OK" button in the window to open "Registry Editor" -> expand "HKEY_LOCAL_MACHINE", "SYSTEM", "CurrentControlSet", "Control" and "StorageDevicePolicies" one by one -> double click on the "WriteProtect" key from the right panel and change the value to 0.

DiskPart has encountered an error 8

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

Case 3 – I/O Device Error

"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

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

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

Solutions:

1. Change Transfer Mode.
Right-click on "Computer" -> choose "Manage" -> select "Device Manager" -> expand "IDE ATA/ATAPI controllers" in the right pane -> right-click on the target channel responsible for I/O device error -> select "Properties" -> shift to "Advanced Settings" tab –> change the transfer mode to "PIO Only" -> click on "OK" button.

DiskPart has encountered an error 9

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.

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.

recommend Top Recommendation

If you're interested in learning how to recover data from I/O device error, please read this article carefully to find proper ways.

Case 4 – Data Error (Cyclic Redundancy Check)

"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

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.

Solutions:

1. Make Use of CHKDSK. (Please see "Parameter Is Incorrect error, Solution 1 - Enable Error-checking Function)

2. Rely on "chkdsk /f" Command.
Open the command prompt line (remember to run as administrator) -> type "chkdsk /f *:" into the command prompt ("*" should be the letter of target drive) -> press "Enter" -> wait for the scan to complete -> restart computer at the end of the process.

DiskPart has encountered an error 10

Case 5 – The System Cannot Find the File Specified

This error appears when the USB flash drive/SD card is damaged or corrupted and the file system of it may turn into RAW.

Please read this post to learn a lot of ways to fix cyclic redundancy check in Windows 10 properly.

Case 6 – The Device Is Not Ready

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

Solutions:

1. Run Troubleshooter.
Click on start button -> choose "Control Panel" -> type "troubleshooting" into the search control panel box or view by small icons & select "Troubleshooting" in the lower right corner -> click on "Configure a device" under "Hardware and Sound" -> click on "Next" button to detect problems -> choose the error you want to fix from the report listed after the scan -> click on "Next" button to try to fix it.

DiskPart has encountered an error 11

2. Uninstall the USB Controller.
Click on start button -> type "device manager" into the search box and press "Enter" -> find "Universal Serial Bus controllers" and expand it -> right click on the first USB controller and choose "Uninstall" -> click on "OK" button in the pop-up window to confirm -> repeat this process to uninstall the rest USB controllers listed under "Universal Serial Bus controllers" -> restart the computer and retry DiskPart to see whether it works or not.

DiskPart has encountered an error 12

Share On Twitter

Brief Summary

When running DiskPart, you tend to encounter errors. We have summarized 6 types of situations that cause a DiskPart error. For each of the case, we analyze the causes briefly and give corresponding ways to recover data and try to fix the error. Hope those solutions can help you solve your problem. If you have any questions about DiskPart has encountered an error problem or have better solutions, please feel free to leave a message below.


Common problems related to partition recovery and our solutions: