- A 4gb or larger usb stick
- A Windows 7 Ultimate x64 iso (download is provided later)
- A bootmgfw.efi file from a working windows installation or from online
I tried the Microsoft USB/DVD download tool, which I don't recommend using. I also used an ei.cfg iso removal tool from http://code.kliu.org/misc/winisoutils/. This is also unnecessary.
First, here are some things that did not work.
- I've used the ei.cfg removal tool in the past. It is supposed to set a flag so that the ei.cfg file does not get written when burning a dvd. It worked before. Now that I was extracting the files to usb, the flag was not honored.
- The MS USB/DVD download tool will burn the iso file to a usb drive or dvd. I used it to write the iso to my usb stick. It wrote the files just fine, but it formats the drive to NTFS. This will not work with uefi machines. I tried to format the usb stick to fat32 and then run the MS tool, but it reformatted to NTFS.
- The first step is to download the Windows 7 Ultimate x64 iso from http://msft.digitalrivercontent.net/win/X17-24395.iso
- I prepped the usb drive following the guide at Maximum PC.
- Format to fat32
- Open admin cmd prompt
- Run diskpart
- Type "listdisk" and find the usb stick
- Select the disk with "select disk X" where X is the disk number from listdisk
- "clean" - removes all partitions
- "create partition primary" - creates a new primary partition
- "select partition 1" - selects the new partition
- "active" - makes partition 1 active
- "format fs=fat32" - this is different from the guide, which uses ntfs
- "assign" - to give the usb stick a drive letter. It might get one automatically after formatting.
- "exit" - exits diskpart
- I extracted the files from the iso to a folder on my computer.
- There is a great utility in the Windows 7 installer to create a bootable usb drive. In the boot directory, there is a utility called bootsect.exe. In the command prompt, cd to the boot directory and type the following, where x is the drive letter of the usb stick:
c:\temp\win7\boot>bootsect /nt60 x:
This will create a bootable fat32 usb stick. - Copy the extracted files to the usb drive. This will give a usb stick that will install Windows 7 Ultimate x64 on bios machines.
- Remove the ei.cfg file from the usb stick. It will be in the sources folder. The ei.cfg file tells the installer which version of Windows 7 to install. Without it, it will ask the user during install. Now you have a usb stick that will install any version of Windows 7 x64 on bios machines.
- Two more things need to be done to get this to boot on an uefi machine.
- Copy the "boot" folder under efi\microsoft to the efi directory so that it is efi\boot.
- From a working Windows 7 machine, copy c:\windows\boot\efi\bootmgfw.efi to usb stick\efi\boot. If you don't have a working Windows 7 machine, you can find the file online.
No comments:
Post a Comment