When booting windows iso in uefi mode on the hard drive using ventoy.vhd, an error message appears as shown in the screenshot below.This error appears with ventoy versions from 1.0.44 to 1.0.61, while ventoy version 1.0.43 does not have the above error.
What about boot the same ISO file in afficial Ventoy USB stick (not ventoy.vhd)?
Boot same ISO file in smart USB Ventoy stick then ok.
But why ventoy(1.0.32-->1.0.43) boot in both cases (USB and ventoy.vhd) are ok, and ventoy (1.0.44-->1.0.61) get that error
When using grub.cfg of ventoy1.0.43 instead of grub.cfg of ventoy1.0.61, now ventoy1061.vhd boot windows iso from another hdd/ssd, no error like above. I have compared grub.cfg of 2 versions above, did not find any lines of code to be removed from 1.0.43, only additional lines of code to expand the features of ventoy1.0.61. So just ask for help from LongPanda
I have found that the cause of the above error is due to the change of the function vt_check_compatible_pe.In ventoy1.0.61 there is
function vt_check_compatible_pe {
#Check for PE without external tools
#set compatible if ISO file is less than 80MB
if [ $vt_chosen_size -gt 33554432 -a $vt_chosen_size -le 83886080 ]; then
set ventoy_compatible=YES
elif [ -e $1/WEPE/WEPE.INI ]; then
set ventoy_compatible=YES
fi
return
}
Replace to
function vt_check_compatible_pe {
if [ -f "$1/HBCD_PE.ini" ]; then
set ventoy_compatible=YES
fi
}
of ventoy1.0.43
The ISO file you boot is less than 80MB ?
(11-26-2021, 06:25 AM)longpanda Wrote: [ -> ]The ISO file you boot is less than 80MB ?
I think it is necessary to control well the statement "set ventoy_compatible=".Windows iso that I mentioned is the standard version downloaded from the microsoft website
If the iso file is not less than 80MB, the vt_check_compatible_pe is actually the same for 1.0.43 and 1.0.61. I don't known why.
You can add echo $vt_chosen_size to see the value of vt_chosen_size
(11-26-2021, 02:05 PM)longpanda Wrote: [ -> ]If the iso file is not less than 80MB, the vt_check_compatible_pe is actually the same for 1.0.43 and 1.0.61. I don't known why.
You can add echo $vt_chosen_size to see the value of vt_chosen_size
ok, let me follow you
echo $
vt_chosen_size
Appears on the notification screen as attached image
I think that's why the "vt_check_compatible_pe (loop)" statement is stopped and the uefi_windows_menu_func, uefi_iso_menu_func this functions are not executed
OK.
Anyway this is not official Ventoy environment. So don't expect it will work OK all the time.
(11-27-2021, 11:34 AM)longpanda Wrote: [ -> ]OK.
Anyway this is not official Ventoy environment. So don't expect it will work OK all the time.
