Jump to content











Photo
- - - - -

USB Format Tool and UEFI_MULTI

iso linux wim vhd grub4dos grub2 boot manager format usb

Best Answer wimb , 17 December 2020 - 09:05 AM

Update USB_FORMAT-63 and UEFI_MULTI-63 plus Addons and VHD_WIMBOOT_Trusted-64

 

Download:  from wimb GitHub  -   USB_FORMAT-63 and UEFI_MULTI-63  and  VHD_WIMBOOT_Trusted-64 and Win_Reduce_Trusted-50 and SVBus_INST_Trusted-20

 

Download File E = Encrypted Password = bootwimb   -   Always Disable Windows Defender when working with signed SVBus driver !!

 

Manual:  VHD_WIMBOOT.pdf  to make Mini 7/8/10 x64 in VHD with UsedSize about 2 GB

 

- Added UEFI Grub4dos  and  a1ive UEFI Grub2 for UEFI booting Mini 7/8/10 x64 VHD from RAMDISK - Use Super UEFI setting for UEFI Secure booting
- Added signed SVBus driver for UEFI booting VHD from RAMDISK

 

Credits and Thanks to:

synchronicity aka Eric Biggers for making wimlib

schtrom for making SVBus Virtual SCSI Host Adapter for GRUB4DOS - signed SVBus driver
a1ive for making UEFI Grub2
yaya2007 and a1ive for making UEFI Grub4dos aka Grub4efi or G4E

a1ive for making Grub2 File Manager

- ventoy for making Linux vDisk Boot Plugin that allows to use Grub2 vdiskchain to boot Linux VHD
alacran for help and support and testing and initialising several important topics
- liuzhaoyzz for help in solving boot_image_handle not found problem in case of UEFI Grub4dos

cdob for making WinSxS_reduce
ValdikSS for making Super UEFIinSecureBoot Disk v3 - More Info on UEFI Secure booting Grub2

chenall, yaya, tinybit and Bean for making Grub4dos

JFX for making WinNTSetup and WofCompress

- Pauly for making BOOTICE

- Mattwatti for making EfiGuard to Disable Driver Signature Enforcement DSE

- erwan.l for making offlinereg
- Nir Sofer for making AdvancedRun (64-bit)
- Sordum for making Defender Control

and everyone else that has contributed to these topics

and to Erwan.l and Nuno Brito for keeping alive this forum, sometimes called an old lady ....  ;)

 

More Info:  VHD_WIMBOOT Mini 7/8/10 x64  and   Grub4dos for UEFI aka GRUB4EFI Or G4E

 

USB_FORMAT_51_2020-12-17_103331.jpg == UEFI_MULTI_51_2020-12-17_103534.jpg == VHD_WIMBOOT_47_2021-01-04_100522.jpg == Win_Reduce_38_2020-11-30_125950.jpg == UEFI_RAMOS_10_2020-12-26_133815.jpg == UEFI_USB_2020-12-26_101643.jpg == W11x64_2021-10-03_145700.jpg == W11x64_WB_2021-10-03_153529.jpg == Mini-11x64_RAMDISK_2021-10-03_154502.jpg

:cheers:

Go to the full post


  • Please log in to reply
122 replies to this topic

#101 wimb

wimb

    Platinum Member

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

Posted 27 July 2021 - 08:55 AM

I did some experiments with ntloader using Removable 2 partition USB and with USB Portable SSD 2 partition made with USB_FORMAT

 

Booting working OK for:

- UEFI Grub2 ntloader booting PE boot.wim and NT6+ OS according to https://github.com/grub4dos/ntloader

- UEFI Grub4dos ntloader booting Mini-10x64.vhd 2 partition VHD from RAMDISK - menu modified from See this post

- BIOS Grub4dos ntloader booting PE boot.wim according to https://github.com/grub4dos/ntloader

 

What I need now is menu for UEFI Grub2 ntloader booting of VHD as RAMDISK and as FILEDISK

 

Do you have working menuentry for UEFI Grub2 ntloader booting of VHD (1 or 2 partitions) as RAMDISK and as FILEDISK ?



#102 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 27 July 2021 - 04:43 PM


What I need now is menu for UEFI Grub2 ntloader booting of VHD as RAMDISK and as FILEDISK

 

Do you have working menuentry for UEFI Grub2 ntloader booting of VHD (1 or 2 partitions) as RAMDISK and as FILEDISK ?

 

AFAIK menu for VHD booting as filedisk should be same as for PE WIM.  But I have no idea of menu required for Ramboot in this case.

 

