Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Ventoy does not accept settings from the \ventoy\ventoy.json file on the data section
#1
Ventoy does not accept settings from the \ventoy\ventoy.json file on the data partition

All operations were carried out using the following utilities:

\ventoy-1.0.98\Ventoy2Disk.exe - for formatting and creating a boot disk
\ventoy-1.0.98\VentoyPlugson.exe - Link -> change settings in the browser -> Unlink

The settings in the \ventoy\ventoy.json file have changed, but there are no changes when loading from disk
Code:
{
    "control":[
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_LINUX_REMOUNT": "1" },
        { "VTOY_MENU_LANGUAGE": "ru_RU" },
        { "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" }
    ],
    "control_legacy":[
        { "VTOY_MENU_LANGUAGE": "ru_RU" }
    ],
    "control_uefi":[
        { "VTOY_MENU_LANGUAGE": "ru_RU" }
    ],
    "control_ia32":[
        { "VTOY_MENU_LANGUAGE": "ru_RU" }
    ],
    "control_aa64":[
        { "VTOY_MENU_LANGUAGE": "ru_RU" }
    ],
    "control_mips":[
        { "VTOY_MENU_LANGUAGE": "ru_RU" }
    ]
}

When loading there are no changes, a list of files is displayed, you have to switch to the tree structure using the А3 hotkey

Code:
DISKPART> list disk

  Диск ###  Состояние      Размер   Свободно Дин  GPT
  --------  -------------  -------  -------  ---  ---
  Диск 0    В сети         1907 Gбайт      0 байт        *
  Диск 1    В сети          931 Gбайт      0 байт        *
  Диск 2    В сети          476 Gбайт      0 байт

DISKPART> select disk 2

Выбран диск 2.

DISKPART> list part

  Раздел    ###  Тип               Размер   Смещение
  -------------  ----------------  -------  -------
  Раздел 1    Основной           476 Gб  1024 Kб
  Раздел 2    Системный           32 Mб   476 Gб

   

USB Ugreen nmve box + ADATA SX8200PNP 512 Gb
Reply
#2
control settings are not global - they do not apply to other sections like control_legacy or control_uefi.
You must put
{ "VTOY_DEFAULT_MENU_MODE": "1" },
{ "VTOY_LINUX_REMOUNT": "1" },
{ "VTOY_MENU_LANGUAGE": "ru_RU" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" }

in ALL sections


The control section is only used IF NO OTHER SECTION EXISTS
e.g. if there was no control_uefi section AT ALL, then settings in control would apply.
if there exists a control_uefi section, then ONLY settings in that section will be used and the settings in control will be ignored.
Reply
#3
This settings file is created by VentoyPlugson.exe, does that mean there is an error in it?
Reply
#4
No. You just need to put all the settings you want in each tab page

e.g.

{
"control":[
{ "VTOY_DEFAULT_MENU_MODE": "1" },
{ "VTOY_LINUX_REMOUNT": "1" },
{ "VTOY_MENU_LANGUAGE": "ru_RU" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" }
],
"control_legacy":[
{ "VTOY_DEFAULT_MENU_MODE": "1" },
{ "VTOY_LINUX_REMOUNT": "1" },
{ "VTOY_MENU_LANGUAGE": "ru_RU" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" }
],
"control_uefi":[
{ "VTOY_DEFAULT_MENU_MODE": "1" },
{ "VTOY_LINUX_REMOUNT": "1" },
{ "VTOY_MENU_LANGUAGE": "ru_RU" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" }
],
"control_ia32":[
{ "VTOY_DEFAULT_MENU_MODE": "1" },
{ "VTOY_LINUX_REMOUNT": "1" },
{ "VTOY_MENU_LANGUAGE": "ru_RU" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" }
],
"control_aa64":[
{ "VTOY_DEFAULT_MENU_MODE": "1" },
{ "VTOY_LINUX_REMOUNT": "1" },
{ "VTOY_MENU_LANGUAGE": "ru_RU" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" }
],
"control_mips":[
{ "VTOY_DEFAULT_MENU_MODE": "1" },
{ "VTOY_LINUX_REMOUNT": "1" },
{ "VTOY_MENU_LANGUAGE": "ru_RU" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" }
],
}

This allows you to have different settings for each mode.
For instance, the search_root folder could be \_ISO_LEGACY for legacy ISOs and \_ISO_EFI64 for efi64 and \_ISO\IEF32 for EFI32 bootable ISOs.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)