Jump to content











Photo
* * * * * 1 votes

UEFI MULTI - Make Multi-Boot USB-Drive

uefi linux windows 10 ssd aio boot vhdx wim usb multiboot

Best Answer wimb , 11 May 2020 - 12:18 PM

Update USB_FORMAT-50 and UEFI_MULTI-50

 

Manual:  Attached File  Win10_Install.pdf   659.52KB   64 downloads

 

At MSFN there is topic USB Format Tool and UEFI_MULTI

All my projects are now available for Download as Releases at wimb GitHub

 

Download:  USB_FORMAT  and   UEFI_MULTI  and  VHD_WIMBOOT  and WOF_Compress and  System_Info  and  MBR_Backup

 

:cheers:

Go to the full post


  • Please log in to reply
262 replies to this topic

#226 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 13 April 2019 - 09:22 AM

*** Update UEFI_MULTI - Version 88 ***

 

Download : UEFI_MULTI-88.zip   - password is bootwimb

 

- internal BCD create entry improved - solution also working without default entry present

- external BCD create entry improved so that default entry cannot be overwritten anymore

- Language Version is taken into account in making BCD entries



#227 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 24 April 2019 - 06:48 PM

*** Update UEFI_MULTI - Version 88 ***

 

- Solution for missing file Boot\bootvhd.dll in case Boot Manager BCD menu was made earlier by MediaCreationTool

 

File Boot\bootvhd.dll is essential to make the VHD entry appear in BIOS Boot Manager menu.

 

Download : UEFI_MULTI-88.zip  - Encrypted with password =  bootwimb



#228 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 20 June 2019 - 07:09 AM

*** Update UEFI_MULTI - Version 90 ***

 

- Grub4dos Updated to version grub4dos-0.4.6a-2019-06-17

 

- Partition Style (GPT Or MBR)  and Firmware (UEFI Or Legacy) detected

- grub4dos and Boot\BCD are NOT added to EFI GPT Partition, but are only added to Boot Drive in case of MBR Partition Style

- In Win 8/10 x64 OS then UEFI Boot Manager menu is created or modified in efi\microsoft\boot\BCD in all cases for booting WIM, VHD and VHDX files

 

- Get Access to your Hidden EFI Boot Drive to Add VHD Or WIM as Boot option to your machine
- In Windows 10 x64 run WinNTSetup x64 so that EFI partition is mounted as drive Z:
- Or use R-mouse to open admin cmd window and mount the EFI partition using mountvol Z: /s

 

Download : UEFI_MULTI-90.zip  - Encrypted with password =  bootwimb



#229 steve6375

steve6375

    Platinum Member

  • Developer
  • 7311 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 20 June 2019 - 07:20 AM

Do you know what the latest grub4dos version fixes? Was there an issue with it?



#230 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 20 June 2019 - 07:24 AM

Do you know what the latest grub4dos version fixes? Was there an issue with it?

 

I don't know but simply has updated to latest grub4dos version when updating UEFI_MULTI.

 

Anyway latest grub4dos version was tested by me and is working OK.



#231 steve6375

steve6375

    Platinum Member

  • Developer
  • 7311 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 20 June 2019 - 07:54 AM

Seems that the original code was changed in 2018-12-23 version...

2018-12-23 (yaya)   Fixed reading the disk out of bounds without alarm.

and changed back to pre-2018-12-23 code in this new version!



#232 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 20 June 2019 - 08:21 AM

Seems that the original code was changed in 2018-12-23 version...

 

Yes I know, but that was already fixed in previous UEFI_MULTI version having grub4dos-0.4.6a-2019-03-25 version

 

Needed for booting expandable VHD from RAMDISK using grub4dos and SVBus driver, See also here and here



#233 steve6375

steve6375

    Platinum Member

  • Developer
  • 7311 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 20 June 2019 - 08:55 AM

No - you misunderstand.

In the 2018-12-23 version, some code was change in disk_io.c (to do with accessing a file outside of partition)

This appears to have introduced a bug because the old code lines were restored back again in the 2019-06-17 version.

So all versions from 2018-12-23 to 2019-06-13 apparently have this bad code.

