bit-tech.net

Go Back   bit-tech.net Forums > Technology > Software

Reply
 
Thread Tools
Old 9th May 2011, 11:50   #1
r3loaded
Ultramodder
 
r3loaded's Avatar
 
Join Date: Jul 2010
Location: Manchester, UK
Posts: 1,062
r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.
Installing Windows 7 in native EFI mode from USB

Windows 8 users: This stuff is now unnecessary. Just copy the entire contents to a FAT32 USB drive and it should boot correctly in native EFI mode.

I got my replacement SSD at the weekend, and I wanted to install Windows so that it would take advantage of the native UEFI firmware of my Sandy Bridge motherboard. Booting the installer from the DVD will apparently boot you straight in EFI mode as you'd expect (I don't have Windows on disc so I wouldn't know). However, if you create a USB boot drive for the Windows 7 installer, the system will only boot in BIOS mode, and the installer will not let you install in EFI mode to GPT disks.

After a fair bit of googling and general hacking around, I've managed to get my P8P67-M Pro to boot the Windows installer from a USB drive in EFI mode. Here's what you need to do:

Requirements:
  • 4GB USB boot drive with Windows 7 64-bit installer - there are plenty of guides around the internet for creating one. Ensure that the drive correctly boots on a BIOS system.
  • A copy of bootmgfw.efi. You can obtain this from an install of 64-bit Windows 7 - look in C:\Windows\Boot\EFI. Alternatively, you can download a copy from here.
  • A system with native 64-bit UEFI 2.0 firmware. This is pretty much all Sandy Bridge systems (except for Gigabyte motherboards) and some new laptops.

Instructions:
  1. In the root of your USB drive, there is the \efi\microsoft\boot directory. Copy this directory one level up so the files also reside under \efi\boot.
  2. Copy the bootmgfw.efi file to \efi\boot, and rename it to bootx64.efi.
  3. Test the USB drive in a UEFI system. It should automatically boot with the UEFI method, but you may have to specifically choose UEFI boot depending on your system.

That's it! No need to write boot sectors or anything like that - as long as you have a FAT32 filesystem with a \efi\boot\bootx64.efi file, the computer should pick that up and start booting. There are now two methods to verify that the installer has indeed booted in EFI mode:
  • When you see the Install welcome screen, hit Shift+F10. This will open a command prompt. Run "notepad \Windows\Panther\setupact.log", and the log will show:
    Code:
    Callback_BootEnvironmentDetect: Detected boot environment: BIOS
    for a BIOS boot and
    Code:
    Callback_BootEnvironmentDetect: Detected boot environment: UEFI
    for a UEFI boot.
  • Open the command prompt with Shift+F10, but this time run diskpart. Use "list disk" to see all the disks on your computer, and type "select disk n" to select the disk with number n that you're going to install Windows to (usually 1). Type "clean" to clear the partition table, then run "convert gpt" to create a GPT partition table. Once that's done, close the command prompt and start the install process. When prompted for the disk to install to, choose the one that you just created a GPT partition table on. If no yellow exclamation mark warning appears, the installer will install Windows in EFI mode, creating the necessary EFI partitions and add the necessary bootloader entry to the EFI's NVRAM. Otherwise, you've booted in BIOS mode and the installer will not let you install to a GPT disk.

I hope you all find this useful!
__________________
Main: Silverstone FT03 | Asus P8P67-M Pro | i5 2500K @ 4.6Ghz | CM 212+ | 16GB Corsair Vengeance 1600Mhz | XFX Radeon 7970 DD | 500GB Samsung 840 Evo | CM Silent Pro Gold 600W | Samsung XL2270HD | KBT Race (brown switches) | Sidewinder X8 | Arch Linux + Windows 8.1
Server: Asus M3N78-AM | Athlon II X3 400e | 4GB Corsair XMS2 | 4x 2TB Samsung F4EG (RAID-5) | LSI MegaRAID 8708EM2 | Corsair CX400 | Arch Linux

Last edited by r3loaded; 2nd Sep 2012 at 10:51. Reason: Windows 8 info
r3loaded is offline   Reply With Quote
Old 12th Jun 2011, 18:11   #2
r3loaded
Ultramodder
 
r3loaded's Avatar
 
