Add multiple WindowsToGo images

E2B can directly MBR-boot from a .VHD or .VHDX Windows file. The file does not need to be contiguous.
 
To UEFI-boot, we need to convert the payload to an image partition (.imgPTN) file using MakePartImage. The system partition contains the boot files in the \EFI folder and needs to be formatted as FAT32 to make it UEFI-bootable. The Windows OS files can be on a separate NTFS partition.
 
MBR-booting: if UEFI-booting is not required (or not supported), you need only create one large NTFS .imgPTN partition and use this as both the boot and system partitions or just copy a VHD file to your E2B USB drive.
 
Windows 8.1/10 will not boot from a Removable USB drive unless you create a VHD file (see below).
 
Note1: E2B v.1.69+ can directly MBR-boot from .VHD or .VHDX Windows 7/8/10 OS files. Just copy the Windows VHD\VHDX files (must not contain spaces in the filename) to one of the E2B menu folders such as \_ISO\MAINMENU or \_ISO\WIN and boot (the file does not even need to be contiguous). The VHD/VHDX must contain a fully installed copy of Windows - if you boot from a VHD that contains a Setup install or Sysprep'ed OS  (e.g. as made by WinNTSetup or ImageX), the setup process on the first boot will report an error because of the lack of boot files or a boot partition.
 

For instructions on how to create Windows 7/8/10 VHDs easily, read my blog posts he  re and here .

Note2: Direct booting from a VHD in E2B requires a Windows 8.1 version of bootmgr (or similar) in \_ISO\e2b\grub\DPMS\NTBOOT.MOD folder (the Windows 10 bootmgr gives a BSOD 0xc00000bb bad BCD error!). See here for more details.

 

How to add MBR-bootable WindowsToGo payloads easily (7/8/8.1/10)

Booting to WindowsToGo from a normal installation does not work if the USB drive is a Removable USB drive for Win8.1 and Win10 (flat file installations).
 
However, Windows 7 Ultimate and Enterprise, and Win8/8.1/10 do allow you to boot from a VHD even from a Removable USB drive.
 
WinToUSB allows us to quickly add WinToGo VHDs to an E2B USB drive (Fixed disk or Removable type).  

Note: If the system that you boot from was previously activated for Windows 10, then Win10ToGo will be automatically activated when you boot to it (as long as the Home/Pro edition matches what was previously installed).

1. Make sure the E2B USB drive is in the normal E2B Menu mode (not in CSM Menu mode) and you can see the \_ISO and other folders. An NTFS-formatted E2B drive will be required (not FAT32-formatted).
 
If you prefer, you can use WinToUSb with a spare NTFS USB drive and later on, just copy the VHD to your E2B USB drive (as in Step 6).

2. Run WinToUSB, select a Win7 Ultimate or Enterprise ISO or Win8/8.1/10 ISO and then specify a VHD on the E2B drive (e.g. 20GB)

3. When WinToUSB has completed, boot from the E2B drive - it should boot to Windows immediately (i.e. no E2B menu).
 
VirtualBox+VMUB can be used for this or a real system.

4. Complete the final Windows OOBE Setup Stage as normal

5. Now re-install grub4dos to both the MBR and PBR of the E2B USB drive again using RMPrepUSB.

  • RMPrepUSB - Install grub4dos - Yes=MBR (do not update \grldr)
  • RMPrepUSB - Install grub4dos - No=PBR      (do not update \grldr)
6. Move the large \WinToUSB.VHD file that was made by WinToUSB to the \_ISO\MAINMENU folder (or any of the other normal menu folders - e.g. \_ISO\WIN) and rename it as required - e.g. Win7UltToGo.VHD or Win8_Pro_64.VHD (do not use spaces in the filename).

Note: E2B needs the file bootmgr in the \_ISO\e2b\grub\DPMS\NTBOOT.MOD folder on the Easy2Boot USB drive. Do not use the Windows 10 version of bootmgr (10-07-2015 395,268 bytes) as this gives a BSOD 0xc00000bb error! This file may have already been copied by the MAKE_E2B_USB_DRIVE (run as admin).cmd script when you first made the E2B drive. E2B will warn you if it is missing or if it is an incompatible version. If bootmgr cannot be found in the  \_ISO\e2b\grub\DPMS\NTBOOT.MOD folder then \bootmgr in the root of the E2B drive will be used (if present).