As far as I can tell however, you would only see the affects of this buggy code if there was a file very near the end of a partition.


  • wimb likes this

#234 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 20 June 2019 - 09:08 AM

Ok thanks for giving explanation.



#235 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 12 July 2019 - 08:02 AM

*** Update UEFI_MULTI - Version 91 ***

 

- VHD  can be in Folder max 8 chars located on NTFS System Drive

- VHD is never Copied to System drive, but must be located in Root or Folder of NTFS System Drive

- Solved - Failure in Windows PE to create fresh working Boot Manager on empty disk

 

Download : UEFI_MULTI-91.zip



#236 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 12 September 2019 - 09:23 AM

How to Add Windows 10XPE as Boot Option to your Internal Harddisk Or SSD

 

1. Create on your Internal Harddisk / SSD the folder Win10XPE with files Win10XPE.wim and boot.sdi
2. Run BOOTICEx64.exe of BOOTICE v1.3.3.2 or as given by alacran and select BCD of current system in Easy mode
3. Add New WIM Boot entry and Select Disk and Partition of Win10XPE and Edit File, SDI file and OS title as indicated
4. Save Current System and Close
5. In BOOTICEx64.exe select BCD of current system in Professional mode
6. In Win10XPE entry with R-mouse Add New element - BootMenuPolicy with setting Legacy
7. In Win10XPE entry with R-mouse Add New element - LoadOptionsString with value DISABLE_INTEGRITY_CHECKS
8. In {ramdiskoptions} or other guid entry use doubleclick on SdiDevice to Select Boot disk and Boot part
9. In {ramdiskoptions} or other guid entry use doubleclick on SdiPath to edit and give value \Win10XPE\boot.sdi
10. Edit normal Windows 10 entry so that BootMenuPolicy is Legacy, which allows on booting straight to select Windows 10 Or Win10XPE 
 
How to make Win10XPE WIM file for booting from RAMDISK  is described in

 

W10XPE_Easy_2019-09-12_104342.png == W10XPE_2019-09-12_102847.png == W10XPE_ramdiskoptions_2019-09-12_112052.png
 
Booting with Win10XPE from RAMDISK loaded from Internal SSD is powerful, convenient and extremely fast  B)

  • alacran likes this

#237 alacran

alacran

    Gold Member

  • .script developer
  • 1489 posts
  •  
    Mexico

Posted 12 September 2019 - 11:33 PM

Hi wimb

 

Nice finding, my friend, LoadOptionsString = DISABLE_INTEGRITY_CHECKS let us disable the integrity check for this especifical item in BCD, keeping the integrity check enabled for all the other entries.

 

I don't know if you could implement this on UEFI MULTI for all entries added by the program to BCD (on internal or external) storage device, but it seems as a good improvement if possible.

 

I like to boot my VHDs, *.wims and/or Isos from internal disk/drive as much as possible, nevertheless I always have also an UEFI MULTI USB device just in case.

 

alacran



#238 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 13 September 2019 - 04:56 AM

LoadOptionsString with value DISABLE_INTEGRITY_CHECKS solution for Win10XPE and other PE was given by JFX long ago (around 2013 ?) 

and has been implemented in UEFI_MULTI since then for making boot entries for Windows PE located on FAT32 boot drive for booting from RAMDISK.

 

For the internal harddisk the existing FAT32 boot partition is mostly too small to accomodate Win10XPE and the FAT32 drive is hidden and not easily accessible.

In the present solution the Win10XPE can be accomodated on the Windows NTFS partition or other primary NTFS partition.

BOOTICE can modify the BCD of the current system to Add entry for WIM file and allows to indicate disk and partition where the Win10XPE.wim and boot.sdi file are located.

 

Loading Win10XPE from internal SSD is extremely fast whereas loading from USB can be rather slow, however a portable SSD is also fast.



#239 alacran

alacran

    Gold Member

  • .script developer
  • 1489 posts
  •  
    Mexico

Posted 13 September 2019 - 05:16 PM