Join Date: Jul 2010
Location: Manchester, UK
Posts: 1,062
r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.
Another tip that you might find useful if the motherboard's EFI NVRAM has been reset somehow (perhaps you got a new board or something) or the default bootloader has been changed. Run
Code:
bcdedit /set {FWbootmgr} displayorder {Bootmgr} /addfirst
either from Windows or a WinPE environment and the EFI bootloader will be set back to the default Windows Bootloader.
__________________
Main: Silverstone FT03 | Asus P8P67-M Pro | i5 2500K @ 4.6Ghz | CM 212+ | 16GB Corsair Vengeance 1600Mhz | XFX Radeon 7970 DD | 500GB Samsung 840 Evo | CM Silent Pro Gold 600W | Samsung XL2270HD | KBT Race (brown switches) | Sidewinder X8 | Arch Linux + Windows 8.1
Server: Asus M3N78-AM | Athlon II X3 400e | 4GB Corsair XMS2 | 4x 2TB Samsung F4EG (RAID-5) | LSI MegaRAID 8708EM2 | Corsair CX400 | Arch Linux
r3loaded is offline   Reply With Quote
Old 22nd Aug 2011, 02:24   #3
Paul_T
What's a Dremel?
 
Join Date: Aug 2011
Location: Toronto, Canada
Posts: 1
Paul_T has yet to learn the way of the Dremel
Thank you for an elegant solution. It was a head scratcher why I could not EFI boot from my usb drive and due to the relatively recent mass arrival of Sandy Bridge there has not been a lot of posts with a solution to this little install snag.

Most appreciated.
Paul_T is offline   Reply With Quote
Old 26th Aug 2011, 16:56   #4
markoles
What's a Dremel?
 
Join Date: Aug 2011
Posts: 1
markoles has yet to learn the way of the Dremel
r3loaded thank you for such comprehensive post.
This is the best write up about installing Win 7 in EFI mode I could find.

It took me some time to get everything in order and I made several mistakes I would like to share.
My laptop is HP 4530S and and I was using USB stick with Windows 7 SP1 on it.

1. Do not use official Windows 7 USB DVD download tool to create bootable USB drive. It formats drive as NTFS and my laptop would never recognize it in EFI mode. I used http://sites.google.com/site/rmprepusb/ to format USB drive as FAT32 Win7 bootloader option and then manually copied files from DVD. Once I've done that I could browse the drive upon EFI boot and get following prompt

,Acpi(PNP0A03,0)/Pci(1D|0)/Usb(0,0)/Usb(0,0)/HD(Part1,Sig96EC2807)

2. My second mistake. Since the link above for bootmgfw.efi is not working I google for it. Search returned some mediafire file and it's wrong. Correct size for bootmgfw.efi should be around 657kB. When you boot in BIOS mode to test your new USB bootable drive, setup creates X: drive. I copied needed file from X:\Windows\boot\efi to USB stick. After renaming and rebooting in EFI mode again I picked my new bootx64 from the list and installation started. Yeah, we are getting somewhere.

3. I followed above instructions to clean and convert drive to GPT and then let GUI setup create three partitions and and formated third one. Windows setup complained again about not being able to install into hard drive and ask me to check controller. I rebooted to start setup again and computer recognized my newly created GPT drive.
My new setup prompt

,Acpi(PNP0A03,0)/Pci(1D|0)/Usb(0,0)/Usb(0,0)/HD(Part1,Sig96EC2807)
,Acpi(PNP0A03,0)/Pci(1F|2)/Sata(Port 0)HD(Part1,SigBB1E3064-6162-44AD-B017-313491)

Installation went smooth and OS Boot Manager boots me into my new EFI/GPT Windows 7
markoles is offline   Reply With Quote
Old 8th Dec 2011, 08:04   #5
kidmetal
What's a Dremel?
 
Join Date: Dec 2011
Posts: 1
kidmetal has yet to learn the way of the Dremel
Thanks for your useful information.

However, I would like to know is there any way to boot and install UEFI Windows 7 and Windows 8 from a single bootable USB install drive? Thank you!
kidmetal is offline   Reply With Quote
Old 1st Jan 2012, 16:29   #6
r3loaded
Ultramodder
 
r3loaded's Avatar
 
