Windows 10: Windows Setup - "Windows could not format a partition on disk 0. The error occurred while...

Discus and support Windows Setup - "Windows could not format a partition on disk 0. The error occurred while... in Windows 10 Gaming to solve the problem; I have a laptop that has no operating system installed on it, so I made a Windows 11 USB with the media creation tool for Windows 11 on a different... Discussion in 'Windows 10 Gaming' started by John Wissa, Apr 9, 2022.

  1. Windows Setup - "Windows could not format a partition on disk 0. The error occurred while...


    I have a laptop that has no operating system installed on it, so I made a Windows 11 USB with the media creation tool for Windows 11 on a different laptop and I tried booting up the laptop with the USB into the setup for Windows 11, and so during the Windows 11 installation, I got this error: "Windows could not format a partition on disk 0. The error occurred while preparing the partition selected for installation. Error code: 0x80070001". How do I fix this and successfully install Windows 11 on that laptop?

    :)
     
    John Wissa, Apr 9, 2022
    #1
  2. W1zzard Win User

    W7 Hard drive partition issue

    to get rid of that 100 meg windows partition that setup creates for you on a new install on a blank hdd:

    - press shift+f10 when on the partition management screen in setup <-- this opens a command prompt
    - diskpart <-- start the windows command line partition management tool
    - list disk <--- list the installed hdds in this computer for the next step
    - select disk 0 <- might have to replace 0 with the number of the correct disk
    - clean <-- this will erase all data on the disk you selected one step up- dont use the wrong disk!
    - create partition primary <- creates a primary partition taking up all space on the drive, adjust the command if necessary
    - exit, exit to exit diskpart and the command prompt
    - click refresh in partition manager and select your newly created partition and install to that
     
    W1zzard, Apr 9, 2022
    #2
  3. Installing Windows Vista/7 on a GUID Partition Table

    Background

    GUID Partition Table (GPT) is a boot sector technology poised to replace the venerable Master Boot Record (MBR) principally because MBR has a maximum capacity of 2 TB for a single partition (some single disks have reached 3 TB). Installing Windows on a GPT is a bit tricky because Windows wants to default back to MBR. In order to force Windows on to a GPT, we have to pre-format the drive prior to Windows installation. You can do that during Windows setup using the console.

    Requirements

    • Windows Vista or 7 (must be 64-bit no matter which OS is used)
    • A motherboard with EFI BIOS
    • A means to EFI boot the Windows setup (I had to use a USB DVD drive on MSI Z77A-G65, the internal SATA Bluray drives didn't have an EFI option)
    Instructions

    • Boot into Windows setup using EFI. On the MSI Z77A-G65, it showed up as UEFI:USB-ATAPI DVD ... This will change according to your motherboard and how you are attempting to enter setup. This step is critical. Without booting into setup via EFI, only MBR is available to the setup. There's no easy way to tell from within setup if it is running via EFI or not.
    • Once you have booted into setup, continue through the process as you would normally until you reach the dialog which shows you the available drives. Load a driver, if necessary, then press SHIFT+F10 to open the command prompt.
    • In the command prompt, enter the following lines, pressing enter after each one. Note that the <id> field below is the disk ID that you want to format as GPT from the "list disk" command. If there's only one drive, <id> will likely be 1. Note: All data on the drive will be lost during this process. Make sure to select the correct drive.
      • diskpart
      • list disk
      • select disk <id>
      • online disk
      • attributes disk clear readonly
      • clean
      • convert gpt
      • create partition efi size=102
      • create partition msr size=32
      • create partition primary
      • format fs=ntfs label="Operating System"
      • assign letter=C
      • exit
      "online disk" and "attributes disk clear readonly" are likely to fail. Don't worry, they are only precautionary. Change the drive letter and label to whatever you want. Also, the above command (specifically "create partition primary") will consume all remaining space on the drive. If you want multiple partitions with fixed sizes, substitute what you want in place of "create partition primary."
    • You may now close the command prompt and click on "Refresh" back in the dialog to choose where to install Windows. You should now see at least 2 partitions (I think Microsoft Reserved is hidden) and it will only let you install on a non EFI/MSR partition. Click on the primary partition and proceed with the installation as normal.
    • Note that in the EFI BIOS after installing Windows via EFI, you can no longer directly boot the volume Windows is installed on. Instead, you must boot via "Windows Boot Manager" (on MSI Z77A-G65, it was "UEFI: Windows Boot Manager"). Keep that in mind if you wish to tweak the boot order.
    Conclusion

    That should do it. You should be in Windows with >2 TB of hard drive capacity available if you had more than 2 TB on the Windows partition. Congratulations being on the bleeding edge of technology! *Rockout :rockout:
     
    FordGT90Concept, Apr 9, 2022
    #3
  4. Windows Setup - "Windows could not format a partition on disk 0. The error occurred while...

    Installing Windows Vista/7 on a GUID Partition Table

    I've never tried multiple partitions so this is a shot in the dark...

    At step #10, I would try setting the size parameter (it is in mebibytes) to how large you want the partition windows is installed on to be, then go ahead and install windows. This will leave the rest of the drive raw instead of consuming it into the OS partition (C drive). Once you successfully boot into Windows, you should be able to use Computer Management -> Disk Management to create partitions in the raw space.


    If you really wanted to do it with diskpart before Windows is installed, you basically repeat the following lines making sure to specify a size if you don't want it to consume all remaining space:
    • create partition primary size=size in mebibytes here
    • format quick fs=ntfs label="appropriate name here"
    • assign letter=C thru Z here
    Obviously, you can use quick formatting or leave it out for full format. Leave off the size parameter when you reach the final partition that should consume all the remaining space. Also remember that the order you do this in goes from the outside of the disk (where it is fastest) to the inside of the disk (where it is slowest). Because of this, it is recommended to put EFI (e.g. size=300), then MSR (e.g. size=300), then Windows (e.g. size=30000), then Applications (e.g. size=70000), then Storage (e.g. no size parameter).

    If I'm right, the above example would look like this:
    • diskpart
    • list disk
    • select disk <id>
    • online disk
    • attributes disk clear readonly
    • clean
    • convert gpt
    • create partition efi size=300
    • create partition msr size=300
    • create partition primary size=30000
    • format fs=ntfs label="Windows"
    • assign letter=C
    • create partition primary size=70000
    • format fs=ntfs label="Applications"
    • assign letter=D
    • create partition primary
    • format fs=ntfs label="Storage"
    • assign letter=E
    • exit
     
    FordGT90Concept, Apr 9, 2022
    #4
Thema:

Windows Setup - "Windows could not format a partition on disk 0. The error occurred while...

Loading...
  1. Windows Setup - "Windows could not format a partition on disk 0. The error occurred while... - Similar Threads - Setup format partition

  2. 'Windows could not format a partition' when installing

    in Windows 10 Software and Apps
    'Windows could not format a partition' when installing: I corrupted my main partition so I'm reinstalling Windows 7 from an ISO burned to a flash drive in Rufus. I clicked 'Custom' then the main partition, and saw 'Windows could not format a partition on disk 0. The error occurred while preparing a partition selected for...
  3. 'Windows could not format a partition' when installing

    in Windows 10 Gaming
    'Windows could not format a partition' when installing: I corrupted my main partition so I'm reinstalling Windows 7 from an ISO burned to a flash drive in Rufus. I clicked 'Custom' then the main partition, and saw 'Windows could not format a partition on disk 0. The error occurred while preparing a partition selected for...
  4. Windows could not format a partition on disk 0. The error occured while preparing the...

    in Windows 10 Gaming
    Windows could not format a partition on disk 0. The error occured while preparing the...: I have done everything possible to Install windows, after having and issue with my ASUS F555BP laptop bootig up into the BIOS. I have made a WIN 10 Reinsall flash drive, and followed the steps that have been suggested in many YouTube Video, Microsoft Pages, and other Tech...
  5. Windows could not format a partition on disk 0. The error occured while preparing the...

    in Windows 10 Software and Apps
    Windows could not format a partition on disk 0. The error occured while preparing the...: I have done everything possible to Install windows, after having and issue with my ASUS F555BP laptop bootig up into the BIOS. I have made a WIN 10 Reinsall flash drive, and followed the steps that have been suggested in many YouTube Video, Microsoft Pages, and other Tech...
  6. Windows could not format a partition on disk 0. The error occured while preparing the...

    in Windows 10 Installation and Upgrade
    Windows could not format a partition on disk 0. The error occured while preparing the...: I hae done everything possible to Install windows again after haing and issue with my ASUS F555BP laptop bootig up into the BIOS. I have made a WIN 10 Reinsall flash drive,and followed the steps that have been syggested in many YouTube Video, Microsfot Pages, and other Tech...
  7. Windows Setup - "Windows could not format a partition on disk 0. The error occurred while...

    in Windows 10 Software and Apps
    Windows Setup - "Windows could not format a partition on disk 0. The error occurred while...: I have a laptop that has no operating system installed on it, so I made a Windows 11 USB with the media creation tool for Windows 11 on a different laptop and I tried booting up the laptop with the USB into the setup for Windows 11, and so during the Windows 11 installation,...
  8. Windows could not format a partition during windows installation

    in Windows 10 Installation and Upgrade
    Windows could not format a partition during windows installation: Due to some problems, I tried to clean install windows. After deleting all partitions when I clicked next, I got this error:Windows could not format a partition on disk 0. The error occurred while preparing the computer's system volume. Error code: 0x80070057.Then I tried to...
  9. BSOD KMODE_EXCEPTION_NOT_HANDLED while formatting disk partition

    in Windows 10 BSOD Crashes and Debugging
    BSOD KMODE_EXCEPTION_NOT_HANDLED while formatting disk partition: Hello,I always encounter this BSOD Kmode exception not handled when I do something with my disk, specifically, when I try to format a partition disk for it is RAW. I already tried updating my drivers but the problem persists. I tried using BlueScreenView to figure out the...
  10. Windows could not format a partition on disk – Error Code 0x80070057

    in Windows 10 News
    Windows could not format a partition on disk – Error Code 0x80070057: [ATTACH]When installing Windows on a computer that already houses an existing Windows copy, you […] This article Windows could not format a partition on disk – Error Code 0x80070057 first appeared on TheWindowsClub.com. read more...