Sorry, I use bootIce a lot, but as almost all can be done on easy mode and I rarely use professional mode never noticed is was implemented on UEFI MULTI for .wim(s) located on FAT-32 pàrtition, so this LoadOptionsString = DISABLE_INTEGRITY_CHECKS was new for me.

 

alacran



#240 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 14 September 2019 - 07:27 AM

*** Update UEFI_MULTI - Version 92 ***

 

- Win10XPE or other PE WIM file + boot.sdi file can be located (also in folder) on NTFS System Drive  :thumbup: e.g. of Internal Harddisk / SSD

- The Hidden FAT32 EFI Boot Drive of Internal Harddisk / SSD is auto mounted as Drive Z: Y: S: Or T: so that it can be selected in UEFI_MULTI

 

This allows to add simply Win10XPE or other PE WIM as boot entry in BCD of Boot Manager menu for your Internal Harddisk or SSD

 

Loading Win10XPE.wim size 775 MB from Internal SSD into RAMDISK takes only 3 seconds  :w00t: and 7 seconds from Portable SSD connected via USB 3.0

 

Total Boot time for Win10XPE is then about 30 seconds from Boot Manager menu until Desktop.

 

 

Download : UEFI_MULTI-92.zip

 

How to make Win10XPE WIM file for booting from RAMDISK at MSFN Forum

 

Win10XPE-2019-09-14_133643.png

 

:cheers:


  • alacran likes this

#241 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 30 September 2019 - 07:09 AM

*** Update UEFI_MULTI - Version 93 ***

 

- Calculation of Overflow improved for case of Win10XPE located on NTFS System Drive

 

Download: UEFI_MULTI-93.zip



#242 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 26 October 2019 - 12:28 PM

*** Update UEFI_MULTI - Version 94 ***

 

The selected USB Boot Drive of USB Fixed Disk with MBR partitioning is always Set Active

- bootsect.exe is used if needed to Fix the MBR and PBR Boot code of USB Boot Drive for booting in BIOS mode with Boot Manager Menu

- Update MBR Boot Code checkbox will force to use bootsect.exe on USB Boot Drive of USB Fixed Disk

- removal of old stuff like MbrFix64.exe MBRWiz.exe and grubinst.exe and more ....

 

Download: UEFI_MULTI-94.zip

 

For USB Boot Drive P: of MBR partitioned disk we can Fix the MBR and PBR Boot code for booting in BIOS mode with Boot Manager Menu using:

bootsect.exe /nt60 P: /mbr


#243 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 06 March 2020 - 01:36 PM

*** Update UEFI_MULTI - Version 95 ***

 

- Grub4dos Update to Version grub4dos-0.4.6a-2020-02-29

- Update of Grub4dos files menu.lst and menu_Linux.lst in folder makebt

- Update of Grub2 Menu files grub_Linux.cfg and Main.cfg in folder UEFI_MAN

 

Download:  UEFI_MULTI-95

 

UEFI_MULTI Program compatible with USB Format Tool

 



#244 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 28 March 2020 - 11:52 AM

Update of Manual:   and Short Info :

 

- Added Section: How to make USB Drive booting with various Linux ISO versions in BIOS and in UEFI Secure mode

 

UEFI_MULTI supports three ways to Boot Linux ISO files:

 

1. Boot from USB straight with Grub4dos menu entry in BIOS mode Or with Grub2 menu entry in UEFI Secure mode - method is fast and reliable

menu entries are already available e.g. for linuxmint.iso - runtimelivecd.iso - knoppix.iso - ubuntu.iso - ubuntu-19.10-desktop-amd64.iso

2. Boot from USB with a1ive Grub2 File Manager, which is a blackbox that enables to select Linux ISO - available in BIOS and UEFI Secure mode

3. Boot from USB with AIO Boot - previous Integration of Linux ISO generates Grub4dos and Grub2 menu entries

Method 2 and 3 are useful in case menu entry for method 1 is not (yet) available, but otherwise method 1 is preferred

 

At MSFN there is topic USB Format Tool and UEFI_MULTI

All my projects are now available for Download as Releases at wimb GitHub

 

Download:  USB_FORMAT  and   UEFI_MULTI  and  VHD_WIMBOOT  and  System_Info  and  MBR_Backup

 

