Você está na página 1de 2

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:
In the root of your USB drive, there is the \efi\microsoft\boot directory. Copy
this directory(boot folder) one level up (in efi folder) so the files also reside
under \efi\boot.
Copy the bootmgfw.efi file to \efi\boot, and rename it to bootx64.efi.
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: BIOSfor a BIOS boot and

Code:
Callback_BootEnvironmentDetect: Detected boot environment: UEFIfor 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.
disable the Compatibility Support Module (CSM) in your UEFI options, do so -
you'll get even faster boot times .

Você também pode gostar