Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to make a bootable UEFI system repair USB

28 Mar 2018   #1
bendipa

Windows 7 64 Bit
 
 
How to make a bootable UEFI system repair USB

For those (like myself) who have stuck rigidly with Windows 7 you will probably be aware that if you have ever made a Windows CD repair disk (Windows RE) or on a flash drive, and you run a UEFI BIOS computer (not in CSM mode) you will get a "non compatible" error when you try to boot from it. Despite wading through this forum and Microsoft forums, no-one seems to have ever come up with a solution, since all articles deal with the case of running your computer on an MBR system where Windows RE works fine.

if you have a UEFI BIOS system which is not running in CSM mode , I've finally found a way of creating a Windows 7 RE on a flash drive which works like a charm. If you want details of how to do this let me know and I'll post up the procedure, which is easy to do manually.


My System SpecsSystem Spec
.
28 Mar 2018   #2
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Thanks. Most people will either download my boot media, then extract to flash using rufus, or similar.Th x64 boots on efi and bios systems.

They include explorer, disk management, audio, net connection, Aomei Backupper and Aomei Part Assist included.

32 bit
17514x86.iso


64 bit
17514x64-v6.iso

Alternatively, they can use my little program in this zip file for creating winpe and copy the files created by that to formatted flash drive.

New7x64upd.zip

it can create efi/bios bootable winpe from the files on your hard drive - no installation media required.It works fine even if you have updates included in your installation.
My System SpecsSystem Spec
04 Aug 2018   #3
kimcheee

Windows 7 64bit Pro
 
 

Hi,
Bendipa - if you're still around - I'd really like to know what you did!!!

I've spent hours and hours trying to do it, and still not there.

(I have an HP Envy 750-175se with Win 7 pro. It takes such a long time to boot with the CD to system repair...)

I have got it booting in UEFI from USB with the recovery .wim, but instead of asking me about the keyboard and going to the normal screen, it's trying (I think) to load HP's custom system restore (that would give option to restore to factory defaults) - but it only partially loads that - I get the graphic wallpaper and only the X to close/reboot....

Can't figure it out yet.

Quote   Quote: Originally Posted by bendipa View Post
For those (like myself) who have stuck rigidly with Windows 7 you will probably be aware that if you have ever made a Windows CD repair disk (Windows RE) or on a flash drive, and you run a UEFI BIOS computer (not in CSM mode) you will get a "non compatible" error when you try to boot from it. Despite wading through this forum and Microsoft forums, no-one seems to have ever come up with a solution, since all articles deal with the case of running your computer on an MBR system where Windows RE works fine.

if you have a UEFI BIOS system which is not running in CSM mode , I've finally found a way of creating a Windows 7 RE on a flash drive which works like a charm. If you want details of how to do this let me know and I'll post up the procedure, which is easy to do manually.
My System SpecsSystem Spec
.

04 Aug 2018   #4
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Didn't you read the post above yours?

Quote:
it's trying (I think) to load HP's custom system restore
If you are using the HP winre.wim, there is an HP program included in it.

The HP program is most likely being loaded by a little text file called winpeshl.in That file is is in winre.wim in the windows\system32 folder.

You can change it to point at the MS recovery program. Easiest to use 7-zip.

https://www.7-zip.org/

This how the regular MS winre.wim looks

How to make a bootable UEFI system repair USB-7z1.jpg

How to make a bootable UEFI system repair USB-7z2.jpg

How to make a bootable UEFI system repair USB-7z3.jpg

How to make a bootable UEFI system repair USB-7z4.jpg


This is the standard MS entry.

winpeshl.ini is a text file, so you can change it with notepad. Click file>save. 7-zip will ask if you want to update it in the wim, click Yes.


My System SpecsSystem Spec
04 Aug 2018   #5
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Quote:
I have got it booting in UEFI from USB with the recovery .wim, but instead of asking me about the keyboard and going to the normal screen, it's trying (I think) to load HP's custom system restore (that would give option to restore to factory defaults) - but it only partially loads that - I get the graphic wallpaper and only the X to close/reboot....
Maybe it can't find the recovery.wim

