Posts: 45
Threads: 19
Joined: Feb 2021
Reputation:
1
10-24-2022, 06:58 AM
(This post was last modified: 12-30-2022, 12:12 PM by longpanda.)
Hello.
I can't find a topic on creating two BIOS and UEFI boot menus in Ventoy.
I need that when booting in BIOS mode, the boot menu with programs that work in both BIOS and UEFI is displayed, and when booting in UEFI,
a list of only those programs that support UEFI booting is displayed.
How to do it.
Posts: 1,357
Threads: 85
Joined: Apr 2020
Reputation:
132
10-24-2022, 08:00 AM
(This post was last modified: 10-24-2022, 09:09 AM by longpanda.)
It should be noted that given an ISO file, Ventoy doesn't know in advance that whether it can boot OK in Legacy BIOS or UEFI mode.
It need the user to distinguish them.
Assume that you know that some ISO files can boot OK in Legacy BIOS mode and some ISO files can boot OK in UEFI mode.
Then you can use VTOY_DEFAULT_SEARCH_ROOT option in global control plugin. For example:
Code: {
"control_uefi": [
{ "VTOY_DEFAULT_SEARCH_ROOT": "/ISO/UEFI" }
]
}
Then in Legacy BIOS mode, all the ISO files will be displayed, and in UEFI mode only the ISO files in /ISO/UEFI directory will be displayed.
Posts: 45
Threads: 19
Joined: Feb 2021
Reputation:
1
Please correct what I did wrong.
Error loading.
I'm sorry to take up your time.
Code: {
"control": [
{ "VTOY_DEFAULT_MENU_MODE": "0" },
{ "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }
{
"control_uefi": {
{ "VTOY_DEFAULT_SEARCH_ROOT": "/ISO/UEFI" }
}
}
],
"theme": {
"file": "/ventoy/theme/theme.txt",
"gfxmode": "1920x1080",
"display_mode": "GUI",
"ventoy_left": "5%",
"ventoy_top": "95%",
"ventoy_color": "#191919"
},
"menu_class": [
{
"key": "21H2",
"class": "Windows_1"
},
{
"key": "Windows",
"class": "Super_1"
},
{
"key": "Mem",
"class": "Memtest_1"
},
{
"key": "WinPE",
"class": "WinPE_1"
}
],
"image_list": [
"/ISO/Windows_10_21H2_19044.1645.iso",
"/ISO/Windows_7_10_11_Pro_x86_x64_15.12.2021.iso",
"/ISO/Windows_7_&_10_Pro_x86_x64_30.05.2021.iso",
"/ISO/Windows_7_Pro_x86_x64_15.12.2021.iso",
"/WinPE/WinPE_Sergei_Strelec_x86_x64_04.01.2022.iso",
"/Memtest/Memtest86+_4.3.7_&_10.iso",
"/Memtest/Memtest86+_x64_6.00.Beta.3.iso",
"/Memtest/GoldMemory_7.98_Pro.iso"
],
"menu_alias":[
{
"image":"/ISO/Windows_10_21H2_19044.1645.iso",
"alias":"Windows 10 Pro x86 x64 21H2 19044.1645"
},
{
"image":"/ISO/Windows_7_10_11_Pro_x86_x64_15.12.2021.iso",
"alias":"Windows 7 10 11 Pro x86 x64 15.12.2021"
},
{
"image":"/ISO/Windows_7_&_10_Pro_x86_x64_30.05.2021.iso",
"alias":"Windows 7 10 Pro x86 x64 30.05.2021"
},
{
"image":"/ISO/Windows_7_Pro_x86_x64_15.12.2021.iso",
"alias":"Windows 7 Pro x86 x64 15.12.2021"
},
{
"image":"/WinPE/WinPE_Sergei_Strelec_x86_x64_04.01.2022.iso",
"alias":"WinPE Sergei Strelec x86 x64 04.01.2022"
},
{
"image":"/Memtest/GoldMemory_7.98_Pro.iso",
"alias":"GoldMemory 7.98 Pro"
},
{
"image":"/Memtest/Memtest86+_4.3.7_&_10.iso",
"alias":"Memtest86+ 4.3.7 & 10"
},
{
"image":"/Memtest/Memtest86+_x64_6.00.Beta.3.iso",
"alias":"Memtest86+ 6.00 Beta 3"
}
]
}
Posts: 1,357
Threads: 85
Joined: Apr 2020
Reputation:
132
10-24-2022, 09:09 AM
(This post was last modified: 10-24-2022, 09:10 AM by longpanda.)
Try this:
Code: {
"control": [
{ "VTOY_DEFAULT_MENU_MODE": "0" },
{ "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }
],
"control_uefi": [
{ "VTOY_DEFAULT_MENU_MODE": "0" },
{ "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/ISO/UEFI" }
],
"theme": {
"file": "/ventoy/theme/theme.txt",
"gfxmode": "1920x1080",
"display_mode": "GUI",
"ventoy_left": "5%",
"ventoy_top": "95%",
"ventoy_color": "#191919"
},
"menu_class": [
{
"key": "21H2",
"class": "Windows_1"
},
{
"key": "Windows",
"class": "Super_1"
},
{
"key": "Mem",
"class": "Memtest_1"
},
{
"key": "WinPE",
"class": "WinPE_1"
}
],
"image_list": [
"/ISO/Windows_10_21H2_19044.1645.iso",
"/ISO/Windows_7_10_11_Pro_x86_x64_15.12.2021.iso",
"/ISO/Windows_7_&_10_Pro_x86_x64_30.05.2021.iso",
"/ISO/Windows_7_Pro_x86_x64_15.12.2021.iso",
"/WinPE/WinPE_Sergei_Strelec_x86_x64_04.01.2022.iso",
"/Memtest/Memtest86+_4.3.7_&_10.iso",
"/Memtest/Memtest86+_x64_6.00.Beta.3.iso",
"/Memtest/GoldMemory_7.98_Pro.iso"
],
"menu_alias":[
{
"image":"/ISO/Windows_10_21H2_19044.1645.iso",
"alias":"Windows 10 Pro x86 x64 21H2 19044.1645"
},
{
"image":"/ISO/Windows_7_10_11_Pro_x86_x64_15.12.2021.iso",
"alias":"Windows 7 10 11 Pro x86 x64 15.12.2021"
},
{
"image":"/ISO/Windows_7_&_10_Pro_x86_x64_30.05.2021.iso",
"alias":"Windows 7 10 Pro x86 x64 30.05.2021"
},
{
"image":"/ISO/Windows_7_Pro_x86_x64_15.12.2021.iso",
"alias":"Windows 7 Pro x86 x64 15.12.2021"
},
{
"image":"/WinPE/WinPE_Sergei_Strelec_x86_x64_04.01.2022.iso",
"alias":"WinPE Sergei Strelec x86 x64 04.01.2022"
},
{
"image":"/Memtest/GoldMemory_7.98_Pro.iso",
"alias":"GoldMemory 7.98 Pro"
},
{
"image":"/Memtest/Memtest86+_4.3.7_&_10.iso",
"alias":"Memtest86+ 4.3.7 & 10"
},
{
"image":"/Memtest/Memtest86+_x64_6.00.Beta.3.iso",
"alias":"Memtest86+ 6.00 Beta 3"
}
]
}
Posts: 45
Threads: 19
Joined: Feb 2021
Reputation:
1
Works.
Thanks for the help. I wish you health, happiness and good luck.
Posts: 45
Threads: 19
Joined: Feb 2021
Reputation:
1
10-25-2022, 03:13 PM
(This post was last modified: 10-25-2022, 03:14 PM by BKPB.)
I have to bother you again. There is a new problem, because in order for the new menu "VTOY_DEFAULT_SEARCH_ROOT": "/ISO/UEFI" to work, I need to copy 70% of the files from the /ISO folder, but there is not enough space on the flash drive. Isn't there such a possibility that it is not the files themselves that are copied to the /ISO/UEFI folder, but to create links to files from the /ISO folder and that when they are loaded in /UEFI mode, they are displayed in the same list as in BIOS mode?
I use an online translator
Posts: 426
Threads: 17
Joined: Jul 2020
Reputation:
35
https://ventoy.net/en/plugin_imagelist.html
Specify what files you want for legacy and uefi whitelist
Posts: 1,357
Threads: 85
Joined: Apr 2020
Reputation:
132
(10-25-2022, 03:13 PM)BKPB Wrote: I have to bother you again. There is a new problem, because in order for the new menu "VTOY_DEFAULT_SEARCH_ROOT": "/ISO/UEFI" to work, I need to copy 70% of the files from the /ISO folder, but there is not enough space on the flash drive. Isn't there such a possibility that it is not the files themselves that are copied to the /ISO/UEFI folder, but to create links to files from the /ISO folder and that when they are loaded in /UEFI mode, they are displayed in the same list as in BIOS mode?
I use an online translator
I don't understand why you need to copy files from /ISO directory to /ISO/UEFI directory?
You just need to move these files from /ISO directory to /ISO/UEFI directory, because files in /ISO/UEFI directory also displayed in Legacy BIOS mode.
Posts: 45
Threads: 19
Joined: Feb 2021
Reputation:
1
10-28-2022, 02:54 PM
(This post was last modified: 10-28-2022, 02:59 PM by BKPB.)
After I did as you wrote:
You just need to move these files from /ISO directory to /ISO/UEFI directory, because files in /ISO/UEFI directory also displayed in Legacy BIOS mode.
The menu began to work as I wanted.
But now, when you select any item in the menu, both in BIOS and in UEFI mode, this menu appears,
before that, the installation was always immediately started or the program was started. How do I get rid of this menu ?
Code: {
"control": [
{ "VTOY_DEFAULT_MENU_MODE": "0" },
{ "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }
],
"control_uefi": [
{ "VTOY_DEFAULT_MENU_MODE": "0" },
{ "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/ISO/UEFI" }
],
"theme": {
"file": "/ventoy/theme/theme.txt",
"gfxmode": "1920x1080",
"display_mode": "GUI",
"ventoy_left": "87%",
"ventoy_top": "95%",
"ventoy_color": "#33ff00"
},
"menu_class": [
{
"key": "21H2",
"class": "Windows_1"
},
{
"key": "Windows",
"class": "Super_1"
},
{
"key": "Mem",
"class": "Memtest_1"
},
{
"key": "WinPE",
"class": "WinPE_1"
}
],
"image_list": [
"/ISO/UEFI/Windows_10_21H2_19044.1645.iso",
"/ISO/UEFI/Windows_7_10_11_Pro_x86_x64_15.12.2021.iso",
"/ISO/UEFI/Windows_7_&_10_Pro_x86_x64_30.05.2021.iso",
"/ISO/UEFI/Windows_7_Pro_x86_x64_15.12.2021.iso",
"/ISO/UEFI/WinPE/WinPE_Sergei_Strelec_x86_x64_04.01.2022.iso",
"/ISO/UEFI/Memtest/Memtest86+_4.3.7_&_10.iso",
"/ISO/UEFI/Memtest/Memtest86+_x64_6.00.Beta.3.iso",
"/ISO/GoldMemory_7.98_Pro.iso"
],
"menu_alias":[
{
"image":"/ISO/UEFI/Windows_10_21H2_19044.1645.iso",
"alias":"Windows 10 Pro x86 x64 21H2 19044.1645"
},
{
"image":"/ISO/UEFI/Windows_7_10_11_Pro_x86_x64_15.12.2021.iso",
"alias":"Windows 7 10 11 Pro x86 x64 15.12.2021"
},
{
"image":"/ISO/UEFI/Windows_7_&_10_Pro_x86_x64_30.05.2021.iso",
"alias":"Windows 7 10 Pro x86 x64 30.05.2021"
},
{
"image":"/ISO/Windows_7_Pro_x86_x64_15.12.2021.iso",
"alias":"Windows 7 Pro x86 x64 15.12.2021"
},
{
"image":"/ISO/UEFI/WinPE/WinPE_Sergei_Strelec_x86_x64_04.01.2022.iso",
"alias":"WinPE Sergei Strelec x86 x64 04.01.2022"
},
{
"image":"/ISO/UEFI/Memtest/Memtest86+_4.3.7_&_10.iso",
"alias":"Memtest86+ 4.3.7 & 10"
},
{
"image":"/ISO/UEFI/Memtest/Memtest86+_x64_6.00.Beta.3.iso",
"alias":"Memtest86+ 6.00 Beta 3"
},
{
"image":"/ISO/GoldMemory_7.98_Pro.iso",
"alias":"GoldMemory 7.98 Pro"
}
]
}
Posts: 426
Threads: 17
Joined: Jul 2020
Reputation:
35
10-28-2022, 04:46 PM
(This post was last modified: 10-28-2022, 05:03 PM by Steve2926.)
https://ventoy.net/en/doc_secondary_boot_menu.html
https://ventoy.net/en/doc_name_identifier.html
What should we do if we have an ISO which only runs in UEFI64 but will not run in legacy mode?
|