:cheers:



#245 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 11 May 2020 - 12:18 PM   Best Answer

Update USB_FORMAT-50 and UEFI_MULTI-50

 

Manual:  Attached File  Win10_Install.pdf   659.52KB   64 downloads

 

At MSFN there is topic USB Format Tool and UEFI_MULTI

All my projects are now available for Download as Releases at wimb GitHub

 

Download:  USB_FORMAT  and   UEFI_MULTI  and  VHD_WIMBOOT  and WOF_Compress and  System_Info  and  MBR_Backup

 

:cheers:



#246 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 24 May 2020 - 05:48 PM

Update UEFI_MULTI-42 plus the Addon-glim-agFM file
 
- Update of a1ive Grub2 File Manager to v7.2.0
- UEFI_MULTI-42 Grub4dos menu.lst has entries to boot in BIOS mode straight with Win10XPE_x64.ISO and WinPE.iso
- UEFI_MULTI-42 can make new entries for booting Windows ISO files with Grub4dos in BIOS mode
- UEFI_MULTI-42 is compatible with Ventoy USB Drive that was modified to have unhidden 130 MB FAT32 EFI Drive
- requires to adjust Ventoy EFI file grub\grub.cfg to make Ventoy Boot Menu with added Boot options for Windows Boot Manager and for Grub4dos and Grub2 Menu
 
USB Portable SSD - MultiBoot Ventoy Drive with support for booting VHD and WIM files in Windows BootManager Menu and booting Grub4dos Menu and Grub2 Menu
 
Download:    UEFI_MULTI
 
Ventoy EFI file grub\grub.cfg - File given in UEFI_MULTI-42\UEFI_MAN\ventoy-1.0.11\grub folder
 
......

terminal_output  console

#colect all image files (iso files)
set ventoy_img_count=0
vt_list_img $iso_path ventoy_img_count

#Main menu
if [ $ventoy_img_count -gt 0 ]; then
    if [ $VTOY_DEFAULT_MENU_MODE -eq 0 ]; then
        vt_dynamic_menu 0 0 
    else
        vt_dynamic_menu 0 1
    fi

    if [ "${grub_platform}" == "efi" ] -a [ -e "/EFI/Microsoft/Boot/bootmgfw.efi" ]; then
    menuentry "Windows EFI BootManager" {
      chainloader /EFI/Microsoft/Boot/bootmgfw.efi
    }
    fi

    if [ "${grub_platform}" == "pc" ] -a [ -e "/bootmgr" ]; then
    menuentry "Windows BootManager" {
      chainloader +1
    }
    fi

    if [ "${grub_platform}" == "pc" ] -a [ -e "/grub.exe" ]; then
    menuentry "Grub4dos Menu" {
        linux /grub.exe
    }
    fi

    if [ -e /grub_Linux.cfg ] -a [ -e "(hd0,msdos1)/images" ]; then
    menuentry "Grub2 Menu" {
      set iso_drive=(hd0,msdos1)
      export iso_drive
      configfile /grub_Linux.cfg
    }
    fi

else
    menuentry "No ISO files found (Press enter to reboot ...)" {
        echo -e "\n    Rebooting ... "
        reboot
    }
fi

-
How to modify Ventoy USB Drive to have unhidden 130 MB FAT32 EFI Drive
 
