How can I create Windows install media that boots & installs UEFI ONLY?

4923
iMattux

I'm trying to install Windows 8.1 in UEFI mode on my Mac Pro 4,1 flashed to 5,1 with 3.46GHz Intel W3690.

As far as I can tell, Windows will only create media that boots the way the box that creates the media is booted. If the box booted via BIOS/CSM, the media it creates will (only) install Windows in BIOS/CSM mode. If the box booted via UEFI, the media it creates will install Windows in UEFI mode. Maybe someone can correct me if that is not the case.

All the instructions I've found around the web for creating UEFI install media involve selecting UEFI mode in a PC's BIOS screen and creating the install media. Of course, Macs don't have that option.

Here's what I've done:

I initially ran into the fairly well documented "select the CD rom type issue", but worked around that by following the instructions here and I successfully created a Windows 8.1 DVD using a PC, an ISO downloaded from Microsoft, oscdimg and ImgBurn.

I installed Windows 8.1 and upgraded it to Windows 10. You'd think I'd be happy and move on, but I have to make things difficult. :p I want to be booting from (U)EFI, not BIOS/CSM.

I formatted the target drive as a GPT drive according to these instructions, but when I try to install to it, the Windows installer (booted in BIOS/CSM) tells me that it can't install to a GPT formatted drive.

I successfully hacked my Bootcamp Assistant Info.plist and have the option to create a USB drive to install Windows 7 or later using Bootcamp Assistant. BCA reports copying Windows files, downloads the Bootcamp files and then simply reports that the install could not be completed. o_O

However, the USB drive appears to have all the necessary files to install Windows, just not the bootcamp files. I have bootcamp files from a separate download and they installed without issue to the BIOS/CSM version previously mentioned.

No matter what method I use to create the USB - Bootcamp, Rufus on Windows or by manually building it Windows - the USB shows the now familiar blue windows for a few seconds, then goes to a big blue screen and tells me:

 Your PC needs to be repaired. An unexpected error occurred. A needed file is missing or corrupted \Windows\system32\boot\winload.efi Error Code: 0xc0000001 Use your install media to repair your PC or contact your Sys Admin... 

My Mac Pro shuts down after 30 seconds or so.

I am very comfortable and well-versed in using the command line. I have Rod Smith's gdisk installed. I have XCode installed. I have Rufus and ImgBurn on the Windows side. I also have the Windows ADK, but I have not gotten into it because it seems to assume that you want to set up a network share to install Windows. If there's a way to create this media with that Windows tool, please provide detailed step-by-step instructions and remember that I cannot simply choose to boot in UEFI mode because my Motherboard does not have that option.

Cheers

0
Вы пытались создать USB-диск с разделами GPT, верно? Вы проверяли, что программа установки запускается на обычном ПК? Daniel B 8 лет назад 0
Да. USB имеет формат GPT, подтвержденный OS X diskutil и gdisk. У меня нет обычного ПК. Программа установки запускается с USB, когда я загружаюсь в Windows из установки BIOS / CSM. iMattux 8 лет назад 0
Для того, кто дал мне -1: я сделал так много исследований. Я ссылался на страницы, на которых, как мне показалось, были лучшие методологии. Я прочитал по крайней мере 10 сайтов, которые рассказали мне, как использовать Bootcamp. Я прочитал еще около 10 сайтов, которые рассказали мне, как использовать Rufus и / или Windows diskpart. Я тщательно следовал всем инструкциям. Я могу создать DVD, который загружает и устанавливает Windows в режиме CSM. Каждый сайт, который я видел, кроме двух, указанных выше, начинает с того, что предлагает выбрать UEFI из моего BIOS ... iMattux 8 лет назад 0

2 ответа на вопрос

0
snayob

There is no big philosophy about creating USB that is only UEFI bootable.

Let's start from Windows ISO. Mount it.

Then format whole USB with FAT32 (MBR style, single partition), NO active partition!

Then copy all files from ISO to USB.

If USB contains an \EFI folder then it is UEFI bootable.

If USB does not have an \EFI folder then it is NOT UEFI bootable.

\EFI folder should have two sub folders: \EFI\boot and EFI\Microsoft\boot with corresponding files.

If USB does not have an active partition then it is NOT BIOS bootable.

If you could write a protective MBR to USB then it would be ONLY UEFI bootable.

If media is booted UEFI way it will install UEFI bootable Windows 8.1/10 (e.g. expects GPT disk as target).

0
iMattux

Оказывается, на самом деле все было довольно просто, хотя я собрал все вместе, основываясь на информации, которую нашел на веб-сайте Microsoft для Sys Admins.

Решение состоит в том, чтобы удалить файл bootmgr из корня установочного USB. Обратите внимание, что USB ДОЛЖЕН быть отформатирован как GPT-диск с одним разделом, чтобы Mac Pro 4,1 или 5,1 загружался в режиме UEFI. Он может работать или не работать с другим оборудованием, которое разрешает доступ к микропрограммному обеспечению EFI, но если Mac Pro находит MBR, он загружается в BIOS / CSM.

Кроме того, по крайней мере, на моем конкретном Mac Pro (как уже упоминалось, 2009 год 4,1 мигал до 5,1) он не работал, когда я отформатировал USB-накопитель с помощью дисковой утилиты Apple ИЛИ Gdisk - извините, Род Смит. Вы легенда, и вы многому меня научили, но мне пришлось использовать диск Windows для форматирования USB-накопителя.

Итак, вот точный шаг за шагом:

В любой среде Windows (я загружался в BIOS / CSM на моем Mac Pro) откройте командную строку и введите:

diskpart  list disk  sel disk *N* (where *N* is the number of your USB drive from the list)  clean  convert gpt  format quick fs=fat32 label="NAME"(where NAME is whatever you want to call your USB. Use quotes if you want to use a space, i.e. label="Windows 10")  exit 

Затем, все еще в Windows, я смонтировал ISO-образ, который я скачал с MS, и просто перетащил все, кроме исполняемого файла bootmgr, в корень USB-накопителя. Обратите внимание, что я скопировал bootmgr.efi, но не bootmgr.exe.

Перезагрузите, удерживая alt / option, выберите USB-накопитель с надписью «EFI Boot» и следуйте инструкциям.

В соответствии с политикой Exchange Stack, вот как я понял это:

Я оказался на этой странице . Где я нашел эту цитату в отношении загрузки в желаемом режиме, которая является ТОЧНОЙ проблемой, которую я пытаюсь решить:

Если это частая проблема, вы можете удалить загрузочные файлы для режима UEFI или BIOS, чтобы компьютер не загружался в неправильном режиме. Если встроенное ПО компьютера настроено на загрузку в неправильном режиме, носитель сразу не загрузится, что позволит немедленно повторить попытку загрузки ПК в правильном режиме.

Boot in UEFI mode: To prevent Windows PE from booting in BIOS mode, remove the bootmgr file on the root of the media.  Boot in BIOS mode: To prevent Windows PE from booting in UEFI mode, remove the efi folder on the root of the media. 

Они говорят о создании пользовательских установочных носителей Windows для развертывания в большой организации с использованием ADK и Windows PE, но я попробовал это очень простое решение, и оно работало как для Windows 8.1, так и для Windows 10.