Windows could not prepare the computer to boot into the next phase of installation
Solution 1
Looks like I've found the solution!
You should create the bootable USB using WinSetupFromUSB 1.9 with these steps:
- Insert the USB
- Format the USB using diskpart (NOT QUICK, FAT32)
- Delete each partition from the USB
- Using WinSetupFromUsb, create the USB
- Plug the USB into your laptop or whatever it is
- Remove everything plugged except for the setup USB (charger, patch cable, mouse (used touchpad))
- Before installing, click Shift+F10.
- Type
diskpart
- Type
lis dis
. For me, it outputted, that I have 3 disks (29 GB, 460GB, 7420MB) - Type
sel dis ?
where?
is the disk which is NOT a USB and NOT a disk you are using to setup - Type
clean
- Type
offline
- Repeat for every disk which is NOT a USB and NOT a disk you are using to setup
- Type
sel dis ??
where??
is the disk you're using to setup - Type
lis par
. For me, it outputted, that I have 2 partitions (500MB, 100MB) - Type
sel par n
wheren
is initially 0 but it increases each time you repeat it - Type
del par
. If it outputs any error, ignore it - Type
sel dis ??
where??
is the disk you're using to setup - Type
format
without anyfs
orquick
- justformat
- Type
exit
- Continue the setup. When you're suggested about disks, it should have only Unallocated Spaces (formatted) and each disk (except for your main disk) should be offline.
- Select your main disk (that online one) and continue the setup.
Solution 2
For me the issue was that i had one EFI system partition existing and the installer was creating a new one. I have marked my USB FAT partition as an EFI System partition and it seemed to have gotten confused. Marking the FAT partition as a "Windows Basic Data" GUID seems to have fixed it.
Solution 3
I was getting this with all versions of Windows (Windows 10, Windows Server 2019, Windows Server 2020H2) on a PowerEdge R720. I was just trying to install to a single HDD in the SAS backaplane.
Solution was to remove all the other drives (which were not formatted since being members of a PERC RAID array).
This became an issue after flashing the PERC H710P Mini to IT mode (which would have destroyed the RAID array as far as the PERC RAID card was concerned).
I'm not sure why Windows couldn't just ignore these other drives, but presumably formatting them to remove the RAID partitioning would have resolved this issue as well.
KViiTEN
Updated on September 18, 2022Comments
-
KViiTEN over 1 year
Nota Bene: Not a duplicate! I've checked the following questions and didn't find the working solution.
Nota Bene 2: I've got a lot more details. Check them in the bottom of the question!Questions:
Windows 10: Windows could not prepare the computer to boot into the next phase of installation. To install windows, restart the installation - Answer isn't valid for me, as I don't have ANY OS on my laptop currently.
Can't install windows after linux - The problem is a bit similar (I also had Linux before), but not Windows 7 or anything. Also, it even doesn't have an answer; the comments didn't help as I used Media Creation Tool.
Why does Windows 10 fail to install on UEFI/GPT laptop? - Didn't help as I have 2 drives and my USB. Formatting in FAT32 brings me back to NTFS for no reason.
Windows 10 fails to install to fresh ssd - No answers, comments didn't help as well.
'Windows could not prepare the computer to...' error while installing any windows (7/8.1/10) - Again, my USB is the only EFI bootable drive I have.And to the problem:
I use MediaCreationTool2004.exe to create a bootable USB drive, straight from Microsoft site. My EFI sees the USB (By the way, my EFI doesn't have a GUI); I select it and boot. Everything goes fine before the literal finish of the installation. It just says
Windows could not prepare the computer to boot into the next phase of the installation. Restart and try again.
My laptop OS hierarchy:
- Windows 10 x64
- Windows 10 x64 once again after me formatting C: for no reason
- Ubuntu
- Multiboot (Ubuntu, Windows 10 x64)
- Kali Linux
- Zorin OS
- Ubuntu
- Linux Mint
- Tried to install Windows 8 x64 but didn't succeed (same error)
- Tried to install Windows 8.1 x64 but same error
- Tried to install Windows 10 x64 but didn't succeed (same error) (current)
Very current: No OS
What've I tried:
- Removing each partition when installing but the installation failed instantly (after copying the files)
- Removing each partition through diskpart before even installing, which of course failed as well
- Not removing the partitions, just formatting the main partition to install but it failed on the last step.
- Going to "Repair the system" ---> Delete updates ---> Delete the last update. Outputs "An error occurred..."
- Removing literally everything from the laptop I could remove (except for the USB) (mouse, patch cable, charger). Nothing changed, the same error as in the 3rd.
- Going to "Repair the system" ---> cmd ---> Using the diskpart and formatting directly from here. Nothing changed.
- Cleaning volumes - didn't help, nothing changed.
Also after some time, diskpart started saying
Drive not selected.
when trying to format C:<br/>
I have no idea what to do.More data:
Laptop - Digma
CPU - Intel(R) Atom(TM) x5-Z8350 CPU @ 1.44GHz
RAM - 2048 MB DDR3
Windows 10: was licensed when it was on my laptopThe details you came for:
Unsucceed:
Using MediaCreationTool2004.exe with
Windows 10, Russian, x64
settings
Using MediaCreationTool2004.exe withWindows 10, Russian, x86
settings
Using Rufus 3.11.1678 withGPT, UEFI (non-CSM), FAT32, 4096, x64
settings
Using Rufus 3.11.1678 withGPT, UEFI (non-CSM), FAT32, 4096, x86
settingsAdditional:
My EFI doesn't see the NTFS-formatted USB for some reason
My USB is 8 GB-
Moab almost 4 yearsThere will be installation Log files on the drive you chose to install to, review those for possible clues as to what went wrong/
-
Ravindra Bawane about 3 yearsYou don't delete drives. You delete partitions. Also, this question has already been answered, with a rather extensive and clear answer. Your solution would work for certain issues earlier in the installation process, but is not likely to resolve issues at the end where this question is addressed.
-
Frederik almost 3 yearsI have a traditional HDD and a NVMe drive. Setting the HDD to offline made the install go through. Thanks!
-
Munib over 2 yearsTLDR: If you don't want to write all this out, remove every single physical device (including secondary hard drives, graphics cards) except the keyboard and mouse. The only disk connected should be the one you are installing windows on. Then it should work.
-
CJ Maahs about 2 yearsWow... my 2nd day of attempts, and your 0-votes answer solved it! Take my vote! My machine had 2 x NVMe, and 4 x SSD. I had to remove the SSDs before the install would work. I used Ventoy, btw.
-
davmac about 2 years
Type clean
- unless I'm misunderstanding, this wipes the partition table of the disk. Not a command I'd casually advise someone to do without a big fat warning. -
Duloren about 2 yearsExactly same as me. Thank you for sharing