Tuesday, 16 June 2015

E2B - bug in PTN2_Menu.mnu sample menu file!

Jason has just reported an issue when he tried to use the \_ISO\docs\Sample mnu Files\E2B Menus\PTN2_Menu.mnu file in his \_ISO\MAINMENU folder so he could run payload files from the second partition of his E2B drive.

We found a typo in this sample .mnu file which causes it to just reload the Main menu!

E2B v1.70 has the correct version of this menu file which should be as shown below (correction shown in red):

# EXAMPLE .MNU FILE FOR 2ND PRIMARY PARTITION  (max for E2B is 2 Primary ptns or 1 Primary+multiple logical ptns) - see also PTN_LOG1_Menu.mnu
# You can add payload files under \_ISO on partition 2 and they will be included in the menu
# EDIT lines 1 and 3 to match the name of your partition (hd0,1) and  folder (/_ISO)
# Add this file to the /_ISO/MAINMENU folder
# 2nd Primary partition is (hd0,1), 3rd Primary = (hd0,2), fourth primary = (hd0,3), first Logical partition = (hd0,4), second Logical partition = (hd0,5), etc.

iftitle [ls (hd0,1)/_ISO/ > nul && if "%GFX%"==""] ^Ctrl+2 PARTITION 2 Payload Files Menu [Ctrl+2]\n Run payload files in Partition 2 \\_ISO folder
set LBACKMENU=(bd)/%grub%/menu.lst
(bd)/%grub%/QAUTO.g4b .automenu (hd0,1)/_ISO
debug 0
configfile (md)0x3000+0x50

# For GFX menu (delete if you don't use GFXBoot menu)
iftitle [ls (hd0,1)/_ISO/ > nul && if not "%GFX%"==""] PARTITION 2 Payload Files Menu\n Run payload files in Partition 2 \\_ISO folder
set LBACKMENU=(bd)/%grub%/menu.lst
(bd)/%grub%/QAUTO.g4b .automenu (hd0,1)/_ISO
debug 0
configfile (md)0x3000+0x50


I am sorry if this caused anyone problems trying to get this menu to work!
http://www.easy2boot.com/make-an-easy2boot-usb-drive/using-other-partitions-or-drives/

Note
In E2B, the Main menu is kept in memory at (md)0xa000 - this is used when you press F8 from within any sub-menu to quickly re-load and display the Main menu. The most recent menu that was enumerated is stored at (md)0x3000. So 'configfile (md)0xa000+0x50' will load the Main Menu, whereas 'configfile (md)0x3000+0x50' will display the last menu that was enumerated which could be the Main menu if you have just booted to E2B, or if you have just run a menu entry from say the \_ISO\DOS folder, then (md)0x3000 will contain the DOS menu.

No comments:

Post a Comment