Set a Default Menu Entry and Timeout
Auto-run any payload file
For other .mnu examples, such as for a Windows Installer ISO, see the \_ISO\docs\Sample mnu Files folder.
Note: If using a Virtual Machine, setting a Main menu default will not work unless the VM has full write access to the USB drive. Using RMPrepUSB+QEMU (F11) or VBox+VMUB will work. Using VMWare+Plop or QEMU_MENU_TEST (run as admin).cmd, etc. will not work correctly.
Remove\move the 'Set default menu entry and timeout' menu entry
To prevent the user from using the ' set default' menu, it can be removed from the Main menu using a setting in the \_ISO\MyE2B.cfg file:
You can preset the default menu entry and timeout values (instructions are also in the Sample_MyE2B.cfg file):
Create a new \_ISO\menu_defaults.txt file (this example sets the 2nd menu item as the default with a 10 second timeout)
Setting defaults for sub-menus
It is possible to make a small .mnu file which selects a default sub-menu entry for each sub-menu.
In this way you can configure E2B to automatically boot to any menu entry in any sub-menu.
You can set a timeout for each sub-menu too. This trick uses a .mnu file which MUST be enumerated first in each sub-folder and therefore should have a name which is enumerated first, such as $$$$Default.mnu.
For example, suppose you want the LINUX sub-menu to always select the 4th menu item when the LINUX sub-menu is loaded, and you want the WINPE sub-menu to select the 2nd item with a timeout of 10 seconds when it is selected:
If you set the Main menu default to run the WINPE sub-menu entry with a timeout (e.g. 3 seconds), then E2B will boot first to the Main menu and then to the WINPE sub-menu and then run the 2nd entry in that menu after 10 seconds. Note however, that if you add any more payload files, it could affect the menu numbering!
Hide the Main Menu
- Boot to E2B - Main menu files are enumerated
- Background wallpaper is displayed but no Main Menu entries are displayed
- If user presses 'special key' (e.g. ESC or F10) before timeout (and enters correct password) then Main menu is displayed
- After timeout, the selected Main menu item is automatically run (e.g. an ISO can be run or the Antivirus Menu is loaded)
- The user can press F8 to load the Main Menu
How to set up the hidden Main Menu
1. Add a \_ISO\MAINMENU\$$$$CONFIG\hide.mnu file containing:
#Special key is F10
#Special key is ESC
2. Set a default entry and timeout using the Main Menu #0 entry
3. The default password is set by the pwd variable and is 'easy2boot'. If you don't want a password use:
in your \_ISO\MyE2B.cfg file.
See here for more information.
You can also set up a Guest Menu system (guest user can only access a cut-down menu).
Recommended for Easy2Boot (fastest!) - SanDisk Extreme SDCZ880-128G-G46