Here, we recommend creating a backup of your files with a piece of reliable and professional backup software – MiniTool ShadowMaker. If you use MiniTool PartitionWizard or continue to use the DiskPart Clean command to wipe your disk, it is necessary to back up your precious personal files to another external drive to before proceeding. What’s more, although you can undo the DiskPart Clean command, the process is pretty troublesome if you select the wrong object.Īt the same time, wiping the disk will erase all the data on your computer. However, you cannot be too cautious when using this command because there is no confirmation message before running it. Read More Suggestion: Back up Your Files Before Wiping DiskĪfter using the solutions below, the DiskPart Clean command on your PC may work properly now. This I/O (short for Input/Output) device error indicates that there are logically bad sectors, corrupted partition tables or physical sectors.Īlthough most disk I/O errors are caused by physical damage of the disk, running CHKDSK is also worth a try. When DiskPart Clean stops working, you may receive a message telling you that DiskPart has encountered an error: The request could not be performed because of an I/O device error. Type attributes disk clear readonly and hit Enter. ( # should be the actual disk number of your read-only device.) Here, we take removing read-only for volumes on disk 1 as an example, so we type select disk 1 and hit Enter. type list disk and hit Enter to show all the disks on your computer. In the command window, type diskpart and hit Enter. Type cmd in the search bar to locate Command Prompt and hit it. ![]() If so, take the steps below to clear this state: There is a chance that your external hard drive, USB drive, or SD card shows as Read-only in Disk Management. # Way 2: Remove Read-Only State from Device Finally, close Registry Editor and reboot your computer. Tip: If you cannot find StorageDevicePolicies, you can create it manually: right-click on Control > select New > hit Key > rename the new key to StorageDevicePolicies > right-click it to choose New > hit Dword > specify the name as WriteProtect > double-click WriteProtect to set the value to 0. In the right pane, find the write Protection key and double-click it to change its value to 0. Navigate to the following path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. Press Win + R to open the Run dialog > type regedit > hit Enter to open Registry Editor. When you confirm that the target device is write-protected, you can edit the relevant registry key to remove the write protection. # Way 1: Remove Write Protection by Editing the Registry Key There are two options for you: remove write protection by editing the registry key or remove the read-only state from the target device. Therefore, you need to unlock, decrypt, and remove the write protection to make Diskpart Clean work properly. If you do receive either of the messages above, you can try to unlock the drive or remove the write protection. The former means that the device is write-protected and the latter indicates that it is being occupied by a running program or file without your knowledge. You may receive two error messages: the media is write-protected or Data error. Go to This PC and turn on your device under Devices and drives to check whether the data on it is accessible or not. Press Win + E altogether to launch File Explorer. Connect the target device to your computer. Preparation: Check If the Drive is Locked or Occupied To do so, you can follow the guidelines below: Make sure that your disk is not write-protected or occupied by other programs, or else it will also trigger Diskpart Clean not working on your Windows PC. Read More Fix 2: Unlock the Drive & Remove Write Protection Īs per the different types of error messages that you may meet, we will show you the corresponding fixes respectively for you. DiskPart has encountered an error: Data error.DiskPart has encountered an error: the media is write-protected.DiskPart has encountered an I/O device error. ![]() In this condition, you are likely to receive the following error messages: Sometimes, some of you may encounter DiskPart Clean not working when trying to use this command to erase your external drive. The Clean command is one of its commands that can remove any and all partitions or volume formats from the drive. It allows you to partition internal or external hard drives and format removable storage devices like USB drives. Suggestion: Back up Your Files Before Wiping DiskĭiskPart is an inbuilt command-line hard drive partitioning program in Windows. ![]() How To Fix DiskPart Clean Not Working on Windows 10/11?.In order to help you out, we have sorted out fix fixes in this guide on MiniTool Website. Some users may fail to run the clean command in the DiskPart utility when trying to use it to clear an external hard drive, USB drive, or SD card.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |