Tuesday, 31 July 2012

Install Windows 8 in (U)EFI mode

Run the following commands after starting a command prompt in Administrator mode:

  1. diskpart
  2. list disk
  3. select disk # (replace # with the number of the usb disk)
  4. clean
  5. convert gpt
  6. create partition primary
  7. select partition 1
  8. format quick fs=fat32
  9. assign
  10. exit

use 7zip to extract the contents of the Windows 8 iso to the USB drive.
In the BIOS settings on the target machine, set the boot order to boot off the EFI USB drive (disable the Legacy/BIOS USB drive).
Select advanced partitioning in the Windows 8 installer and delete all existing partitions on the target installation drive.
Hit Shift-F10 and run the diskpart commands 1 to 5 & 10 again but this time against the target installation drive.
Close the command prompt and select the unallocated space for the install.



makkie88 said...

Nice quick tutorial, works great

Unknown said...

This is the only one I have found to really work for every setup I have come across so far. Thanks a lot!!

Anonymous said...

Thanks for this. I was having a problem with the windows 8 installer refusing to create the expected partitions (just created the MSR and primary partitions -- skipping the EFI, restore, etc..) and would (obviously) go off the rails when it tried to reboot after coying the OS files during install. When I ran the diskpart clean/convert commands while the installer was running all was well. Not sure if I had a screwy GPT defined or what (I had been throwing a half-dozen or so OSes and 3rd party boot-loaders at the disk off an on for a day or so), but this certainly did the trick.