Join Date: Jul 2010
Location: Manchester, UK
Posts: 1,062
r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.
There's no simple dual-boot option as far as I am aware. What I did when I had both 32-bit and 64-bit copies of Windows 7 on my USB drive was to move the entire contents of one copy into a separate folder on the drive, and move the required copy to the root. When I needed to switch versions, I'd just move all the files into their own folder and the files from the other version back out into the root.

Not the most elegant solution but it works flawlessly.
__________________
Main: Silverstone FT03 | Asus P8P67-M Pro | i5 2500K @ 4.6Ghz | CM 212+ | 16GB Corsair Vengeance 1600Mhz | XFX Radeon 7970 DD | 500GB Samsung 840 Evo | CM Silent Pro Gold 600W | Samsung XL2270HD | KBT Race (brown switches) | Sidewinder X8 | Arch Linux + Windows 8.1
Server: Asus M3N78-AM | Athlon II X3 400e | 4GB Corsair XMS2 | 4x 2TB Samsung F4EG (RAID-5) | LSI MegaRAID 8708EM2 | Corsair CX400 | Arch Linux
r3loaded is offline   Reply With Quote
Old 5th Jan 2012, 22:25   #7
steve6375
What's a Dremel?
 
Join Date: Jan 2012
Posts: 1
steve6375 has yet to learn the way of the Dremel
Quote:
Originally Posted by kidmetal View Post
Thanks for your useful information.

However, I would like to know is there any way to boot and install UEFI Windows 7 and Windows 8 from a single bootable USB install drive? Thank you!
Using a USB Flash Drive (not a USB HDD) you can simply place the ISO files on the USB drive - see http://www.rmprepusb.com/tutorials/firawiniso - I am not sure if you can EFI boot to such a UFD though...
steve6375 is offline   Reply With Quote
Old 8th Jan 2012, 21:08   #8
r3loaded
Ultramodder
 
r3loaded's Avatar
 
Join Date: Jul 2010
Location: Manchester, UK
Posts: 1,062
r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.
EFI boot is actually easier than BIOS boot as you don't need to write a bootsector at all. As long as your disk has a FAT32 partition with the bootloader stored at \efi\boot\bootx64.efi, the system will pick it up and boot from that.
__________________
Main: Silverstone FT03 | Asus P8P67-M Pro | i5 2500K @ 4.6Ghz | CM 212+ | 16GB Corsair Vengeance 1600Mhz | XFX Radeon 7970 DD | 500GB Samsung 840 Evo | CM Silent Pro Gold 600W | Samsung XL2270HD | KBT Race (brown switches) | Sidewinder X8 | Arch Linux + Windows 8.1
Server: Asus M3N78-AM | Athlon II X3 400e | 4GB Corsair XMS2 | 4x 2TB Samsung F4EG (RAID-5) | LSI MegaRAID 8708EM2 | Corsair CX400 | Arch Linux
r3loaded is offline   Reply With Quote
Old 26th Jul 2012, 05:32   #9
vynbos
What's a Dremel?
 
Join Date: Jul 2012
Location: CAPE TOWN, SOUTH AFRICA
Posts: 2
vynbos has yet to learn the way of the Dremel
Thanks, r3loaded

This guide worked. Many of the other online guides didn't work for me.
I created my USB installation with WintoFlash which one can instruct to format the USB drive in FAT (I believe that NTSC format cannot be used for a UEFI installation which is why the "Windows 7 USB/DVD download tool" will not work-as as Markoles has pointed out. However because UEFI is becoming the standard, MS might, in time, update this tool to allow FAT formatting). I then followed R3loaded's steps and it installed without a hitch.

Quote:
My Specs
  • Windows 7 Ultimate x64 UEFI
  • CPU Intel® Core i7 2600 3.40GHZ 8MB Cache SKT 1155
  • Motherboard GIGABYTE H77M-D3H IVY BRIDGE SERIES
  • Bios Gigabyte-UEFI DualBIOS. version F6. 05/11/2012. ID 8A01AG0H
  • Memory 2x Transcend 4GB Jetram DDR3 1333 DIMM 9-9-9
  • OS Installed on Transcend 2.5" SATA3 SSD MLC Sandforce cntrl (GPT Partition)
