Fix Failed to format the selected partition Error 0x8004242d

Fix Error 0x8004242d - Some Windows 10 users report that they cannot format their Hard Drive and they get an error message that says, Failed to format the selected partition, Error 0x8004242d. You may also see 0x80070057 as an accompanying error code. In this article, I will try to help you fix this error with a few simple solutions.

Fix Failed To Format The Selected Partition Error 0x8004242d

There are many reasons behind this problem. Like your OS is not compatible with a storage controller or driver, the problem with a data cable or other hardware and others. However, I will cover every possible solution to this error.

Before proceeding, make sure to check if your SATA cable is properly connected. If tighten and check if the problem is fixed. If not continue reading and use the method below to fix error 0x80042d.


Your first solution requires using Dispkpart to clean the disk before formatting the Hard Drive. So boot using the Installation Media, then open Command Prompt from Advanced Options.

In the Command Prompt window, type the following command and press Enter.


disk list

This will display a list of all the drives your computer has. You can look at the size of each to see what's causing the problem. Now, use the following command to select a specific disk. Replace <disk-number> with the disk number that is causing the problem.

disk cell <disk-number>

Run the following command to confirm that you have selected the correct disk.

det disk

Once you are sure that the disk you have selected is correct and cleaning it will do no harm, then run the following command. Note: This will delete all your data. So, be aware of that.

clean all

Finally, use the following command to exit DISKPART.


Hopefully, this will fix the error for you.


The problem could be due to bad sectors on your hard drive.

So, launch Command Prompt after booting the computer from the Installation Media.

Next, enter the following command below and press Enter.

chkdsk c: /r

It will ask you to be confirmed. So, press Y to do it.

let the command run and fix the error on your hard drive.

Erase All Partitions

The most common reason for this error is a corrupted Master Boot Record. The first thing you should do is repair the MBR (Master Boot Record). If it fails, then the easiest way to fix it is to delete all partitions using diskpart.

However, before doing this, make sure to create a System Backup Image.

Disable UEFI Boot Support

The problem could be due to a conflict between UEFI and BIOS. So, if you are facing this error, try disabling UEFI Boot Support to fix it. You can follow the given steps to do the same.

  • Restart your computer and boot into the BIOS.
  • Open the Boot menu.
  • Then disable Secure Boot.

Now, save the changes and check if that fixes the problem.

Next Post Previous Post
No Comment
Add Comment
comment url