
Change the order of the menu entries
9_fred.iso
009_fred.iso
Sort override prefix (_*_)
Using E2B v1.A9 or later versions, you can change the menu order if the file or folder name starts with _ (underscore) as the first character followed by any number of characters and then another _.
E2B will ignore the leading _ character and then sort the files according to the 2nd and all following characters. If a second _ exists in the filename, only the characters after the second _ will be displayed, otherwise all characters after the first _ will be displayed.
In this way, you can change the sort order of any item in the menu.
The files will be listed in the menu without the _*_ prefix.
For instance:
\_ISO\MAINMENU\_#a_Ubuntu 64-bit.iso
\_ISO\MAINMENU\_aaz_Mint.iso
\_ISO\MAINMENU\_aba_DLC 2017.imgPTN
will be look like this in the Main Menu:
Ubuntu 64-bit
Set default menu entry and timeout (this entry is due to the standard E2B $$$SetDefaultMenu.mnu file)
Mint
DLC 2017
(standard E2B menu and sub-menu entries) (these entries are due to the standard E2B ZZSubMenuAll.mnu file)
Note that _#a_ will be listed first (before E2B's $$$SetDefaultMenu.mnu file because #a comes before $$$S).
The _ xxxx _ sort prefix also works with folders and .mnu files as well as payload files.
You may like to use _000_ to _999_ as prefixes (or _000_ to _999_).
You can add a .txt file to change the entry text and the help text for that entry, but the filename must be identical, e.g.
\_ISO\MAINMENU\_a_Ubuntu 64-bit.iso
\_ISO\MAINMENU\_a_Ubuntu 64-bit.txt
WARNING: If you use four $$$$ symbols or ! or # or " or space at the start of the filename (e.g. _$$$$ or _! or $$$$ or ! or #) this may stop the special $$$$CONFIG folder from working correctly. In this case rename the $$$$CONFIG folder to !!CONFIG.
I suggest using:
- _#000_ to _#999_ for early menu items (and rename $$$$CONFIG to !!CONFIG)
- _000_ to _999_ for mid-menu items
- _ZZZZ000_ to _ZZZZ999_ for the menu items that follow the E2B MAIN menu items
- _100_Ubuntu v14.1 (x64).iso
- _100_Ubuntu v14.1 (x64).txt
Tip: As the enumerated payload files are listed on the screen, press the SPACEBAR once - the list will pause and you can see how E2B has alphanumerically sorted each payload file and folder.
More on alphabetical sorting
The order that ISO, other payload files and .mnu files are listed in, is determined by E2B alphabetically sorting the payload and .mnu files and folders (not case-sensitive, but note that 10a.iso will be listed before 9a.iso because 1 comes before 9 as an ASCII value - instead use 09a.iso and 10a.iso).
For example: all you need to do is rename your payload and .mnu files, eg. aaz_fred.iso, aca_doris.iso, aea_debian.iso, etc..
Sort order prefixes, e.g. _234_Ubuntu 13.2 64-bit.isodef, can be used and the menu entry will be seen as Ubuntu 13.2 64-bit but it will be ordered as if it had the filename of 234_Ubuntu 13.2 64-bit.isodef (E2B v1.A9+).
You can also add a .txt file which has the same file name as the payload file, to present a nicer menu entry and also define your own menu entry help text at the bottom of the menu area when the file is selected in the menu (e.g. aaz_fred.iso + aaz_fred.txt).
The .mnu files will be listed depending on the name of the .mnu file itself (not the payload file or title which is used inside the .mnu file). If you have 'Ubuntu.mnu' for instance, it will therefore be listed after the 'PassPass.iso' (say). To change the order, simply rename ubuntu.mnu to say M_ubuntu.mnu.
Note that folders will also be searched alphabetically. If you have:
\_ISO\Mainmenu\Utility\PassPass.mnu
\_ISO\Mainmenu\Ubuntu.mnu
the MENU entry order will be:
Ubuntu
PassPass
Note that the menu entry for PassPass will be listed after the menu entry for Ubuntu because Ubuntu.mnu alphabetically precedes \Utility. If you want PassPass to be listed before Ubuntu, rename Ubuntu.mnu to ZUbuntu.mnu.
Tip: If you press the SPACE key during file enumeration, E2B will pause at the end of enumeration, to allow you to see the order it has enumerated the files and folders in (v1.72+).
Now you can easily see the order that the folders and files are enumerated in.
Example
Now change the name of ZZSubMenuDos.mnu and wattOS-R8-Microwatt.iso...
If you want the $wattOS-R8-Microwatt.iso menu entry to be listed as 'Microswatt OS R8' then create a .txt file:
$wattOS-R8-Microwatt.txt
title Microswatt OS R8\n WattOS Micro R8
or simply rename the ISO as _000_Microswatt OS R8.isodef (E2B v1.A9+).
Re-order the default E2B menu entries
The E2B default menu entries such as 'Set default menu entry and timeout', 'Help [F1]', 'Boot to first HDD [F7]', etc. must first be disabled by using the NOxxxxx variables in your MyE2B.cfg file (e.g. set NOF1=1).
Then you can create new .mnu files for each of the menu entries. Some example .mnu files can be found in the \_ISO\docs\Sample Mnu Files\E2B Menus folder, e.g. $$F01_Help_Menu_F1.mnu.
The .mnu files are alphabetically sorted, so simply change the name of the .mnu file to change the menu order.
A blank menu line can be inserted by adding a blank .mnu file - e.g. A_BlankMenuEntry.mnu.
Each menu folder must contain a copy of each .mnu file if you want it in that menu or sub-menu.
You may find it useful to define Global Hotkeys instead of adding menu entries into each menu.
Another alternative is to use a sort override prefix character sequence with your files or folders (see top of page - E2B v1.A9+).
See here for more details.
AUTO folder
.mnu files are ignored if you put them in the AUTO folder (so they won't work!).
Also, all payload files in and under the AUTO folder are enumerated and added to the DIRECT BOOT menu. So you can have multiple folders under \_ISO\AUTO,
If you have a lot of ISO files, and you don't want to change the filenames but you want to change their order in the menu, then put them in sub-folders under \_ISO\AUTO with a .txt file for each one, e.g.:
\_ISO\AUTO\A\ubuntu_x64.iso
\_ISO\AUTO\A\ubuntu_x64.txt
\_ISO\AUTO\B\acronis.iso
\_ISO\AUTO\B\acronis.txt
Note: These will be listed in the DIRECT BOOT sub-Menu - using folders like this for payload files, only works for the special AUTO folder. For the other menu folders (ANTIVIRUS, BACKUP, etc.) you will need to use a .mnu file or place the payload+.txt file in the main folder.
If you later want to add an entry in between these two, create a \_ISO\AUTO\A1\ folder. The entries will be listed in alphabetical order of both the files and folders.
Since you cannot add .mnu files to the AUTO folder, use Global Hotkeys instead if you want to disable the E2B generated menu entries. For example, you could add a global hotkey for F8 to return to the Main menu.
Use of .mnu files
If you do not want to change the ISO filenames but want to change their order in the Main menu (or one of the other sub-menus), then you will need to use .mnu files for each one and place them all in a sub-folder - e.g. \_ISO\MAINMENU\MNU.
The .mnu files should be of the following format:
e.g. \_ISO\MAINMENU\MNU\AAA_Ubuntu64.mnu contents:
title Ubuntu ISO\n Help text
/%grub%/qrun.g4b $HOME$/Ubuntu-x64.iso
boot
You can also change the name of the sub-menu folder or create new 3rd level folders. See my blog here for details.
Sub-Menus listed in the Main Menu
The sub-menus entries (for ANTIVIRUS, BACKUP, etc.) are defined in the \_ISO\MAINMENU\ZZSubMenuAll.mnu file.
As this begins with 'ZZ' the sub-menu entries will be listed at the end of all other menu items in the Main menu. If you want the sub-menu entries listed first in the Main menu, rename it to $$ZZSubMenuAll.mnu.
Note: If you ever update your E2B USB drive with a later version of E2B, you will need to delete the new \_ISO\MAINMENU\ZZSubMenuAll.mnu file again.
Alternatively, start the name of all your payload and .mnu files with 'ZZZ' so that they are listed below the sub-menus or use a sort prefix override of _ZZZ_ (see top of page).
Recommended for Easy2Boot (fastest flash drive!)
SanDisk Extreme SDCZ880-128G-G46
- Home
- Start & Intro
- Quick Setup Guide >>>
- DOWNLOADS >>>
- YouTube videos
- Tutorials and How To's
-
Make a USB Drive >>>
- Make a multi-partition E2B USB drive using RMPrepUSB
- Use an existing USB HDD for E2B
- Use LINUX to make an E2B drive + defrag
- How to Update E2B
- How to make a WINHELPER USB Flash Drive (fix 'Required DVD drive driver is missing')
- Multiple partitions on a USB Flash drive
- Using other partitions or drives
- Backup/Restore/Copy (clone) any E2B USB drive
- Make and burn an E2B DVD
- Using E2B with a Zalman/IODD
- Add E2B to your own grub4dos USB drive
- How to remove E2B
- E2B Menu System
- UEFI booting from E2B
-
How to add Payload Files and Use E2B >>>
- Make files CONTIGUOUS
- File Extensions recognised by E2B
- UEFI+MBR and how to make .imgPTN files
- MakePartImage and how to change the CSM Menu
- UEFI-Multiboot and rEFInd
- Using SWITCH_E2B with .imgPTN files
- Using the \_ISO\AUTO folder
-
WINDOWS payloads >>
- E2B USB HDD - Installing Windows with a 'WinHelper' drive
- Windows XP Install ISOs
- Install XP 32-bit + disk drivers (DPMS)
- Windows XP 64-bit
- Install XP using WinPE (one step process)
- Add XP Install ISOs using WinSetupFromUSB
- Windows Vista/7 Install ISOs
- UEFI boot from Windows 7 Install ISOs
- Windows 8/10 Install ISOs
- Unattended Installs
- XMLtoE2B.exe (Unattend.XML files)
- Adding >4GB Windows Install ISOs using .imgPTN files
- Automating Windows Installs from .imgPTN files
- Split_WinISO
- Add Windows ISOs to partition 2
- Windows AIO ISOs
- WindowsToGo
- WinNTSetup
- WinLite10 XML files
- SDI_CHOCO (install drivers, apps and updates) >>
- .VHD and .WIM files
- PassPass (bypass the Windows Password)
- Hack Windows Account Passwords (UtilMan.exe)
- Windows 2000
- Windows 98
- Multipoint Server
- Add the latest XP drivers (DPMS)
- Add a Windows Install menu entry
- LINUX payloads >>
- MSDart ERD ISOs
- WinBuilder, Medicat, Gandalf and WinPE ISOs
- Hirens/Strelec/DLC/F4 ISOs
- DOS (MS-DOS and FreeDOS)
- HAIKU
- MAC OS X
- FreeBSD
- MOVE_IMGPTN
- List of tested ISOs\payloads (with instructions)
-
Configure E2B >>>
- Menu settings (quick reference)
- E2B Menu Demo
- E2B_Editor
- E2B files and folders explained
- MyE2B.cfg - E2B configuration file >>
- Change the payload menu entries and help text using a .txt file
- Change the order of the menu entries
- Change the background wallpaper
- Different background wallpaper for each menu
- Default Menu and Timeout
- Change the Language, Headings, Menu and text
- Changing the default E2B menu entry order
- 'Change File Extension' prompt (Auto-Suggest)
- Change the Keyboard Layout
- About .mnu files
- Sample .mnu files
- PimpMyDrive.cmd
- Reduce the E2B messages
- Add a new Sub-Menu folder
- Stamps, Animation and Tunes
- Draw lines and boxes on the screen
- Write text/time/date to the menu screen
- Global Hotkeys
- Themes (Skins)
- Fonts
- Speeding up E2B (inc. FASTLOAD)
- One Single Menu
- The E2B F1 Help menu
- Add your own Help Menu
- Add Help text files (.help)
- Add Windows Install ISOs to the Main Menu
- Change the Windows Install Menu
- Passwords and Security
- Hide Payloads and Menu Entries
- Guest Mode
- GFX Boot Menus
- Dual Booting
- Change the CSM .imgPTN Menu
- Configure Clover
- Right-to-Left Languages
- Create new language files
- How to modify LOADISO.CMD (Repair message)
- Count number of boots
- UEFI - useful things know!
-
FAQ, Info, TroubleShooting, QEMU and Virtual Machines >>>
- 'File Not Contiguous' and 'Too Many Fragments' Errors
- 137GB 'BAD BIOS' bug
- TroubleShooting E2B
- E2B Error Messages
- Grub4dos Error Numbers
- Common problems with payload files
- Repair a corrupt E2B drive
- Known Issues and Bugs
- Slow and buggy BIOSes
- How E2B Works
- QEMU and Virtual Machines >>
- Using VBOX with a WinHelper USB drive
- Debugging E2B
- CONTIG.ISO
- ISOBOOT
- WIMBOOT (iPXE)
- grub4dos
- Useful resources
- Removable v. Fixed
- Gallery
- Guestbook
- Forum
- Blog
- a1ive grub2 File Manager (MBR+UEFI)
- Add Ventoy
- Site Map
- eBooks
- Contact Me >>>
- Donate
- Licensing
- Privacy policy (GDPR)
- Bespoke design service
- Grub2 Menu System (UEFI_GRUB2_PTN2)