vynbos is offline   Reply With Quote
Old 2nd Sep 2012, 10:50   #10
r3loaded
Ultramodder
 
r3loaded's Avatar
 
Join Date: Jul 2010
Location: Manchester, UK
Posts: 1,062
r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.
An update: I believe that it's worth mentioning that for Windows 8, the bootx64.efi file is placed correctly in the install image. Just copy the contents of the ISO to a FAT32 USB drive, and the firmware should pick it up and start the installer.
__________________
Main: Silverstone FT03 | Asus P8P67-M Pro | i5 2500K @ 4.6Ghz | CM 212+ | 16GB Corsair Vengeance 1600Mhz | XFX Radeon 7970 DD | 500GB Samsung 840 Evo | CM Silent Pro Gold 600W | Samsung XL2270HD | KBT Race (brown switches) | Sidewinder X8 | Arch Linux + Windows 8.1
Server: Asus M3N78-AM | Athlon II X3 400e | 4GB Corsair XMS2 | 4x 2TB Samsung F4EG (RAID-5) | LSI MegaRAID 8708EM2 | Corsair CX400 | Arch Linux
r3loaded is offline   Reply With Quote
Old 10th Sep 2012, 03:25   #11
koolwalky
What's a Dremel?
 
Join Date: Sep 2012
Posts: 1
koolwalky has yet to learn the way of the Dremel
Just registered to say this,

My disc did not have the bootx64.efi file which I used to make the USB. I followed your steps and ended up facing an error right after the initial boot.

File: \windows\system32\boot\winload.efi
Status: 0x000000f
Info: The selected entry could not be loaded because the application is missing or corrupt.

It appears that I don't have the EFI files anywhere on the disc, not even in the compressed files that make up my future Windows and System32 folders...
koolwalky is offline   Reply With Quote
Old 24th Sep 2012, 13:00   #12
wluv
What's a Dremel?
 
Join Date: Sep 2012
Posts: 4
wluv has yet to learn the way of the Dremel
Hey, i just registered here, because i have some troubleshooting to get this done.

I recently bought a new Laptop upgraded it to windows8, but did not like it at the current status, how ever i formated the OS partition and tried to install windows 7 prof again, encountered the GPT problem, followed the steps above, even used the "RMPrepUSB".
My problem, when i select the UEFI mode of my stick, the "Repairboot" (i call it this way, it trys to fix the lost OS) of windows 8, as if there were no stick, when i try the normal bios setup i get the error message, that a driver for my optical disc reader is missing (the ux32vd has no dvd reader).

Anyway thans for the thread, it gave me an idea at least.
wluv is offline   Reply With Quote
Old 8th Oct 2012, 14:03   #13
r3loaded
Ultramodder
 
r3loaded's Avatar
 
Join Date: Jul 2010
Location: Manchester, UK
Posts: 1,062
r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.r3loaded is definitely a rep cheat.
If you have a USB 2.0 port, try using that - Windows 7 (unlike Windows 8) does not have any inbox drivers for USB 3.0 controllers so that might be why you're getting those error messages.
__________________
Main: Silverstone FT03 | Asus P8P67-M Pro | i5 2500K @ 4.6Ghz | CM 212+ | 16GB Corsair Vengeance 1600Mhz | XFX Radeon 7970 DD | 500GB Samsung 840 Evo | CM Silent Pro Gold 600W | Samsung XL2270HD | KBT Race (brown switches) | Sidewinder X8 | Arch Linux + Windows 8.1
Server: Asus M3N78-AM | Athlon II X3 400e | 4GB Corsair XMS2 | 4x 2TB Samsung F4EG (RAID-5) | LSI MegaRAID 8708EM2 | Corsair CX400 | Arch Linux
r3loaded is offline   Reply With Quote
Old 19th Oct 2012, 17:42   #14
arnshea
What's a Dremel?
 
Join Date: Oct 2012
Posts: 1
arnshea has yet to learn the way of the Dremel
It works!

Quote:
Originally Posted by r3loaded View Post
Windows 8 users: This stuff is now unnecessary. Just copy the entire contents to a FAT32 USB drive and it should boot correctly in native EFI mode.