alacran



#103 wimb

wimb

    Platinum Member

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

Posted 27 July 2021 - 04:52 PM

Hopefully a1ive can give more info on UEFI a1ive Grub2 ntloader booting of VHD as FILEDISK and as RAMDISK.

 

Anyway I got already some succes with UEFI Grub4dos ntloader booting of VHD with 1 or 2 partitions from RAMDISK

 

but I also have problem with BIOS Grub4dos ntloader booting these VHD's from RAMDISK (FILEDISK not yet tested)



#104 wimb

wimb

    Platinum Member

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

Posted 27 July 2021 - 05:27 PM

AFAIK menu for VHD booting as filedisk should be same as for PE WIM.  But I have no idea of menu required for Ramboot in this case.

 

OK  :)

UEFI a1ive Grub2 ntloader booting Mini-10x64.vhd and Mini-1P.vhd as FILEDISK working OK

BIOS Grub4dos    ntloader booting Mini-10x64.vhd and Mini-1P.vhd as FILEDISK working OK

 

Still waiting is

UEFI a1ive Grub2 ntloader booting of 2 and 1 partition VHD from RAMDISK

BIOS Grub4dos    ntloader booting of 2 and 1 partition VHD from RAMDISK



#105 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 27 July 2021 - 05:45 PM

On Github page there is not any option for Issue Report.

 

ntloader topic is not too long, only 8 pages so far, I don't remember to read any post related to the menuentry for UEFI Grub2 ntloader Rambooting of VHD.

 

Just noticed the ntloader topic page is not loading fine, only way I was able to open it is fist going to: http://bbs.c3.wuyou....mdisplay&fid=60and from it open the ntloader topic.

 

JFYI, I will quote here the first menu tested by liuzhaoyzz on post No. 17, for G4E without using chainload, that he was never able to boot using it, until he used the chainload version:

 

 

Posted on 2021-1-31 22:21:00 | Just look at the author
This post was last edited by liuzhaoyzz at 2021-1-31 22:22


I tried to start vhd directly but failed. The menu is as follows. Is there any problem with the menu?
title WIN7X64-SVBUS (/VHD/SX70211.vhd)-kernel ntloader-3
debug 3
find --ignore-floppies --ignore-cd /EFI/grub/ntloader | set x=
echo x=%x%
find --ignore-floppies --ignore-cd --set-root /VHD/SX70211.vhd
uuid ()
kernel %x%/EFI/grub/ntloader uuid=%?_UUID% file=/VHD/SX70211.vhd
initrd %x%/EFI/grub/initrd.lz1
pause pause1

 

After several post it was found ntloader has issues with some Bios/Firmwares.

 

alacran



#106 wimb

wimb

    Platinum Member

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

Posted 28 July 2021 - 09:58 AM

On Github page there is not any option for Issue Report.

 

ntloader topic is not too long, only 8 pages so far, I don't remember to read any post related to the menuentry for UEFI Grub2 ntloader Rambooting of VHD.

 

Just noticed the ntloader topic page is not loading fine, only way I was able to open it is fist going to: http://bbs.c3.wuyou....mdisplay&fid=60and from it open the ntloader topic.

 

 

a1ive says about ntloader:  This project has been discontinued and is no longer maintained

 

After all my testing of ntloader, I think it is better to keep UEFI_MULTI and VHD_WIMBOOT program the way it is now.

 

That means for RAMDISK booting VHD with 1 partition we use the ntboot command as supported by a1ive Grub2 and for 2 partition VHD we don't need ntboot or ntloader.

 

ntloader does not have sufficient extra value to add it to the programs.



#107 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 30 July 2021 - 04:35 PM

a1ive says about ntloader:  This project has been discontinued and is no longer maintained

 

From this post:

 

NOTE-2: Even if it says: The project has stopped development, no longer maintained; on Github last release is from 2021-06-26

 

But you are right, your programs are working fine, without using ntloader.

 

alacran



#108 wimb

wimb

    Platinum Member

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

Posted 24 August 2021 - 05:07 PM

Update USB_FORMAT-59 and UEFI_MULTI-59 plus the Addon-agFM files

 

Download:  from GitHub USB_FORMAT-59 and UEFI_MULTI-59

 

Download File E = Encrypted Password = bootwimb

 

Manual:  VHD_WIMBOOT.pdf

 

