Wednesday, 16 July 2025

How to quickly add a menu entry to the agFM startup menu

If you boot to an E2B USB drive in UEFI mode, the agFM UEFI menu system will be loaded...


Although you can browse the folder structure of Partition 1 using this menu system, the first startup menu screen contains some hard coded entries too.

You can add more menu entries to the top of this menu by creating a new text file into the FAT32 Partition 2 folder \boot\grubfm\user_menu_top.cfg

The example below adds the existing imgptn23 Memtest86 partition image file to the top of the startup menu.

Partition 2 folder \boot\grubfm\user_menu_top.cfg


You can test for $EFI32 or $MBR instead of $EFI64 and use a .ISO file or .EFI file instead of a .imgptn23 file. You can remove the if xxx lines (and fi lines) if you don't want to test the boot mode or test for the existence of the target file.

--class=uefi  determines the icon that is displayed on the left of the menu entry. Here is a selection (some may not be available if you use the default agFM theme)...



See the agFM page or better still get my eBooks for more details ;-)

No comments:

Post a Comment