Jump to content











Photo
- - - - -

Add Win7PE to Harddisk boot UEFI


  • Please log in to reply
9 replies to this topic

#1 ray313464

ray313464
  • Members
  • 6 posts
  •  
    Hong Kong

Posted 13 February 2017 - 12:14 PM

I've a Windows 7 System UEFI GPT in C: , now I add a new drive U: and place a Win8PE in this U:

I use the following way to add this Win8PE boot with Windows 7 system to make it boot like this :

 

Windows 7

Win8PE

---------------------------------------------------------------------------------------------------------------------------------------

bcdedit /create /d "Win8PE" application osloader

bcdedit /set {GUID} osdevice partition=u:

bcdedit /set {GUID} device partition=u:

bcdedit /set {GUID} path \windows\system32\boot\windows.efi

bcdedut /set {GUID} systemroot \windows

----------------------------------------------------------------------------------------------------------------------------------------

 

After reboot and choose Win8PE boot option , it restart computer right the way without loading Win8PE ?

 

I've tried the above add Win8PE boot to Windows 8/10 UEFI GPT successfully. So I don't understand why

Windows 7 fail ?

 

Thanks for help

 



#2 cdob

cdob

    Gold Member

  • Expert
  • 1469 posts

Posted 13 February 2017 - 09:57 PM

Which efi boot files are at the EFI partition?
Did you update this files too?
Do you use a Windows 7 bootx64.efi or bootmgfw.efi?
Try a Windows 8/10 bootmgfw.efi (or reanmed to bootx64.efi).

#3 ray313464

ray313464
  • Members
  • 6 posts
  •  
    Hong Kong

Posted 14 February 2017 - 07:36 AM

As I've mentioned before it's not a Win7PE , it's actually a Win8PE_SE source. I used this same Win8PE_SE for Windows 8.1/10 that boot OK.

That is :

1) Windows 8.1 + Win8PE_SE , Win8PE_SE boot OK

2) Windows 10 + Win8PE_SE , Win8PE_SE boot OK

 

Only this Win8PE_SE image in Windows 7 not boot OK

 

Here's the EFI partition in Windows 7

 

U:\Windows\Boot\EFI

 

en-US

qps-ploc

zh-HK

boot

bootmgfw.efi

bootmgr.efi

memtest.efi

 

Thanks in advance



#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 14 February 2017 - 10:21 AM

Let's imagine for a moment that:

 

1) bootmgr.efi (or the BCD, or both) of a Windows 7 can boot a Windows 7 and a Windows 7 based PE.

2) bootmgr.efi (or the BCD, or both) of a Windows 8/8.1 can boot a Windows 8/8.1 and a Windows 8/8.1 based PE. (besides a Windows 7 and a Windows 7 based PE)

2) bootmgr.efi (or the BCD, or both) of a Windows 10 can boot a Windows 10 and a Windows 10 based PE. (besides both Windows 8/8.1 and a Windows 8/8.1 based PE or a Windows 7 and a Windows 7 based PE)

 

Would this explain the issue?

 

On one machine you have Windows 7 "early boot files" and thus you cannot boot a "later" Windows 8 based PE.

On another machine you have Windows 8/8.1 "early boot files" and thus you can boot a Windows 8 based PE alright.

On a third machine you have Windows 10 "early boot files" and thus you can boot a "previous" Windows 8 based PE alright.

 

:duff:

Wonko



#5 ray313464

ray313464
  • Members
  • 6 posts
  •  
    Hong Kong

Posted 14 February 2017 - 11:25 AM

Thanks , I understand what you mean.

But I use Win8PE_SE can also boot not in Win8.1 Windows , but also in Win10 Windows.

 

So I'll try to make a Win7PE to boot in Win7 Windows.

 

Thanks for you answer.



#6 alacran

alacran

    Platinum Member

  • .script developer
  • 2710 posts
  •  
    Mexico

Posted 14 February 2017 - 12:34 PM

@ray

 

You do not need to make a Win7PE to boot in Win7 Windows.

 

In post #2. cdob already told you:

 

 

Which efi boot files are at the EFI partition?
Did you update this files too?
Do you use a Windows 7 bootx64.efi or bootmgfw.efi?
Try a Windows 8/10 bootmgfw.efi (or reanmed to bootx64.efi).

 

