Apple MBP: UEFI installation won't boot after image apply


  1. Ren
    Posts : 7
    W10
       #1

    Apple MBP: UEFI installation won't boot after image apply


    Hi, last few hours I spent trying to manually deploy Windows 10 on clean GPT disk but after applying image and rebooting I always end in unbootable state.

    I manually setup drive like this:
    Code:
    select disk 0
    clean
    convert gpt
    create partition primary size 350 #RE tools won't fit 300MB anymore :-)
    format quick fs ntfs label "Windows RE tools"
    assign letter t
    set id de94bba4-06d1-4d40-a16a-bfd50179d6ac
    gpt attributes 0x8000000000000001
    create partition efi size 100
    format quick fs fat32 label System
    assign letter s
    create partition msr size 128
    create partition primary 
    format quick fs ntfs label Windows
    assign letter w
    list volume
    exit
    #no recovery image partition as per documentation it is no longer needed
    and followed by pretty common deployment:
    Code:
    dism /apply-image /imagefile:g:\Sources\install.wim /index:1 /applydir:w:\
    dism /image:w:\ /set-Timezone:"Central Europe Standard Time"
    md T:\Recovery\WindowsRE
    attrib w:\Windows\System32\Recovery\Winre.wim -h -s -r
    copy w:\Windows\System32\Recovery\Winre.wim T:\Recovery\WindowsRE\winre.wim
    bcdboot w:\windows /s s: /f UEFI
    w:\Windows\System32\reagentc /setreimage /path T:\Recovery\WindowsRE /target w:\Windows
    After reboot I always end unbootable (as we talk Apple computer it means 1) no partition on Option or 2) folder with ? or 3) just gray screen, make your pick). There's a chance that Windows rely on some UEFI 2.0 feature, which is not available as the old guy has 1.2 only. Or maybe I missed some step somewhere. Any ideas?
      My Computer


  2. Posts : 5,478
    2004
       #2

    Only macs with PCIe SSD support UEFI. For MBP that is only retina versions from late 2013 or more recent (your 5.1 is 2009 I think). Even if you can get UEFI to boot you'll get no sound etc as there aren't any drivers.

    You'd want to use BIOS emulation. Method is (actually simpler):

    diskpart
    list disk
    Take note of the disk you want to select
    select disk 1 (if your disk is Disk 1)
    clean
    convert mbr
    create partition primary
    format fs=ntfs quick label=Whatever
    assign letter=E
    exit

    Open up File Explorer. In your C drive, create a new folder named WIN2GO.
    Put the install.wim file in this folder

    Back in cmd.exe:
    dism /apply-image /imagefile:C:\WIN2GO\install.wim /index:1 /applydir:E:\ (this process will take quite a while)
    E:\Windows\System32\bcdboot E:\Windows /s E: /f ALL

    source
      My Computer


  3. Ren
    Posts : 7
    W10
    Thread Starter
       #3

    halasz: Actually, that's not true at all. If you don't mind MBR (BIOS emulation), you just pop Windows DVD into drive and install them like on any other laptop. All drivers are available in Windows Update immediately (chipset is nForce, audio is generic Realtek, etc..), I was running that MBP5.1 with Win 8.1 for the whole last year. Now I even have Windows 10 there, again, fully working, all devices installed, but only MBR. All those extra steps are required only in case you want to run UEFI, not legacy (or when you do not have optical drive and your MBP is too old to be able to boot from USB). Apparently, I'm just missing some step to have it running from UEFI from GPT and that's why I asked here. (overly simplified but let's pretend MBR='BIOS Emulation'=legacy and GPT=UEFI, even though they are different things, in this context I mean it the same)
    ======================================================================


    For those who would ever think about doing the same as me, running MacBook with Windows only, the less known fact is that all you need from bootcamp is \Drivers\Apple\(x64)\bootcamp(x64).msi. You need:
    bootcamp 4.x for Win 7
    bootcamp 5.x for Win 8(.1)
    and now
    bootcamp 6.x for Win 10.
    As Apple do not freely distribute bootcamp package anymore (from 6.x up), you need to get your hands on any Mac, run BCA and let it create USB with drivers from Apple update (hefty 3GB download just for 5MB of bootcamp.msi). While setup.exe won't let you run it on unsupported hw, you do not want to run setup.exe anyway. In elevated command prompt you run 'msiexec /i bootcamp.msi' and your BC control panel is installed, providing you with:
    Keyboard backlight
    Choice between F1-12 and function keys
    Touchpad controls (like right click with double touch)
    OSD for function keys
    and a few other small things.
    In all the other aspects it behaves like generic laptop (no UEFI user iface etc, but you've got the idea).

    TL;DR: You can install Windows on any MBP like on common laptop, you don't even need OSX for that. Just install correct \Drivers\Apple\(x64)\bootcamp(x64).msi after installing Windows to have it fully working.

    I would turn this into some kind of guide but dunno where and how. Hopefully it will help to someone who runs over it incidentally.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:37.
Find Us




Windows 10 Forums