1. Ventoy2Disk.exe is used first to Format USB Portable SSD
2. Ventoy Hidden EFI Drive on USB must be made visible
-  In Windows 10x64 use DiskPart > list vol and than select vol of EFI (in my case nr 14) - assign - EFI drive is mounted as e.g. Q:
-  Also possible is: After booting with Win10XPE from RAMDISK the Hidden EFI Drive is auto mounted
3. Copy folders and files from Ventoy EFI drive to folder e.g. V_EFI on your harddisk
4. In Windows Explorer Format Ventoy and EFI drive with NTFS FileSystem
5. In Windows Disk Management Remove Ventoy EFI partition
6. Reduce Size of Ventoy NTFS drive by 100 MB
7. In unused space Create New simple Volume with Label EFI and Size 130 MB and Format with FAT32 FileSystem
8. Copy folders and files from V_EFI folder back to your new created EFI partition
9. Modify or Replace on Ventoy EFI drive file grub\grub.cfg as indicated above
10. Copy some Linux ISO file and / or Win10XPE_x64.ISO and WinPE.iso file and folder Win10XPE with WIM file to Ventoy NTFS drive
11. Use UEFI_MULTI_x64.exe in Win10x64 OS - Select EFI drive as Boot Drive and Ventoy drive as System drive
12. Use UEFI_MULTI_x64.exe in Win10x64 OS - Select PE WIM e.g. boot.wim or Win10XPE.wim file Or Win10x64.vhd as Boot Image file
13. Click GO to make MultiBoot Ventoy Drive booting with WIM and VHD file in Windows BootManager and booting with Grub4dos Menu and Grub2 Menu
 
UEFI_MULTI_Ventoy-2020-05-24_143621.jpg == Ventoy_EFI_2020-05-24_143833.jpg == Ventoy_NTFS_2020-05-24_144735.jpg == 

 

 
:cheers:

  • alacran likes this

#247 alacran

alacran

    Gold Member

  • .script developer
  • 1489 posts
  •  
    Mexico

Posted 25 May 2020 - 06:13 AM

Nice approach, just tested and all working fine.

 

alacran


  • wimb likes this

#248 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 25 May 2020 - 06:31 AM

Nice approach, just tested and all working fine.

 

alacran

 

Thank you for testing UEFI_MULTI-42 to make Multi-Boot Ventoy drive  :)

It makes the Ventoy Drive more versatile so that it can be used to boot ISO, VHD and WIM files.


  • alacran likes this

#249 alacran

alacran

    Gold Member

  • .script developer
  • 1489 posts
  •  
    Mexico

Posted 25 May 2020 - 10:42 PM

JFYI

 

Forgot to comment as now menu.lst is on second partition and the folder images and also some other items are on first partition, menu.lst requires to be edited since some items are not located and then not seen on menu, here a couple of examples:

 

 

iftitle [if exist (hd0,0)/grubfm_multiarch.iso] Grub2 File Manager of a1ive - grubfm_multiarch.iso
map --mem (hd0,0)/grubfm_multiarch.iso (0xff)
map --hook
chainloader (0xff)

iftitle [if exist (hd0,0)/images/7pe_x86_E.iso] 7pe_x86_E - images/7pe_x86_E.iso
set pe86e=(hd0,0)/images/7pe_x86_E.iso
map  %pe86e% (0xff)
map --hook
root (0xff)
chainloader (0xff)/BOOTMGR || chainloader (0xff)/bootmgr

Added is remarked in blue.

 

Not a big deal, but it may create some confusion to non advanced users.

 

I haven't checked any other *.lst file.

 

Your friend

 

alacran



#250 wimb

wimb

    Platinum Member

  • Developer
  • 2968 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 26 May 2020 - 12:47 PM

Yes you are right, some of the preconfigured entries don't work for Ventoy drives.

It is not a real problem since these preconfigured entries do not appear in the Grub4dos Menu.

Also new entries for these ISO files made with UEFI_MULT_x64.exe are working OK for Ventoy drives.

 

The preconfigured entries for Win10XPE_x64.ISO and WinPE.iso given in menu.lst are most important and working for Ventoy and other USB drives.

The preconfigured  entries for Ventoy drives that you propose are OK.

Instead of specifying the disk and partition we might use ventoy folder as a marker according to
iftitle [ls /ventoy] 7pe_x86_E.iso - ISO - 264 MB
find --set-root --ignore-floppies /7pe_x86_E.iso
map /7pe_x86_E.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)/BOOTMGR || chainloader (0xff)/bootmgr

iftitle [ls /ventoy && if exist (hd0,0)/grubfm_multiarch.iso] Grub2 File Manager of a1ive - (hd0,0)/grubfm_multiarch.iso
map --mem (hd0,0)/grubfm_multiarch.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)







Also tagged with one or more of these keywords: uefi, linux, windows 10, ssd, aio boot, vhdx, wim, usb, multiboot

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users