How to fix "Windows could not format a partition on disk 0. The error occurred while preparing the partition selected for installation. Error code: 0x80070057

Judah Amanwa 0 Reputation points
2025-10-18T19:00:57.5833333+00:00

So i was trying to download windows 10 from a USB after using the windows media creation tool and ran into this error: "Windows could not format a partition on disk 0. The error occurred while preparing the partition selected for installation. Error code: 0x80070057" . I don't know what to do. I tried the running the command prompt and did the list disk and create thing but it came up with another error. I need help please.

20251018_193109

Windows for home | Windows 10 | Install and upgrade
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lychee-Ng 9,045 Reputation points Microsoft External Staff Moderator
    2025-10-19T11:48:32.9866667+00:00

    Hi Judah Amanwa,

    Welcome to Microsoft Q&A!

    I’m really sorry to hear you’re running into 0x80070057 error during your Windows 10 installation. Normally, running disk list command would be the best option, but you mentioned it hadn't worked but only introduced another error. It'd be extremely helpful if you can share the exact message for that here!

    In case the additional error from DiskPart was "The request could not be performed because of an I/O device error” (or similar), this is likely a hardware-level problem. Your best option is to stop trying to fix it as it will lead to more frustration and potential data loss (if any). Consider physically replacing the storage drive or/and consulting professional repair.

    While waiting for the exact error, I have some suggestions:

    1 - Recreate the Installation Media

    Sometimes the installation media itself is corrupted. Recreate the USB using the Windows Media Creation Tool on a different PC (and try running it there if possible)

    • Use a different USB drive, preferably 8GB or larger, and re-download Windows 10 ISO
    • Run the tool and choose “Create installation media for another PC”
    • Let the tool format and prepare the USB automatically.

    2 - Run a full disk check:

    • Boot into Command Prompt from the USB installer.
    • Run chkdsk X: /f /r (Replace X: with the correct drive letter)

    Disclaimer: Running chkdsk can check the file system and file system metadata of a volume for logical and physical errors. To avoid any trouble for you, do not cancel or interrupt chkdsk, and back up important data. More information please refer to chkdsk | Microsoft Learn. 

    3 - Use BIOS settings to check disk mode

    • Restart your PC and enter BIOS/UEFI (usually by pressing Del, F2, or Esc during boot).
    • Look for SATA Mode or Storage Configuration
    • If it’s set to RAID, change it to AHCI > Save and exit BIOS.

    If you still encounter errors after trying these steps, feel free to share the exact command that failed and the error message you received. I’ll be here to help troubleshoot further.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.