- Update UEFI Grub4dos (= Grub4efi Or G4E) - grub4dos-for_UEFI-2021-07-23.7z
- Update Grub4dos - grub4dos-0.4.6a-2021-08-13.7z
- Update vdiskchain-1.3 for booting Linux in VHD
- Update Grub2 Menu - Added submenu "EFI Tools Shell" and submenu "Linux ISO and Distro Menu"
- Windows 11 compatible
- Recent Windows Boot Manager - August 2021 - requires for SVBus driver to Disable Driver Signature Enforcement
  SVBus driver needs Load EfiGuard - Disable Windows Driver Signature Enforcement - Or on Boot Entry press F8 for Advanced and Select DSE

 

Grub2 has now as first menuentry to Load EfiGuard - Enter or wait 10 seconds to activate - Skip by selecting other entry

This works for all Windows entries in Grub2 Menu and the chainloaded UEFI Grub4dos (Grub4efi) Menu and the chainloaded Windows Boot Manager Menu.


  • alacran likes this

#109 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 25 August 2021 - 07:00 AM

I have a question:

 

 

- Recent Windows Boot Manager - August 2021 - requires for SVBus driver to Disable driver signature enforcement
   On Boot Menu item press F8 for Advanced Menu and Select Disable driver signature enforcement

 

Does this mean EfiGuardDxe.efi does not work with the new August 2021 version?

 

alacran



#110 wimb

wimb

    Platinum Member

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

Posted 25 August 2021 - 07:39 AM

Does this mean EfiGuardDxe.efi does not work with the new August 2021 version?

 

 

Never used EfiGuardDxe.efi so I don't know if it can be used.

 

What I can say is that the usual tricks in BCD using bcdedit like "testsigning on" and "loadoptions DISABLE_INTEGRITY_CHECKS" and "nointegritychecks on" are not sufficient anymore.

 

Windows Boot Manager since August 2021 Additionally Requires now: On Boot Menu item press F8 for Advanced Menu and Select Disable driver signature enforcement



#111 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 25 August 2021 - 07:55 AM

It is included here:  Useful tools.zip   693.69KB

 

And can be pre-loaded just like ntfs_x64.efi, before all the other commands.

 

Could you please try it, I haven't downloaded the August 2021 version to test it myself.

 

Thanks in advance

 

alacran


  • wimb likes this

#112 wimb

wimb

    Platinum Member

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

Posted 25 August 2021 - 04:29 PM

It is included here:  Useful tools.zip   693.69KB

 

And can be pre-loaded just like ntfs_x64.efi, before all the other commands.

 

Could you please try it, I haven't downloaded the August 2021 version to test it myself.

 

 

Pre-Load of EfiGuardDxe.efi is working great  :)

Tested for Recent Windows Boot Manager August 2021 of Windows 10x64 and Windows 11x64

On the fly patching allows indeed to Boot Mini 10 and 11 straight from RAMDISK using UEFI Grub4dos (Grub4efi G4E)

So there is no need anymore to Enter OS Selection and on Boot Entry to press F8 for Advanced menu

and Select Disable driver signature enforcement as needed without using EfiGuardDxe.efi

title Mini-10x64b.vhd - EfiGuardDxe.efi UEFI Grub4dos  SVBus  RAMDISK  - 3.8 GB
load /EFI/grub/tools/EfiGuardDxe.efi
find --set-root --ignore-floppies --ignore-cd /Mini-10x64b.vhd
map --mem --top /Mini-10x64b.vhd (hd)
chainloader (hd-1)


EfiGuardDxe.efi is already available on USB drives in EFI\grub\tools when using USB_FORMAT or UEFI_MULTI or VHD_WIMBOOT

So to make use of it you only need to add in your menu.lst entry the line:   load /EFI/grub/tools/EfiGuardDxe.efi 

 

EDIT: Grub2 has now as first menuentry to Load EfiGuard - Enter or wait 10 seconds to activate - Skip by selecting other entry

This works for all Windows entries in Grub2 Menu and the chainloaded UEFI Grub4dos (Grub4efi) Menu and the chainloaded Windows Boot Manager Menu.

 

Thanks to alacran for making me aware of this useful tool  :)


  • alacran and Atari800XL like this

#113 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 25 August 2021 - 10:06 PM

Pre-Load of EfiGuardDxe.efi is working great  :)

.....

Thanks to alacran for making me aware of this useful tool  :)

 

Thanks for testing, and for the good news my friend. It is always my pleasure to apport some suggestions/ideas.

 

alacran



#114 wimb

wimb

    Platinum Member

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

Posted 26 August 2021 - 04:51 AM