Now tidy up - Delete the \boot folder from the E2B USB drive and the \bootmgr file. If you don't remove the boot files or don't move the VHD file, WinToUSB will refuse to add another OS if you try to add another one.
 
 

E2B NTFS USB Hard Disk (MBR+UEFI)

This will make a 64-bit WinToGo system from a 64-bit Windows Install ISO that will boot on both UEFI and MBR 64-bit systems.
If you use a 32-bit Windows UEFI source ISO (e.g. Windows 8.1 32-bit) then it will be bootable on 32-bit UEFI and MBR systems.
 
1. Make an empty folder on your Windows system - e.g. c:\temp\EMPTY
 
2. Run MakePartImage and make a 150MB FAT32  WinToGo.imgPTN file using the C:\temp\EMPTY\ folder as the source. Drag-and-drop the empty folder onto the MPI_FAT32 Windows Desktop shortcut.
 
3.  Drag-and-drop the empty folder onto the MPI_NTFS Windows Desktop shortcut to make a larger (e.g. 15000MB)  NTFS  WinToGo.NOEXT file (it must have a file extension or you will get an error!)
 
4. Copy the two files to \_ISO\MAINMENU and rename them as you require  (no file extension for the large file) - the file names MUST be identical.
 
                               WinToGo.imgPTN       (small 150MB file)
winToGo.NOEXT  --> WinToGo                     (large file)
 
5. Boot to the E2B USB drive (either use RMPrepUSB - QEMU, or VBox or other VM or a real system)
 
6. Select WinToGo.imgPTN and switch to E2B CSM menu and then quit the VM.
You should now see two partitions in Windows Explorer (if not unplug and re-connect the E2B USB drive).
 
Note: Instead of step 5&6, just use \_ISO\SWITCH_E2B.exe to switch partitions.
 
  • Select a 64-bit Windows Install ISO as the source (Win8/8..1/10 recommended) - I tested with Win8.1 Enterprise Evaluation version.
  • Select the small ptn as system ptn
  • Select the large ptn as boot ptn
Wait until it has finished installing and quit WinToUSB.
 
If you prefer, you can use WinNTSetup v3 instead (mount the ISO first and select the \sources\install.wim file in WinNTSetup). 
  • Select a 64-bit Windows \sources\Install.wim file from a mounted ISO as the source (Win8/8..1/10 recommended) - I tested with Win8.1 Enterprise Evaluation version.
  • Select the small ptn as system ptn
  • Select the large ptn as boot ptn
  • Use the 'ALL' option (default)
You can skip the next step if you used WinNTSetup.

Read more: http://www.easy2boot.com/add-payload-files/wintogo/
 
 
8. (only required if you used WinToUSB) - Open a Windows Administrator console and type  (where G: is the 2nd large USB drive partition and E: is the first small partition)
 
G:\Windows\System32\bcdboot g:\windows /s E: /f ALL /v
 
It should report 'Boot files successfully created.'
 
Note: This requires the Win8 or later version of bcdboot.exe. If installing Win7ToGo, you can get the correct version of bcdboot using GetWAIKTools. (untested!)
 
9. Reinstall grub4dos to the MBR using RMPrepUSB - Install grub4dos (YES=MBR) as WinToUSB\WinNTSetup will have removed the grub4dos MBR code. Do NOT install grub4dos to the PBR.
 
10. Tidy up (optional) - delete the folders\files listed below from the 2nd large partition ONLY (the partition with the \Windows and \Users folder on it):
 
\e2b folder
\Clover folder
\boot6
\boot7
\menu.lst
\grldr
\PBR.BIN
\CUSTOM.txt
\autorun.inf
\autorun.ico
\EFI
 
Now boot it from a REAL SYSTEM (either UEFI or MBR system boot) to set up Windows.
If the system is an MBR system, you can use Clover to boot it in UEFI-mode if you wish, or just boot it in MBR mode natively.
 
Once you have finished with WinToGo, you can restore the E2B partitions by booting in MBR mode and selecting  Menu entry 0 from the CSM grub4dos menu or by running the \e2b\RestoreE2B.cmd or SWITCH_E2B.exe file from the E2B drive itself as usual.
 
