Friday 8 January 2021

'Ventoy for Easy2Boot' v1.0.32 with UEFI32 support now available

 Ventoy now supports UEFI32 (experimental) as well as UEFI64.

I have compiled a version for Easy2Boot from the v1.0.32 Ventoy sources.

To update your E2B USB drive...

1. Download E2B UEFI File Manager v1.69fBeta.zip - extract the files directly to Partition 2 of your E2B USB drive.

2. Download 'ventoy-1.0.32-windows.zip' and copy it to the \e2b\Update agFM folder on Partition 2 of your E2B USB drive. This version contains an updated Add_Ventoy.cmd file.

3. Drag-and-drop the ventoy-1.0.32-windows.zip file onto the Add_Ventoy.cmd file which is in the same \e2b\Update agFM folder.

The beta files can be found here.

If you find any issues with 'Ventoy for Easy2Boot', please do NOT report them to the Ventoy group or LongPanda (the developer) unless you can also reproduce the same issue on an 'official' Ventoy USB drive made with the official Ventoy utility.

Note: If you have already downloaded the v1.0.32 source files from the Ventoy GitHub site in order to compile it, you will need to download the new source files again now, so that UEFI32 files will compile (bugfix).

Changing the theme

If you want to change the theme or background, you can either use a Ventoy plugin or modify the theme folder at \grub\themes\ventoy.

The colour of the www.ventoy.net text which you may see stamped over the lower left of your theme can be controlled by setting it's colour in the \grub\grub.cfg file:

set VTLE_CLR=#cccdce

This text cannot be removed, but you can use VTLE_CLR to make the text the same colour as the background so that it is made invisible!

Sample Ventoy configuration files

You can see sample  configuration files in the \ventoy\Sample Ventoy config files folder. These can be copied to the \ventoy folder on Partition 1 (the NTFS partition).

\ventoy\ventoy.json : examples for settings for UEFI32, UEFI64 and Legacy mode

{
    "control_uefi": [
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_FILT_DOT_UNDERSCORE_FILE": "0" },
        { "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" },
        { "VTOY_MENU_TIMEOUT": "5" },
        { "VTOY_DEFAULT_IMAGE": "/_ISO/LINUX/linuxmint-20-cinnamon-64bit.iso" }
    ],
    "control_ia32": [
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_FILT_DOT_UNDERSCORE_FILE": "0" },
        { "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" },
        { "VTOY_MENU_TIMEOUT": "5" },
        { "VTOY_DEFAULT_IMAGE": "/_ISO/LINUX/xubuntu-18.04.3-desktop-i386.iso" }
    ],
    "control_legacy": [
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_FILT_DOT_UNDERSCORE_FILE": "0" },
        { "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" },
        { "VTOY_MENU_TIMEOUT": "5" },
        { "VTOY_DEFAULT_IMAGE": "/_ISO/LINUX/linuxmint-20-cinnamon-64bit.iso" }
    ]
}

\ventoy\ventoy_grub.cfg : example external menu for F6 menu - allows you to load E2B and/or agFM from Ventoy.

menuentry "Load agFM Menu" --class=custom {
if [ "${grub_platform}_${grub_cpu}" = "pc_i386" ]; then
linux ${vtoy_efi_part}/e2b/loadfm
initrd ${vtoy_efi_part}/e2b/grubfm.iso
else
if [ "$grub_cpu" = "x86_64" ]; then chainloader ${vtoy_efi_part}/grubfmx64.efi; fi
if [ "$grub_cpu" = "i386" ]; then chainloader ${vtoy_efi_part}/efi/boot/bootia32.efi; fi
fi
}
if [ "${grub_platform}_${grub_cpu}" = "pc_i386" ]; then
menuentry "Load Easy2Boot Menu" --class=custom {
insmod ntldr
set root=${vtoydev},1
ntldr ${vtoy_iso_part}/grldr
}
fi

submenu 'My Custom SubMenu -->' --class=customsub {        
    menuentry "My Custom Menu2" --class=custom2 {
        echo 'This is custom menu2 ... '
        sleep 1    
    }
    
    menuentry '<-- Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
        echo 'Return ...'
    }
}
menuentry '<-- Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
    echo 'Return ...'
}

9 comments:

  1. Thanks for the quick update and your great work.

    ReplyDelete
  2. Thank you Mr.Steve for great work.

    ReplyDelete
  3. hello steve master, using the core.img file of ventoy 1.0.32 you have prepared, I am starting 1.0.35 version. As can be seen in the pictures, when I select any iso file, it gives a warning that press an key to continue ... When you press a button, it returns back to the main menu. This problem is not uefi. I wonder if you have any idea about this problem or can you give me core.img file for 1.0.35. Thank you.

    https://disk.yandex.com.tr/i/KkuO_M6ZVqCndQ
    https://disk.yandex.com.tr/i/oI_-pTJib1u_lw

    ReplyDelete
  4. You need to change the sourc code and re-compile.
    https://www.rmprepusb.com/tutorials/147-ventoy-how-to-patch-and-compile

    ReplyDelete
  5. set VTOY_CHKDEV_RESULT_STRING=0
    export VTOY_CHKDEV_RESULT_STRING

    These codes work well in UEFI, but Legacy also warns you to press a key to continue ... When we press a key, it returns to the main menu.

    ReplyDelete
    Replies
    1. Did you make the modifications to the two ventoy.c files and recompile?

      Delete
    2. No, I don't have the ability to run Centos 7 on my PC. At the office, my PC is restricted.

      Delete
    3. You need to change the source code and re-compile.
      https://www.rmprepusb.com/tutorials/147-ventoy-how-to-patch-and-compile
      You can use a VM.
      Why do you think I have bothered to write such detailed instructions if it was not necessary!

      Delete
    4. 'Ventoy for Easy2Boot' v1.0.35 is available on the Alternate Downloads site if you want to test it.

      Delete