- Recent Windows Boot Manager - August 2021 - requires for SVBus driver to Disable Driver Signature Enforcement

  Thanks to alacran solved by Load EfiGuard - Disable Windows Driver Signature Enforcement - Or on Boot Entry press F8 for Advanced and Select DSE

 

Grub2 has now as first menuentry to Load EfiGuard - Enter or wait 10 seconds to activate - Skip by selecting other entry

This works for all Windows entries in Grub2 Menu and the chainloaded UEFI Grub4dos (Grub4efi) Menu and the chainloaded Windows Boot Manager Menu.

 

Please ReDownload:  USB_FORMAT-59 and UEFI_MULTI-59 and VHD_WIMBOOT-55  and  Win_Reduce_Trusted-41

 

No changes in Addon files, so no need to redownload.

 

Download File E = Encrypted Password = bootwimb

 

ReDownload Manual:  VHD_WIMBOOT.pdf

 

W11x64 UsedSize 6.3 GB in VHD == Mini-11x64 UsedSize 3.9 GB in VHD RAMDISK booting through Grub2 > UEFI Grub4dos (Grub4efi)

           W11x64_VHD_2021-08-25_122524.jpg                 ==                 Mini-11x64_RAMDISK_2021-08-26_081734.jpg

 

26094014.png == 26094020.png == 26094135.png


  • alacran and doberman like this

#115 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 26 August 2021 - 11:30 AM

Excellent idea my friend, I liked a lot your new approach:

 

Now EfiGuard can be loaded from A1ve's grub2 since the beginning, and remains loaded when chainloading to any other loader. Even Win bootloader too.  And obviously this avoids the need to add any new line on the entries of the config files.

 

Very practical way to solve the issue.

 

alacran


  • wimb likes this

#116 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 27 August 2021 - 06:17 AM

JFYI

 

For testing pourposes I attached some Wimboot and normal installed VHDs too, (all have SVBus driver installed), having 1 parition (NTFS) and 2 partitions (FAT-32+NTFS), deleted all internal and external boot files/folders, and rebuilded them manually in command line, after this I didn't edit any of he external or internal BCDs but edited my old grub.cfg to add the entry to pre-load EfiGuard, (as in the new versions of wimb's programs).

 

Tested in UEFI + SB enabled, (of course the signed Key was present), after run a1ve's grub2 + EfiGuard, tested chainloading G4E and Win boot manager. All VHDs booted fine as filedisk using Win boot manager and also Rambooted fine, (even externally lz4 compressed), when using G4E or G4E + ntfs_x64.efi, the test was run intentionally on a UEFI PC that lacks NTFS x64 drivers to check the possibility of collision between EfiGuard and ntfs_x64.efi.

 

So I confirm this approach is working fantastic.  GOOD WORK wimb!!!!!

 

alacran


  • wimb likes this

#117 wimb

wimb

    Platinum Member

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

Posted 02 October 2021 - 01:13 PM

Update USB_FORMAT-60 and UEFI_MULTI-60 plus the Addon-agFM files and VHD_WIMBOOT_Trusted-60 and Win_Reduce_Trusted-45

 

Download:  from GitHub USB_FORMAT-60 and UEFI_MULTI-60 and VHD_WIMBOOT_Trusted-60 and Win_Reduce_Trusted-45

 

Download File E = Encrypted Password = bootwimb

 

Manual:  VHD_WIMBOOT.pdf

 

- Update UEFI Grub4dos (= Grub4efi Or G4E) - grub4dos-for_UEFI-2021-09-08.7z
- Windows 11 compatibility improved by force booting VHD with recent Boot Manager of Windows 11

- Adding Windows 11 VHD will Update Windows Boot Manager to version of Windows 11

- Avoiding Windows Boot Manager Error 0xC0000428 - winload.efi signature can't be verified

 

Windows 11x64 in VHD booting from USB as FILEDISK and as RAMDISK

 

Compact LZX UsedSize = 5.1 GB -- WimBoot LZX UsedSize = 925 MB -- Mini Compact LZX UsedSize = 2.0 GB RAMDISK

----------- W11x64_2021-10-03_145700.jpg ----------------- W11x64_WB_2021-10-03_153529.jpg --------------------- Mini-11x64_RAMDISK_2021-10-03_154502.jpg


  • alacran and doberman like this

#118 wimb

wimb

    Platinum Member

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

Posted 25 October 2021 - 07:40 AM

Update USB_FORMAT-62 and UEFI_MULTI-62 plus the Addon-agFM files

 

Download:  from GitHub USB_FORMAT-62 and UEFI_MULTI-62

 