You can add as many more WinToGo OS's to the E2B USB HDD in the same way.
 
Note: If using Win7ToGo, use a USB 2.0 port as Win7 does not support booting from USB 3.0 ports. For best results and USB 3.0 support, Win 8.1 or 10 is recommended.
 
If you move or copy the .imgPTN file (even on the same drive), it will no longer boot to Windows because the Disk Signature will be different. To fix this, you will need to run BootIce or bcdboot again to correct the BCD(s). Note that this also means that you cannot just copy the .imgPTN file to another E2B USB drive and expect it to work.
 

E2B USB Removable Flash drive - Win7 only (MBR+UEFI - not for Win8.1/Win10)

This will allow you to MBR and UEFI-boot WindowsToGo. Windows 8.1/10 will not boot from a Removable USB drive unless you use a .VHD file, so use Win8.0 instead (or Win7). 
 
Win7ToGo is not really suitable to run from a flash drive because it needs some tweaking (disable paging, etc.). Use Win8/10 for better results.
 
1. Make an new empty folder on your Windows system - e.g. c:\temp\EMPTY
 
2. Make a large OS partition image (e.g. 15000MB)  NTFS WinNTFS.imgPTN - drag-and-drop the C:\temp\EMPTY folder icon onto the MakePartImage Desktop shortcut and answer the prompts using the empty folder as the Source, e.g.
 
Y (FAT32)
15000                                     (Size of image)
C:\temp\WinNTFS.imgPTN    (OUTPUT FILENAME)
WinToGo                                 (VOLUME NAME)
WindowsToGo                         (CSM menu title)
Y                                            (to continue)
 
3a. Download and extract the EFI_TOGO_v2 zip file and extract it to the C:\temp\EMPTY folder - you should now have a C:\temp\EMPTY\EFI folder with more files&folders under it.
 
EFI_TOGO is taken from the UEFI To Go project by P Batard (author of Rufus). This will allow you to UEFI-boot directly from the 32-bit or 64-bit UEFI system firmware. As an alternative, you can use the files in the E2B_UEFI_BOOT_ADDON download which will boot to rEFInd.
 
You can find these files in the Alternate Downloads pages here.
 
3b. Make a small FAT32  WinFAT.imgPTN file using the C:\temp\EMPTY\  folder as the source. Just drag-and-drop the C:\temp\EMPTY folder onto the MPI tool MPI_FAT32 Desktop shortcut.
 
4. Copy the two .imgPTN files to \_ISO\MAINMENU and rename them as you require  (no file extension for the small FAT32 file) - both file names MUST be identical.
 
WinFAT.imgPTN     --> WinToGo.                              (FAT32)
WinNTFS.imgPTN  -->  WinToGo.imgPTN                 (NTFS)
 
5. Boot to the E2B USB drive (either use RMPrepUSB - QEMU or VBox or other VM or real system)
 
6. Select WinToGo.imgPTN and switch to E2B CSM menu and then quit the VM.

You should now see just the NTFS empty partition in Windows Explorer (if not unplug and re-connect the E2B USB drive).
 
  • Select a 64-bit Windows Install ISO as the source (Win8 x64 recommended)
  • Select the same ptn as system ptn and boot ptn
Wait until it has finished installing and quit WinToUSB.
 
If you prefer, you can use WinNTSetup v3 instead (mount the ISO first and select the \sources\install.wim file in WinNTSetup). 
  • Select a 64-bit Windows \sources\Install.wim file from a mounted ISO as the source (Win8 recommended, but not 8.1 if using a Removable USB drive!)
  • Select the same USB ptn as system ptn and boot ptn
  • Use the 'ALL' option (default) - select 'Do Not update the boot code' from the drop-down list.
You can skip the next step if you used WinNTSetup.
 
 
8. Open a Windows Administrator console and type  (where G: is the 2nd large USB drive partition and E: is the first small partition)
 
G:\Windows\System32\bcdboot g:\windows /s E: /f ALL /v
 
It should report 'Boot files successfully created.'
 
Note: This requires the Win8 or later version of bcdboot.exe. If installing Win7ToGo, you can get the correct version of bcdboot using GetWAIKTools. (untested!)
 
