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)
This is the same as not doing any change, since Ventoy folder and menu.lst are on same second partition.
And what we really have is images folder on NTFS first partition and menu.lst on small FAT-32 active second partition, when using this approach wich is not the same as usuall UEFI_MULTI layout (menu.lst on a big FAT-32 first active partition) and images folder usually on same partition too.
This is my modified menu.lst:
color black/green red/light-gray setmenu --string=75=0=0xff0000="date&time" #general command to pick highest mode available up to 1000 xres - recommended if you have a wide variety of systems #pick highest resolution up to 1000x10000 and either 24-bit or 32-bit colour only graphicsmode -1 100:1000 100:10000 24:32 timeout 30 default 0 iftitle [if exist /bootmgr] Boot Manager Menu - Win 7/8/10 VHD and WIM chainloader /bootmgr iftitle [if exist (hd1,0)/bootmgr] Boot Windows from first primary partition of first hard disk chainloader (hd1,0)/bootmgr iftitle [if exist (hd0,0)/Win10XPE_x64.ISO] Win10XPE_x64 ISO or ISO from RAM find --set-root --ignore-floppies /Win10XPE_x64.ISO map /Win10XPE_x64.ISO (0xff) || map --mem /Win10XPE_x64.ISO (0xff) map --hook root (0xff) chainloader (0xff) iftitle [if exist (hd0,1)/Win10XPE_x64.ISO] Win10XPE_x64 ISO or ISO from RAM find --set-root --ignore-floppies /Win10XPE_x64.ISO map /Win10XPE_x64.ISO (0xff) || map --mem /Win10XPE_x64.ISO (0xff) map --hook root (0xff) chainloader (0xff) iftitle [if exist (hd0,0)/WinPE.iso] WinPE.iso - ISO or ISO from RAM find --set-root --ignore-floppies /WinPE.iso map /WinPE.iso (0xff) || map --mem /WinPE.iso (0xff) map --hook root (0xff) chainloader (0xff) iftitle [if exist (hd0,1)/WinPE.iso] WinPE.iso - ISO or ISO from RAM find --set-root --ignore-floppies /WinPE.iso map /WinPE.iso (0xff) || map --mem /WinPE.iso (0xff) map --hook root (0xff) chainloader (0xff) iftitle [if exist /vhds.lst] VHDs menu # find --set-root /vhds.lst configfile /vhds.lst iftitle [if exist /grubfm.iso] Grub2 File Manager of a1ive - /grubfm.iso # find --set-root /grubfm.iso map --mem /grubfm.iso (0xff) map --hook chainloader (0xff) iftitle [if exist /efi/boot/grubfm.iso] Grub2 File Manager of a1ive - /efi/boot/grubfm.iso # find --set-root /efi/boot/grubfm.iso map --mem /efi/boot/grubfm.iso (0xff) map --hook chainloader (0xff) iftitle [if exist (hd0,0)/images/grubfm_multiarch.iso] Grub2 File Manager of a1ive - (hd0,0)/images/grubfm_multiarch.iso set iso_path=(hd0,0)/images/grubfm_multiarch.iso map --mem %iso_path% (0xff) map --hook chainloader (0xff) iftitle [if exist (hd0,1)/images/grubfm_multiarch.iso] Grub2 File Manager of a1ive - (hd0,1)/images/grubfm_multiarch.iso set iso_path=(hd0,1)/images/grubfm_multiarch.iso map --mem %iso_path% (0xff) map --hook chainloader (0xff) title Reboot Main Menu chainloader (hd0)+1 iftitle [ls (hd0,0)/iso] ISO Linux Menu - (hd0,0)/iso set iso_drive=(hd0,0) configfile /menu_Linux.lst iftitle [ls (hd0,0)/images] ISO Linux Menu - (hd0,0)/images set iso_drive=(hd0,0) configfile /menu_Linux.lst iftitle [ls (hd0,1)/images] ISO Linux Menu - (hd0,1)/images set iso_drive=(hd0,1) configfile /menu_Linux.lst iftitle [if exist /AIO/Menu/Linux.lst] AIO Linux OS configfile /AIO/Menu/Linux.lst iftitle [if exist (hd0,0)/images/memtest.bin] MemTest86+ kernel (hd0,0)/images/memtest.bin iftitle [if exist (hd0,1)/images/memtest.bin] MemTest86+ kernel (hd0,1)/images/memtest.bin iftitle [if exist (hd0,0)/images/7pe_x86_E.iso] 7pe_x86_E.iso - (hd0,0)/images/7pe_x86_E.iso map (hd0,0)/images/7pe_x86_E.iso (0xff) map --hook root (0xff) chainloader (0xff)/BOOTMGR || chainloader (0xff)/bootmgr iftitle [if exist (hd0,1)/images/7pe_x86_E.iso] 7pe_x86_E.iso - (hd0,1)/images/7pe_x86_E.iso map (hd0,1)/images/7pe_x86_E.iso (0xff) map --hook root (0xff) chainloader (0xff)/BOOTMGR || chainloader (0xff)/bootmgr iftitle [if exist (hd0,0)/images/7pe_amd64_E.iso] 7pe_amd64_E - (hd0,0)/images/7pe_amd64_E.iso map (hd0,0)/images/7pe_amd64_E.iso (0xFF) map --hook chainloader (0xFF) iftitle [if exist (hd0,1)/images/7pe_amd64_E.iso] 7pe_amd64_E - (hd0,1)/images/7pe_amd64_E.iso map (hd0,1)/images/7pe_amd64_E.iso (0xFF) map --hook chainloader (0xFF) iftitle [if exist (hd0,0)/images/HDDR2011.gz] Hard Disk Drive Regenerator 2011 map --mem (hd0,0)/images/HDDR2011.gz (0xFF) map --hook chainloader (0xFF) iftitle [if exist (hd0,1)/images/HDDR2011.gz] Hard Disk Drive Regenerator 2011 map --mem (hd0,1)/images/HDDR2011.gz (0xFF) map --hook chainloader (0xFF) title Reboot reboot title Switch Off halt
I think this menu.lst is the bare minimal we can use and is capable to locate image folder and its content on both partitions, same applies for Win10XPE_x64.ISO and WinPE.iso but only if they are present on some partition root, as some users (as I do) may want to create a WinPE folder with all the WinPE WIM files into it.
Hope you don't mind for this suggestion, the only intention is make things easier, I removed many Linux entries as they seem unnecessary since the USB device only has 2 partitions (or Ventoy DO NOT work), and they can be booted from menu_Linux.lst, about the great XP I think it is time to let it rest in peace.
Attached pictures of folders images and WinPE, both located on Ventoy NTFS first partition.
alacran