I got my replacement SSD at the weekend, and I wanted to install Windows so that it would take advantage of the native UEFI firmware of my Sandy Bridge motherboard. Booting the installer from the DVD will apparently boot you straight in EFI mode as you'd expect (I don't have Windows on disc so I wouldn't know). However, if you create a USB boot drive for the Windows 7 installer, the system will only boot in BIOS mode, and the installer will not let you install in EFI mode to GPT disks.
...
You are a life saver!!! This worked. I was installing from USB key (I throw out all my optical drives a month ago) so had to reformat it to FAT32 first. Also, had to reboot after converting the disk to GPT for the conversion to "take".

The yellow warning icon when selecting the GPT partition never went away but after converting then rebooting into setup the next button was no longer disabled. The install went without hitch.

One other thing - 2 of the USB slots on my ultrabook are usb 3.0, 1 is usb 2.0. The install didn't seem to work from the usb 3.0 slots. This might just be coincidence since I was trying a lot of things at once.

Thank you!!!
arnshea is offline   Reply With Quote
Old 1st Dec 2012, 02:32   #15
idontwannaknow
Modder
 
Join Date: Feb 2009
Posts: 50
idontwannaknow has yet to learn the way of the Dremel
I followed the steps mentioned but am having this error :

File: \windows\system32\boot\winload.efi
Status: 0x000000f
Info: The selected entry could not be loaded because the application is missing or corrupt.

I downloaded the bootmgfw.efi file from internet earlier but where do I get this winload.efi from?
idontwannaknow is offline   Reply With Quote
Old 6th Dec 2012, 16:40   #16
True_Blue
What's a Dremel?
 
Join Date: Dec 2012
Posts: 1
True_Blue has yet to learn the way of the Dremel
Quote:
Originally Posted by idontwannaknow View Post
I followed the steps mentioned but am having this error :

File: \windows\system32\boot\winload.efi
Status: 0x000000f
Info: The selected entry could not be loaded because the application is missing or corrupt.

I downloaded the bootmgfw.efi file from internet earlier but where do I get this winload.efi from?
I am having the same exact problem.

I got the bootmgfw.efi file from another Windows installation instead of downloading it though. But the same message is showing for me and I am not sure what to do.
True_Blue is offline   Reply With Quote
Old 6th Dec 2012, 22:25   #17
pipe
What's a Dremel?
 
Join Date: Dec 2012
Posts: 1
pipe has yet to learn the way of the Dremel
I followed all the steps
My HP Pavilion Sleekbook 14 have the UEFI system

But, when i try to boot with efi, this error jumps

Windows Failed to start. A recent hardware blablabla...

File: \EFI\Microsoft\Boot\BCD
Status: 0xc000000d
Info: An Error Ocurred while attempting to read the boot configuration data

Sorry my bad english!
pipe is offline   Reply With Quote
Old 17th Dec 2012, 21:13   #18
IntricateRuin
What's a Dremel?
 
Join Date: Dec 2012
Posts: 1
IntricateRuin has yet to learn the way of the Dremel
Quote:
Originally Posted by pipe View Post
I followed all the steps
My HP Pavilion Sleekbook 14 have the UEFI system

But, when i try to boot with efi, this error jumps

Windows Failed to start. A recent hardware blablabla...

File: \EFI\Microsoft\Boot\BCD
Status: 0xc000000d
Info: An Error Ocurred while attempting to read the boot configuration data

Sorry my bad english!
Did you ever resolve this? I'm having the same issue trying to get the installer to run on an ASUS X501A. Seems many people have seen this problem, but there doesn't seem to be any documented solution.

Cheers
IntricateRuin is offline   Reply With Quote
Old 9th Jan 2013, 10:50   #19
DrWolfenstein
What's a Dremel?
 
Join Date: Jan 2013
Posts: 1
DrWolfenstein has yet to learn the way of the Dremel
Quote:
Originally Posted by idontwannaknow View Post
I followed the steps mentioned but am having this error :

File: \windows\system32\boot\winload.efi
Status: 0x000000f
Info: The selected entry could not be loaded because the application is missing or corrupt.

I downloaded the bootmgfw.efi file from internet earlier but where do I get this winload.efi from?
I have had the same, still stuck with win 8 which i just dont like. Is there any more info on this please?
DrWolfenstein is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:39.
Powered by: vBulletin Version 3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.