9. Reinstall grub4dos to the MBR using RMPrepUSB - Install grub4dos (YES=MBR) as WinToUSB\WinNTSetup will have removed the grub4dos MBR code. Do NOT install grub4dos to the PBR.
 
 
Now boot it from a REAL SYSTEM (either UEFI or MBR system boot) to set up Windows.
If the system is an MBR system, you can use Clover to boot it in UEFI-mode if you wish, or just boot it in MBR mode natively or UEFI-boot using the system firmware boot option.
 
Once you have finished with WinToGo, you can restore the E2B partitions by booting in MBR mode and selecting  Menu entry 0 from the CSM grub4dos menu or by running the \e2b\RestoreE2B.cmd file from the E2B drive itself as usual.
 
You can add as many more WinToGo OS's to E2B in the same way.
 
Note: If using Win7ToGo, use a USB 2.0 port as Win7 does not support booting from USB 3.0 ports.
 
 
If you move or copy the .imgPTN file (even on the same drive), it will no longer boot to Windows because the Disk Signature will be different. To fix this, you will need to run BootIce or bcdboot again to correct the BCD(s). Note that this also means that you cannot just copy the .imgPTN file to another E2B USB drive and expect it to work.
 
 

Rufus & WinToGo

The latest version of Rufus 2 has a WindowsToGo feature which will automatically format and make a USB WinToGo flash drive from a Windows Install ISO.

If you have made a Rufus WinToGo MBR+UEFI flash drive, you can use the contents of the NTFS partition as the Source to make a large NTFS .imgPTN file and  follow steps 3a and 3b above to make the other FAT32 partition image file.

Note: If you have a Removable E2B USB flash drive, Win8.1/10 will not boot (see below).

 

Booting WinToGo using a VHD (recommended for Win8.1/10 + a Removable USB)

See here for how to make and boot using a VHD (MBR booting). You can boot Windows 8.1 from a Removable USB drive using this method (or a USB hard disk).

As an alternative, you could just have an E2B USB HDD containing lots of VHD's and just a FAT32 .imgPTN23 file for each different version.

e.g.

E2B Partition 1 - containing E2B files with WinToGo8.imgPTN23, WinToGo8.1.imgPTN23, Win7ToGo.imgPTN23, etc.

E2B Partition 2 - containing many vhds, e.g. \Win8.vhd, \Win8.1.vhd, etc.

Then load the .imgPTN23 file to get to CSM mode, configure the BCD(s) to point to the vhd file on the 2nd partition

Tip: If you have a 64-bit WinToGo .imgPTN file, add '64' to the end of the file extension and it will only appear in the E2B menu if you are running on a 64-bit system - e.g. Win81ToGo.imgPTN64.

You can also directly MBR-boot from a WindowsToGo  .VHD or VHDX file with E2B v1.69+. However, the VHD must contain a fully pre-installed version of Windows (i.e. it should not run Setup on first boot or it will fail).

WinToGo UEFI booting from a Removable E2B USB drive

For Win8.1 and 10, this is tricky but can be done using a VHD.
 

For MBR+UEFI booting of Windows To Go from a Removable drive, you can adapt the method described here. You will need to create two .imgPTN files first (e.g. 300MB FAT32 Win.imgPTN and 20GB NTFS Win) and then switch to CSM mode first.

 

Activation

WindowsToGo is a full installation of Windows and will require activation if you want to use it regularly. When you activate a normal Windows OS and enter a Product Key, the hardware signature is registered with Microsoft and added to the OS itself. Once activated, if you boot the same OS on a different system, it will not be activated.

For this reason, you should use a volume licence version of Windows (e.g. Windows 8 Enterprise version) if you need an activated copy of WindowsToGo or use a Trial Enterprise version (90 day) and then re-install it again when it expires. A volume licence version of Windows is not hardware-locked.

Tip: Once you have prepared the .imgPTN files, make a copy of them before you boot them for the first time. When the 90 day trial period ends, just replace the .imgPTN file with a copy of the original.

If you name the .imgPTN as .imgPTNaLBA23 the 2nd partition of your E2B drive will not be removed and so will remain accessible. You can therefore keep all your portable Windows applications, drivers and documents on the 2nd partition.

If you boot to Windows 10 To Go Home/Pro on a system that had previously contained an activated Windows 10 Home/Pro OS, then it should 'phone home' and automatically activate provided that the Edition is the same as the one that was previously activated.

 





More Info