This is on your EFI partition on your HDD, or on other words copy bootx64.efi / bootmgfw.efi (renamed to bootx64.efi) from a Windows 8 or 10 to your EFI partition on your HDD. 

 

I will sugest to first backup your actual bootx64.efi / bootmgfw.efi (just in case you don't know the commands to reinstall them if you want them back).

 

alacran



#7 ray313464

ray313464
  • Members
  • 6 posts
  •  
    Hong Kong

Posted 15 February 2017 - 04:20 PM

I understand what you mean now. To clerify ,

 

Copy the bootx64.efi / bootmgfw.efi from a Windows 8 HDD

Rename it to bootx64.efi

Then copy it to the Windows 7 HDD , i.e. C:\Windows\Boot\EFI\bootx64.efi

 

Is that right ? I'll try.

 

Thanks a lot



#8 cdob

cdob

    Gold Member

  • Expert
  • 1469 posts

Posted 15 February 2017 - 08:42 PM

copy a Winodws 8 bootmgfw.efi (i.e. C:\Windows\Boot\EFI\bootx64.efi) to the EFI partition at the Windows 7 HDD.

ren [EFI partiton:]\EFI\Microsoft\Boot\bootmgfw.efi *.7
copy bootmgfw.efi [EFI partiton:]\EFI\Microsoft\Boot\bootmgfw.efi
copy bootmgfw.efi [EFI partiton:]\EFI\Boot\bootx64.efi
.
And configure:
bcdedit.exe /set {bootmgr} displaybootmenu yes


#9 ray313464

ray313464
  • Members
  • 6 posts
  •  
    Hong Kong

Posted 17 February 2017 - 09:59 AM

Sorry for my late reply, as I've do a few test that takes time.

 

I rename Win7 EFI partition's bootmgfw.efi to bootmgfw.7, i.e. EFI\Microsoft\Boot\bootmgfw.7

 

I copy Win8 bootmgfw.efi from either EFI partition, i.e. EFI\Microsoft\Boot   or   C:\Windows\Boot\EFI

to Win7 EFI partition, i.e.

     EFI\Microsoft\Boot\bootmgfw.efi       and

     EFI\bootx64.efi

 

In cmd :

     bcdedit.exe /set {bootmgr} displaybootmenu yes

 

Then reboot , this time the Win8PE_SE boot OK. Then reboot , but can't boot Win7. Once Win7 start, it appear a "Preparing Automatic Repair"

screen with a loading process white bar. After that an error message come up in the black screen :

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

A recent hardware of software change might have installed a file that is signed incorrectly

or damaged, or that might be amlicous software from an unknown source.

 

xxxxxxx

xxxxxxx

xxxxxxx

 

File: \Windows\system32\winload.efi

Status: 0x0000428

Info: The digital signature for this file couldn't be verified

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

After a few second, the computer shutdown itself.

 

So I use Win8PE_SE to delete Win7 EFI partition, i.e. EFI\Microsoft\Boot\bootmgfw.efi (which is originally Win8's bootmgfw.efi)

Then rename bootmgfw.7 to bootmgfw.efi. Reboot, this time Win7 boot OK, but Win8PE_SE not OK

 

From this, I think the Win8's bootmgfw.efi may not be compatible with Win7, but the Win8's bootx64.efi doesn't affect anything.

Even I've tried only copy the Win8's bootmgfw.efi but not the boox64.efi. The result remain the same.

 

Thanks for all of you



#10 cdob

cdob

    Gold Member

  • Expert
  • 1469 posts

Posted 21 February 2017 - 10:49 PM

Then reboot , this time the Win8PE_SE boot OK. Then reboot , but can't boot Win7.


Strange, a bootmgfw.efi from Windows 8.1 does load a Windows 7 winload.efi at a Vmware Player x64 machine. Windows 7 does boot.
Which hardware do you use?
 

the Win8's bootx64.efi doesn't affect anything.

Firmware settings are stored at UEFI. There is a reference to bootmgfw.efi by default. This entry is used.

bootx64.efi is a fall back option, normally not used at a internal hard disk.
It's not used at your configuraion.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users