Download File E = Encrypted Password = bootwimb

 

Manual:  VHD_WIMBOOT.pdf

 

- Update UEFI Grub4dos - grub4dos-for_UEFI-2021-10-21.7z


  • alacran likes this

#119 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 2 weeks ago

@ wimb

 

I have an issue with UEFI_MULTI, when trying to create the entry for a Win10XPE_x64.wim on a pure UEFI laptop, it says:

 

Selected drive is too small

Drive size =  96 MB

In Win 8/10 make FAT-32 Boot partition at least 100 MB

 

I already checked and the EFI partition is exactly 100 MB having 51.3 MB free, please see attached photos, I don't know why UEFI_MULTI sees it as 96 MB, never had this issue before as I always make that partition big enought, but in this case this is a brand new laptop my brother just bought, and obviously it is pre-formated and pre-loaded, so I don't want to repartition it.

 

Curious thing is VHD_WIMBOOT didn't have any issue when creating a Mini-10x64.vhd located on an internal partition, and all files/folders where added fine to EFI partition and BCDs were modified just fine.  Anyway after deleting all MUI lang files not required and also the Oriental fonts on Boot and EFI folders, there is 51.3 MB free in that partition.  So in fact there is more than enought space to just modify the BCDs.

 

I tried to do it manually with BootIce, but as always it fails when the WinPE.wim is Win10XPE_x64.wim, (I think there is something related to the OS GUID it assigns to Win10XPE_x64.wim), Then I always have to do it with UEFI_MULTI.

 

alacran

Attached Thumbnails

  • Partitions.png
  • UEFI_MULTI.png


#120 wimb

wimb

    Platinum Member

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

Posted 2 weeks ago

@alacran

 

Yes I can see the cause of the problem.

The piece of code giving the error is present in UEFI_MULTI program and is missing in VHD_WIMBOOT program.

 

I will Update UEFI_MULTI to remove the piece of code causing the error.

 

At the same time I will update with grub4dos-for_UEFI-2021-11-16.7z and grub4dos-0.4.6a-2021-11-16.7z


  • alacran likes this

#121 wimb

wimb

    Platinum Member

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

Posted 2 weeks ago

Update UEFI_MULTI-63 plus the Addon-agFM files

 

Download:  from GitHub UEFI_MULTI-63

 

Download File E = Encrypted Password = bootwimb

 

Manual:  VHD_WIMBOOT.pdf

 

- Update UEFI Grub4dos - grub4dos-for_UEFI-2021-11-16.7z and grub4dos-0.4.6a-2021-11-16.7z

 

- code removed causing Boot Drive  "ERROR - Drive Size Less 100 MB", "Selected Drive is too small " 


  • alacran likes this

#122 alacran

alacran

    Gold Member

  • .script developer
  • 2303 posts
  •  
    Mexico

Posted 2 weeks ago

Thanks my friend, no more issues in UEFI_MULTI-63, all working fine.

 

By the way this are the laptop specs:

 

Vorago Alpha Plus 14" (ALPHA PLUS 4020-10-3), It has a Celeron N4020 (Dual core 1.1 to 2.8 GHz) processor, 8 GB of RAM (DDR 4 2400 MHz) and a 64GB eMMC Storage Drive + one HDD 500 GB.

 

NOTE: Secure boot was disabled since first time I enter the Bios.

 

10x64 Pro is preloaded into the 64 GB eMMC Drive (GPT partitioned), the HDD 500 GB came MBR partitioned, single NTFS primary partition non active, where I left 1 GB unasigned at the begining of space and created 3 MBR primary partitions: first for additional programs, second for Documents, and third for WinPE, VHDs, Portables and back-up.

 

After deactivating the fast-boot in the OS, it still boots very fast from the eMMC Drive.

 

alacran


  • wimb likes this

#123 wimb

wimb

    Platinum Member

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

Posted 2 weeks ago

Update USB_FORMAT-63  plus the Addon-agFM file

 

Download:  from GitHub USB_FORMAT-63

 

Download File E = Encrypted Password = bootwimb

 

Manual:  VHD_WIMBOOT.pdf

 

- Update UEFI Grub4dos - grub4dos-for_UEFI-2021-11-16.7z and grub4dos-0.4.6a-2021-11-16.7z


  • alacran and doberman like this





Also tagged with one or more of these keywords: iso, linux, wim, vhd, grub4dos, grub2, boot manager, format, usb

8 user(s) are reading this topic

0 members, 8 guests, 0 anonymous users