Is the layout on your usb the same as the layout of the recovery partition?
My System SpecsSystem Spec
04 Aug 2018   #6
kimcheee

Windows 7 64bit Pro
 
 

Quote   Quote: Originally Posted by SIW2 View Post
Didn't you read the post above yours?



If you are using the HP winre.wim, there is an HP program included in it.

The HP program is most likely being loaded by a little text file called winpeshl.in That file is is in winre.wim in the windows\system32 folder......
THANK YOU THANK YOU THANK YOU for your useful post! This was the issue - the winpeshl.ini on the CD, which was created from Win7 Backup/Create a System Repair Disk, looks like this:
Code:
[LaunchApps]
X:\Windows\System32\wpeinit.exe, --unattend=X:\Windows\panther\unattend\unattend.xml
X:\Windows\RM\Launcher.exe
So, I replaced it with what you posted, and now my USB Repair Disk boots!!
(I'm not 100% sure what I had done earlier that got the USB to boot at all using UEFI, because when I follow the normal instructions to copy from the System Repair Disk, the USB does not show up as UEFI boot option. I found a YouTube video that had some instructions about creating a 'boot' folder in the USB's 'efi' folder (which on the CD only has a 'microsoft' folder) and copying a 'bcd' and a 'bootx64.efi' file there and that seemed to be the thing that worked to make the USB boot with UEFI.

Quote   Quote: Originally Posted by SIW2 View Post
Maybe it can't find the recovery.wim

Is the layout on your usb the same as the layout of the recovery partition?
That's one thing I still don't totally understand - my layout was exactly same as the System Repair CD created from Windows Backup, which, when booting from it, shows up as a UEFI entry, and goes to the normal Microsoft Repair environment. This HP was installed with Win7 Pro at factory, and no Windows install disk provided. The C:\Recovery folder is totally empty. There is a Recovery folder on the System Restore Partition, but it loads the HP Recovery envirornment.
But, I guess I don't need to understand it as with your help, I got what I wanted!!

I do have 1 more question for you, though: Since the price for the new Samsung 970 evo M.2 drive became attractive, I purchased one since the HP has M.2 slot. I installed it today, and booted up from old drive. Downloaded the Samsung M.2 driver, and the disk recognized in Windows. Then, booted Ghost4Linux and cloned my Windows drive to the M.2. (I had a SATA 256gb SSD as my Windows drive, and a 2nd SATA SSD for data, and the M.2 drive is 500gb, so no problem to Click'n'Clone.) Then, disconnected the old Windows drive, and the system booted up just fine from the M.2 drive!
BUT, the System Repair disk will not work now - whether it be the USB or CD - pretty sure that's because it doesn't include an M.2 slot driver. I'm thinking it might be possible to add that to the .wim?

Thanks again SIW2! I really appreciate your post!!!
My System SpecsSystem Spec
04 Aug 2018   #7
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

You need to integrate nvme drivers into your .wim

You can do it with dism++ Dism++ | New Windows Utility
Preferably, Copy the .wim ( it might be called boot.wim, but if it only contains 1 image it is the same as winre.wim) from your usb to a hard drive.
Mount the wim image to any empty folder ( just create a folder named MOUNT )
Add the drivers.

Save the updated image by clicking Save Image > select Direct Save.

Don't forget to Unmount the image after saving.

Then copy the updated .wim back into the sources folder of your usb.

Here are some drivers:

Windows_7_x64_nvme_17-07-18.zip

Windows_7_x64_usb3_1_17-07-18.zip

Windows_7_x64_usb3_2_17-07-18.zip


My System SpecsSystem Spec
06 Aug 2018   #8
bendipa

Windows 7 64 Bit
 
 

Hi kimcheee,

Bit late to reply, and see you've already solved the Windows RE issue, which seemed to be a different one to what others were experiencing. You seemed to be getting an HP boot override whereby your BIOS was forcing a factory default on you on boot-up. This is down to your system recovery partition which is a waste of space AFAIC.This peculiarity of HP machines can be useful, but also a nuisance when it's not wanted. It doesn't help you either should your drive fail. If you don't have a back-up on an external drive, you've lost all means of recovering your system and will have to do a reinstall. And if you have an external back-up then no need for a recovery partition.

My method of providing a repair disk/UFD for Windows 7 uses exactly the same files as you would find on a standard W7 repair disk without any interference from HP.

I don't own an HP machine (thankfully) but I would have thought somewhere in your BIOS settings is a means of disabling this HP feature.
My System SpecsSystem Spec
07 Aug 2018   #9
kimcheee

Windows 7 64bit Pro
 
 

Quote   Quote: Originally Posted by SIW2 View Post
You need to integrate nvme drivers into your .wim

You can do it with dism++ Dism++ | New Windows Utility
Preferably, Copy the .wim ( it might be called boot.wim, but if it only contains 1 image it is the same as winre.wim) from your usb to a hard drive.
Mount the wim image to any empty folder ( just create a folder named MOUNT )
Add the drivers.

Save the updated image by clicking Save Image > select Direct Save.

Don't forget to Unmount the image after saving.

Then copy the updated .wim back into the sources folder of your usb.

Here are some drivers:

Attachment 404694

Attachment 404695

Attachment 404696
THANK YOU AGAIN! - This did the trick and I was able to make the M.2 Nvme drive Windows boot drive!!!
And while benchmarks show I'm getting 5x or more disk speeds than with the SSD I was using, there's not much noticeable difference in regular usage as I was using only SSDs and 48gb RAM on 6th gen i7....

Quote   Quote: Originally Posted by bendipa View Post
Hi kimcheee,

Bit late to reply, and see you've already solved the Windows RE issue, which seemed to be a different one to what others were experiencing. You seemed to be getting an HP boot override whereby your BIOS was forcing a factory default on you on boot-up. This is down to your system recovery partition which is a waste of space AFAIC.This peculiarity of HP machines can be useful, but also a nuisance when it's not wanted. It doesn't help you either should your drive fail. If you don't have a back-up on an external drive, you've lost all means of recovering your system and will have to do a reinstall. And if you have an external back-up then no need for a recovery partition.

My method of providing a repair disk/UFD for Windows 7 uses exactly the same files as you would find on a standard W7 repair disk without any interference from HP.

I don't own an HP machine (thankfully) but I would have thought somewhere in your BIOS settings is a means of disabling this HP feature.
Thank you!
My System SpecsSystem Spec
Reply

 How to make a bootable UEFI system repair USB




Thread Tools




Similar help and support threads
Thread Forum
How to make windows 7 dvd SL (4.7gb) uefi bootable
Hello, I have made a windows 7 image with the versions I want in it and it fits on a sl 4.7 dvd. All I did was take the install.wim out of the original genuine windows 7 ultimate iso and modify it and put it back in it with daemon tools then burned it to a dvd SL. The problem is that I am not...
Installation & Setup
What is the difference between system repair disc and bootable USB?
I have various Windows 7 OSes installed on various computers. I just created a system image and have the option to create a system repair disc on either a CD or DVD. However, I know from my experiment yesterday on a different computer that I can access my system image using my bootable USB stick. I...
Backup and Restore
Need help creating a bootable system repair disk
When I attempt to create a system repair disk to be able to boot my newWIN 7, if it fails to start I am unable to on my new Win. However, when I follow the steps to create the disk I get a popup telling me windows repair disk has stopped working correctly - a problem has caused the program to stop...
General Discussion
Does my system image to a new hard drive make it bootable?
I used Macrium to make a system image of my existing drive onto a new hard drive and I made the system rescue boot disk too. (HP all-in-one desktop) I'm not certain about the next step. Do I just replace the old drive with the new one and boot up? It is a system image, so why not? What is...
Backup and Restore
Problem repair ,reinstall, make FreeAgent bootable , find HD serial
Hello All, I have many inquiries now here is my situation : I am not sure weather my machine is infected. It happens after I installed clock creensaver; after reboot to window 7, there is an information identified around that the previous hardware or software installation may cause...
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:10.
Twitter Facebook Google+